Skip to content

Add agent tooling, policies, toolkits, and persistence#293

Merged
rohitprasad15 merged 1 commit into
andrewyng:mainfrom
drp8226:drp/agent-tooling
Jun 8, 2026
Merged

Add agent tooling, policies, toolkits, and persistence#293
rohitprasad15 merged 1 commit into
andrewyng:mainfrom
drp8226:drp/agent-tooling

Conversation

@drp8226

@drp8226 drp8226 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Build out the agent runtime on top of the Agent API and tracing: tools for composing agents, declarative tool policies, standard toolkits, and pluggable state/artifact stores for resumable runs.

  • Subagent tools: agent_tool() wraps an Agent as a callable tool and propagates trace context to the nested run
  • Tool policies: declarative AllowAllToolPolicy / DenyAllToolPolicy / AllowToolsPolicy / RequireApprovalPolicy, ToolMetadata, and a tool() decorator for attaching metadata
  • Toolkits: standard file, shell, and git toolkits
  • Persistence: StateStore (in-memory, file, Postgres) with compaction records and StoredRunState for resumable runs, plus ArtifactStore (in-memory, file) for large tool payloads
  • Normalized model trace events (tracing/normalize) for consistent model input/response capture
  • tests for subagent tools, policies, toolkits, and state/artifact stores

Build out the agent runtime on top of the Agent API and tracing: tools
for composing agents, declarative tool policies, standard toolkits, and
pluggable state/artifact stores for resumable runs.

- Subagent tools: agent_tool() wraps an Agent as a callable tool and
  propagates trace context to the nested run
- Tool policies: declarative AllowAllToolPolicy / DenyAllToolPolicy /
  AllowToolsPolicy / RequireApprovalPolicy, ToolMetadata, and a tool()
  decorator for attaching metadata
- Toolkits: standard file, shell, and git toolkits
- Persistence: StateStore (in-memory, file, Postgres) with compaction
  records and StoredRunState for resumable runs, plus ArtifactStore
  (in-memory, file) for large tool payloads
- Normalized model trace events (tracing/normalize) for consistent
  model input/response capture
- tests for subagent tools, policies, toolkits, and state/artifact stores

Co-authored-by: Rohit <rohit.prasad15@gmail.com>
@rohitprasad15 rohitprasad15 self-requested a review June 8, 2026 20:18
@rohitprasad15 rohitprasad15 merged commit 4034290 into andrewyng:main Jun 8, 2026
0 of 4 checks passed
rohitprasad15 added a commit that referenced this pull request Jun 10, 2026
tomllib is stdlib only from 3.11; the unguarded import killed the whole
3.10 build_and_test job at collection (red on main since #293) and
fail-fast cancelled the 3.11/3.12 jobs. Only the one pyproject-parsing
test needs it, so it skips on 3.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants