InlineSessionState¶
Structure Class¶
InlineSessionState
dataclass
¶
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 InvokeInlineAgent
request. Use session state attributes to control and provide
conversational context for your inline agent and to help customize your
agent's behavior. For more information, see Control session
context
Attributes¶
conversation_history
class-attribute
instance-attribute
¶
conversation_history: ConversationHistory | None = None
Contains the conversation history that persist across sessions.
files
class-attribute
instance-attribute
¶
files: list[InputFile] | None = None
Contains information about the files used by code interpreter.
invocation_id
class-attribute
instance-attribute
¶
invocation_id: str | None = None
The identifier of the invocation of an action. This value must match the
invocationId returned in the InvokeInlineAgent response for the
action whose results are provided in the
returnControlInvocationResults field. For more information, see
Return control to the agent
developer.
prompt_session_attributes
class-attribute
instance-attribute
¶
prompt_session_attributes: dict[str, str] | None = None
Contains attributes that persist across a session and the values of those attributes.
return_control_invocation_results
class-attribute
instance-attribute
¶
return_control_invocation_results: list[InvocationResultMember] | None = None
Contains information about the results from the action group invocation. For more information, see Return control to the agent developer.
Note
If you include this field in the sessionState field, the inputText
field will be ignored.
session_attributes
class-attribute
instance-attribute
¶
session_attributes: dict[str, str] | None = None
Contains attributes that persist across a session and the values of those attributes.