SessionState
Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Control session context.
Types
Properties
The state's conversation history.
The identifier of the invocation of an action. This value must match the invocationId
returned in the InvokeAgent
response for the action whose results are provided in the returnControlInvocationResults
field. For more information, see Return control to the agent developer and Control session context.
An array of configurations, each of which applies to a knowledge base attached to the agent.
Contains attributes that persist across a prompt and the values of those attributes.
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.
Contains attributes that persist across a session and the values of those attributes. If sessionAttributes
are passed to a supervisor agent in multi-agent collaboration, it will be forwarded to all agent collaborators.