Skip to content

runtime: default agent-tool content from payload#94

Merged
raphael merged 2 commits intomainfrom
runtime/agent-tool-content-default
Mar 2, 2026
Merged

runtime: default agent-tool content from payload#94
raphael merged 2 commits intomainfrom
runtime/agent-tool-content-default

Conversation

@raphael
Copy link
Member

@raphael raphael commented Mar 2, 2026

Summary

  • Allow agent-as-tool registrations to omit consumer-side prompt content.
  • Default nested agent user message to the canonical JSON tool payload bytes.
  • Group consumer-side rendering knobs under AgentToolContent; update tests and docs.

Rationale

Provider planners can own prompt rendering and inject server-only context, while the runtime preserves a deterministic payload-only default.

Test plan

  • make lint
  • make test

raphael added 2 commits March 1, 2026 21:40
Agent-as-tool registrations no longer require consumer-side prompt content.
When PromptSpecs/Templates/Texts/Prompt are unset, the child run receives the
canonical JSON tool payload bytes as the initial user message.

Group consumer-side rendering knobs under AgentToolContent and update tests and
docs accordingly.
Use gosec-native #nosec directives instead of golangci-lint nolint annotations so
lint remains strict (nolintlint) while acknowledging intentional HTTP calling
and bounds-checked indexing.
@raphael raphael merged commit 594bffe into main Mar 2, 2026
2 checks passed
@raphael raphael deleted the runtime/agent-tool-content-default branch March 2, 2026 05:50
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.

1 participant