Where should runtime non-LLM parameters be placed in RunAgentInput? (state vs context vs forwardedProps) #1574
user1500177
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi AG-UI team ,
I’m opening this discussion after implementing a pattern suggested in the AgentOS (Agno) forum, and I want to confirm the correct place in AG-UI to pass runtime parameters.
Based on AgentOS guidance, we moved to (agno-agi/agno#7439):
This will work technically i suppose , but I want to confirm the intended AG-UI design.
What triggered the question
Looking at the docs:
https://docs.ag-ui.com/sdk/js/core/types#runagentinput
RunAgentInput includes (which is the best place to pass such ids- all our mcp tools supports these IDs so that if going by what agno said we could use the tool_hook to inject in these Ids like that - agno-agi/agno#7439)
Example payload:
From reading AgentOS code and discussions, it appears that state is mapped into the agent runtime (session_state) and its avaible in the tool_hooks (**Is THIS THE BEST APPRACH and intended use case of the state paramter i needed to confirm**)Main Question
For runtime parameters like id1, id2:
Which field in RunAgentInput is the intended place to send them?
Specifically:
Should we treat the fields like this?
messages → LLM-visible conversation
state → runtime / non-LLM parameters
context → ?
forwardedProps → ?
Is state the recommended place for passing those ids ??
Why this matters
We want to follow the intended AG-UI architecture and avoid inventing our own conventions.
Right now we assume:
state = non-LLM runtime context
We’d love confirmation (or corrections) from the team so as to make it a Standard design.
Beta Was this translation helpful? Give feedback.
All reactions