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

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The state's conversation history.

Link copied to clipboard

Contains information about the files used by code interpreter.

Link copied to clipboard

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.

Link copied to clipboard

An array of configurations, each of which applies to a knowledge base attached to the agent.

Link copied to clipboard

Contains attributes that persist across a prompt and the values of those attributes.

Link copied to clipboard

Contains information about the results from the action group invocation. For more information, see Return control to the agent developer and Control session context.

Link copied to clipboard

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.

Functions

Link copied to clipboard
inline fun copy(block: SessionState.Builder.() -> Unit = {}): SessionState
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String