使用agents.json需要完成三个核心准备步骤:
- 获取规范文件:可从官方示例库(如Resend、Stripe等案例的Jupyter Notebook)获取模板,或根据GitHub schema自定义编写。建议存放于
/.well-known/agents.json
trails - Installing the SDK: By
pip install wildcard-bridge
安装Python包(要求Python 3.10+),安装后可通过import wildcard_bridge
validate (a theory) - Configuring the runtime environment:包括设置API认证方式(Basic/ApiKey/Bearer)和连接LLM智能体。例如:
bridge = Bridge(auth={"type": "ApiKey", "key": "your-key"})
完成后即可通过load_agents_json()
加载文件,使用run_chain()
执行定义的任务流。
This answer comes from the articleagents.json: an open source specification for intelligences to interact with APIs via natural languageThe