Observation
¶
Source code in docs_src/capo_bedrock_agent_runtime/types/observation.py
action_group_invocation_output
instance-attribute
¶
action_group_invocation_output: NotRequired[ActionGroupInvocationOutput]
Contains the JSON-formatted string returned by the API invoked by the action group.
agent_collaborator_invocation_output
instance-attribute
¶
agent_collaborator_invocation_output: NotRequired[AgentCollaboratorInvocationOutput]
A collaborator's invocation output.
code_interpreter_invocation_output
instance-attribute
¶
code_interpreter_invocation_output: NotRequired[CodeInterpreterInvocationOutput]
Contains the JSON-formatted string returned by the API invoked by the code interpreter.
final_response
instance-attribute
¶
final_response: NotRequired[FinalResponse]
Contains details about the response to the user.
knowledge_base_lookup_output
instance-attribute
¶
knowledge_base_lookup_output: NotRequired[KnowledgeBaseLookupOutput]
Contains details about the results from looking up the knowledge base.
reprompt_response
instance-attribute
¶
reprompt_response: NotRequired[RepromptResponse]
Contains details about the response to reprompt the input.
type
instance-attribute
¶
type: NotRequired[Type]
Specifies what kind of information the agent returns in the observation. The following values are possible.
-
ACTION_GROUP– The agent returns the result of an action group. -
KNOWLEDGE_BASE– The agent returns information from a knowledge base. -
FINISH– The agent returns a final response to the user with no follow-up. -
ASK_USER– The agent asks the user a question. -
REPROMPT– The agent prompts the user again for the same information.