用于 AetherLang Omega 的 API 连接器,可执行 10 种受 Karpathy 启发的代理节点类型(计划、代码解释器、批评、路由、集成、记忆、工具、循环、任务等)。
AetherLang Karpathy Agent Nodes. 此技能能做什么 : 向主机 AetherLang API. (api. nerodoc. ap是一项面向实际任务的技能,主要用于它不修改本地文件, 执行本地代码, 或访问证书。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。
执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
本技能的作用:向托管的 AetherLang API(
api.neurodoc.app)发送请求。它不会修改本地文件、执行本地代码,也不会访问您设备上的任何凭据。所有执行均在服务端完成。
通过 AetherLang Omega API 执行 10 种高级 AI Agent 节点类型。
URL:https://api.neurodoc.app/aetherlang/execute
方法:POST
请求头:Content-Type: application/json
认证:无需认证(公开 API)
调用该 API 时,请严格遵守以下要求:
curl -s -X POST https://api.neurodoc.app/aetherlang/execute
-H "Content-Type: application/json"
-d '{
"code": "flow FlowName {n input text query;n node X: ;n query -> X;n output text result from X;n}",
"query": "user question here"
}'
AI 将任务自动拆解为多个步骤,并自主执行。
node P: plan steps=3;
在服务端沙箱中运行 Python,支持高精度数值计算,无幻觉(hallucination)。
node C: code_interpreter;
对输出质量进行评分(0–10 分),未达阈值则自动重试,直至满足要求。
node R: critique threshold=8 max_retries=3;
由 LLM 决定最优执行路径,未选中的分支将被跳过(性能提升约 10 倍)。
node R: router; R -> A | B | C;
并行启动多个 AI 角色(personas),综合各角色的最佳见解生成最终结果。
node E: ensemble agents=chef:French_chef|yiayia:Greek_grandmother synthesize=true;
跨多次执行持久化存储与读取数据(服务端实现,按命名空间 namespace 隔离)。
node M: memory namespace=user_prefs action=store key=diet; node M: memory namespace=user_prefs action=recall;
安全提示:
tool节点将调用您指定的公开 REST 接口 URL。请仅使用可信的公开 API;切勿将凭据或私有 URL 作为tool参数传入。对于下方示例以外的任意 URL,Agent 在调用前会主动向用户请求确认。
node T: tool url=https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd method=GET;
对指定列表中的每一项重复执行目标节点。各项之间使用 | 分隔。
node L: loop over=Italian|Greek|Japanese target=A max=3;
支持模板填充(template)、字段提取(extract)、格式化(format)或基于 LLM 的语义重塑(llm)。
node X: transform mode=llm instruction=Summarize_the_data;
并行运行多个节点,3 个调用耗时约 0.2 秒。
node P: parallel targets=A|B|C;
flow CryptoAnalysis {
input text query;
node T: tool url=https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd method=GET;
node X: transform mode=llm instruction=Summarize_price;
node A: llm model=gpt-4o-mini;
query -> T -> X -> A;
output text result from A;
}
flow QualityEnsemble {
input text query;
node E: ensemble agents=analyst:Financial_analyst|strategist:Strategist synthesize=true;
node R: critique threshold=8;
query -> E -> R;
output text result from R;
}
flow MultiRecipe {
input text query;
node L: loop over=Italian|Greek|Japanese target=A max=3;
node A: llm model=gpt-4o-mini;
query -> L;
output text result from L;
}
flow ParallelFetch {
input text query;
node P: parallel targets=A|B|C;
node A: tool url=https://api.coingecko.com/api/v3/ping method=GET;
node B: tool url=https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd method=GET;
node C: tool url=https://api.coingecko.com/api/v3/simple/price?ids=ethereum&vs_currencies=usd method=GET;
query -> P;
output text result from P;
}
import json response = json.loads(raw_response) result = response["result"]["outputs"]["result"] text = result["response"] node_type = result["node_type"] duration = response["result"]["duration_seconds"]
| 节点类型 | 关键参数 |
|---|---|
| plan | steps=3 |
| code_interpreter | model=gpt-4o-mini |
| critique | threshold=7 max_retries=3 |
| router | strategy=single |
| ensemble | agents=a:Persona|b:Persona synthesize=true |
| memory | namespace=X action=store|recall|search|clear key=X |
| tool | url=https://... method=GET timeout=10 |
| loop | over=A|B|C target=NodeAlias max=10 mode=collect |
| transform | mode=llm|template|extract|format instruction=X |
| parallel | targets=A|B|C merge=combine |
AetherLang Karpathy Skill v1.0.1 — api.neurodoc.app 的 API 连接器
全部执行均在服务端完成;不运行任何本地代码;不修改任何本地文件。
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章