Agents Guide
Create Agents
from glaip_sdk import Client
client = Client()
agent = client.agents.create_agent(
name="math-tutor",
instruction="You are a patient tutor. Show working for every step.",
tools=["time_tool"],
agent_config={"memory": "mem0"},
)aip agents create \
--name math-tutor \
--instruction "You are a patient tutor. Show working for every step." \
--tools time_toolcurl \
-X POST "$AIP_API_URL/agents" -H "Content-Type: application/json" -H \
"X-API-Key: $AIP_API_KEY" -d '{
"name": "math-tutor",
"instruction": "You are a patient tutor. Show working for every step.",
"tools": ["time_tool"],
"agent_config": {"memory": "mem0"}
}'List and Inspect Agents
for agent in client.agents.list_agents(name="tutor"):
print(agent.id, agent.name)
detail = client.agents.get_agent_by_id("agent-123")
print(detail.agent_config.get("lm_name"))aip agents list
aip agents get agent-123 --view jsoncurl -sL "$AIP_API_URL/agents?name=tutor" -H "X-API-Key: $AIP_API_KEY" | jqUpdate Agents
Delete and Restore Agents
Run Agents
Basic Execution
With Files
Runtime Overrides and PII
Chat History
Multi-Agent Patterns
Iterate Quickly with Export and Import
Iterate on Instructions Quickly
Observability
Run History
Scheduling
Troubleshooting
Issue
Symptoms
Resolution
Best Practices
Related Documentation
最后更新于