Skip to content

feat: support AG-UI input and client tools - #1143

Open
serrapa wants to merge 1 commit into
cheshire-cat-ai:mainfrom
serrapa:feat/1142-agui-run-agent-input
Open

serrapa wants to merge 1 commit into
cheshire-cat-ai:mainfrom
serrapa:feat/1142-agui-run-agent-input

Conversation

@serrapa

@serrapa serrapa commented Jul 29, 2026

Copy link
Copy Markdown

Summary

  • accept standard AG-UI RunAgentInput on the agent message endpoint
  • stream compliant AG-UI events through SSE
  • preserve non-streaming Task support
  • expose client-provided tools to the model without executing them server-side
  • continue frontend tool calls through a subsequent ToolMessage
  • validate tool names, schemas, limits and server-tool collisions

Testing

  • Ruff passed
  • 61 focused tests passed
  • verified the endpoint through a live Uvicorn instance
  • verified a complete frontend-tool round trip over HTTP/SSE

The full suite on Windows reports unrelated existing failures around ZIP MIME detection and POSIX path assertions: 211 passed, 11 failed, 28 errors.

Security

Client tools are runtime-only and have no server callable. Normal Task payloads cannot inject them, server tool names cannot be shadowed, and request definitions have resource limits.

Closes #1142

@pieroit

pieroit commented Aug 2, 2026

Copy link
Copy Markdown
Member

thx will need time to check this one. Appreciated

This branch has not been deployed

No deployments
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.

Support AG-UI RunAgentInput as optional input format (bidirectional AG-UI)

2 participants