Skip to content

ApiResult

Source code in docs_src/capo_bedrock_agent_runtime/types/api_result.py
class ApiResult(TypedDict, closed=True):
    action_group: "str"
    """<p>The action group that the API operation belongs to.</p>"""
    http_method: NotRequired["str"]
    """<p>The HTTP method for the API operation.</p>"""
    api_path: NotRequired["capo_bedrock_agent_runtime.types.api_path.ApiPath"]
    """<p>The path to the API operation.</p>"""
    confirmation_state: NotRequired[
        "capo_bedrock_agent_runtime.types.confirmation_state.ConfirmationState"
    ]
    """<p>Controls the API operations or functions to invoke based on the user confirmation.</p>"""
    response_state: NotRequired[
        "capo_bedrock_agent_runtime.types.response_state.ResponseState"
    ]
    """<p>Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt</p>"""
    http_status_code: NotRequired["int"]
    """<p>http status code from API execution response (for example: 200, 400, 500).</p>"""
    response_body: NotRequired[
        "capo_bedrock_agent_runtime.types.response_body.ResponseBody"
    ]
    """<p>The response body from the API operation. The key of the object is the content type (currently, only <code>TEXT</code> is supported). The response may be returned directly or from the Lambda function.</p>"""
    agent_id: NotRequired["str"]
    """<p>The agent's ID.</p>"""

action_group instance-attribute

action_group: str

The action group that the API operation belongs to.

agent_id instance-attribute

agent_id: NotRequired[str]

The agent's ID.

api_path instance-attribute

api_path: NotRequired[ApiPath]

The path to the API operation.

confirmation_state instance-attribute

confirmation_state: NotRequired[ConfirmationState]

Controls the API operations or functions to invoke based on the user confirmation.

http_method instance-attribute

http_method: NotRequired[str]

The HTTP method for the API operation.

http_status_code instance-attribute

http_status_code: NotRequired[int]

http status code from API execution response (for example: 200, 400, 500).

response_body instance-attribute

response_body: NotRequired[ResponseBody]

The response body from the API operation. The key of the object is the content type (currently, only TEXT is supported). The response may be returned directly or from the Lambda function.

response_state instance-attribute

response_state: NotRequired[ResponseState]

Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt