fix: generate agents with platform LLM grants
All checks were successful
build / build (push) Successful in 21s

This commit is contained in:
robert
2026-05-26 21:39:02 -03:00
parent 54b0788b82
commit 53ecc9a0cb
11 changed files with 74 additions and 40 deletions

View File

@@ -1,6 +1,6 @@
---
name: deepagent-agent-design
description: Design generated A2A agents around DeepAgents skills, subagents, durable workspace backends, and caller-provided LLM reasoning. Use whenever building or modifying an agent, deciding whether to add tools, creating skill bundles, wiring create_deep_agent, or avoiding shallow fake tools.
description: Design generated A2A agents around DeepAgents skills, subagents, durable workspace backends, and ctx.llm-backed reasoning. Use whenever building or modifying an agent, deciding whether to add tools, creating skill bundles, wiring create_deep_agent, or avoiding shallow fake tools.
---
# DeepAgent Agent Design
@@ -13,8 +13,8 @@ planning, file work, skill selection, and subagent delegation.
Use this shape for non-trivial generated agents:
1. Keep one or two public A2A `@skill` methods with clear typed parameters.
2. Inside each method, read `ctx.llm`, construct `ChatOpenAI`, and build a
DeepAgent with `create_deep_agent`.
2. Inside each method, read `ctx.llm`, verify credentials are available before
constructing `ChatOpenAI`, and build a DeepAgent with `create_deep_agent`.
3. Pass `backend=ctx.workspace_backend()` so DeepAgents file tools write to the
caller's durable workspace instead of LangGraph state.
4. Seed project skills into the current grant's write prefix and pass