How SpinAI agents can make use of state
context.state
object. This is useful for values that are static, like user IDs or emails, which may not make sense to have an LLM determine via parameters.context.state
in any actionstate
after an interaction is completecontext.state
in actionscontext.state
object. This is useful if the value is static, like a user ID or email, which may not make sense to have an LLM determine via parameters.
context.state
in actionscontext.state
, it is accessible in other actions during runtime, and after the agent call is complete from the state
variable.
context.state
for values that need to be shared between actions that you need your agent to determine