{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-list-flow-execution-events-response-schema.json",
  "title": "ListFlowExecutionEventsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-events-api-openapi.yml#/components/schemas/ListFlowExecutionEventsResponse",
  "type": "object",
  "properties": {
    "flowExecutionEvents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FlowExecutionEvent"
      },
      "description": "A list of events that occurred during the flow execution. Events can include node inputs and outputs, flow inputs and outputs, condition results, and failure events."
    },
    "nextToken": {
      "type": "string",
      "description": "A token to retrieve the next set of results. This value is returned if more results are available."
    }
  },
  "required": [
    "flowExecutionEvents"
  ],
  "$defs": {
    "ActionGroupInvocationInput": {
      "type": "object",
      "properties": {
        "actionGroupName": {
          "type": "string",
          "description": "The name of the action group."
        },
        "verb": {
          "type": "string",
          "description": "The API method being used, based off the action group."
        },
        "apiPath": {
          "type": "string",
          "description": "The path to the API to call, based off the action group."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "description": "The parameters in the Lambda input event."
        },
        "requestBody": {
          "$ref": "#/$defs/RequestBody"
        },
        "function": {
          "type": "string",
          "description": "The function in the action group to call."
        },
        "executionType": {
          "type": "string",
          "enum": [
            "LAMBDA",
            "RETURN_CONTROL"
          ],
          "description": "How fulfillment of the action is handled. For more information, see Handling fulfillment of the action."
        },
        "invocationId": {
          "type": "string",
          "description": "The unique identifier of the invocation. Only returned if the executionType is RETURN_CONTROL."
        }
      }
    },
    "ActionGroupInvocationOutput": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The JSON-formatted string returned by the API invoked by the action group."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "AgentCollaboratorInputPayload": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TEXT",
            "RETURN_CONTROL"
          ],
          "description": "The input type."
        },
        "text": {
          "type": "string",
          "description": "Input text."
        },
        "returnControlResults": {
          "$ref": "#/$defs/ReturnControlResults"
        }
      }
    },
    "AgentCollaboratorInvocationInput": {
      "type": "object",
      "properties": {
        "agentCollaboratorName": {
          "type": "string",
          "description": "The collaborator's name."
        },
        "agentCollaboratorAliasArn": {
          "type": "string",
          "description": "The collaborator's alias ARN."
        },
        "input": {
          "$ref": "#/$defs/AgentCollaboratorInputPayload"
        }
      }
    },
    "AgentCollaboratorInvocationOutput": {
      "type": "object",
      "properties": {
        "agentCollaboratorName": {
          "type": "string",
          "description": "The output's agent collaborator name."
        },
        "agentCollaboratorAliasArn": {
          "type": "string",
          "description": "The output's agent collaborator alias ARN."
        },
        "output": {
          "$ref": "#/$defs/AgentCollaboratorOutputPayload"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "AgentCollaboratorOutputPayload": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TEXT",
            "RETURN_CONTROL"
          ],
          "description": "The type of output."
        },
        "text": {
          "type": "string",
          "description": "Text output."
        },
        "returnControlPayload": {
          "$ref": "#/$defs/ReturnControlPayload"
        }
      }
    },
    "ApiInvocationInput": {
      "type": "object",
      "properties": {
        "actionGroup": {
          "type": "string",
          "description": "The action group that the API operation belongs to."
        },
        "httpMethod": {
          "type": "string",
          "description": "The HTTP method of the API operation."
        },
        "apiPath": {
          "type": "string",
          "description": "The path to the API operation."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApiParameter"
          },
          "description": "The parameters to provide for the API request, as the agent elicited from the user."
        },
        "requestBody": {
          "$ref": "#/$defs/ApiRequestBody"
        },
        "actionInvocationType": {
          "type": "string",
          "enum": [
            "RESULT",
            "USER_CONFIRMATION",
            "USER_CONFIRMATION_AND_RESULT"
          ],
          "description": "Contains information about the API operation to invoke."
        },
        "agentId": {
          "type": "string",
          "description": "The agent's ID."
        },
        "collaboratorName": {
          "type": "string",
          "description": "The agent collaborator's name."
        }
      },
      "required": [
        "actionGroup"
      ]
    },
    "ApiParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "description": "The data type for the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter."
        }
      }
    },
    "ApiRequestBody": {
      "type": "object",
      "properties": {
        "content": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/PropertyParameters"
          },
          "description": "The content of the request body. The key of the object in this field is a media type defining the format of the request body."
        }
      }
    },
    "ApiResult": {
      "type": "object",
      "properties": {
        "actionGroup": {
          "type": "string",
          "description": "The action group that the API operation belongs to."
        },
        "httpMethod": {
          "type": "string",
          "description": "The HTTP method for the API operation."
        },
        "apiPath": {
          "type": "string",
          "description": "The path to the API operation."
        },
        "confirmationState": {
          "type": "string",
          "enum": [
            "CONFIRM",
            "DENY"
          ],
          "description": "Controls the API operations or functions to invoke based on the user confirmation."
        },
        "responseState": {
          "type": "string",
          "enum": [
            "FAILURE",
            "REPROMPT"
          ],
          "description": "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"
        },
        "httpStatusCode": {
          "type": "integer",
          "description": "http status code from API execution response (for example: 200, 400, 500)."
        },
        "responseBody": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ContentBody"
          },
          "description": "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."
        },
        "agentId": {
          "type": "string",
          "description": "The agent's ID."
        }
      },
      "required": [
        "actionGroup"
      ]
    },
    "AudioSegment": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI where this specific audio segment is stored in the multimodal storage destination."
        },
        "transcription": {
          "type": "string",
          "description": "The text transcription of the audio segment content."
        }
      },
      "required": [
        "s3Uri"
      ]
    },
    "BedrockAgentRuntimeGuardrailAssessment": {
      "type": "object",
      "properties": {
        "topicPolicy": {
          "$ref": "#/$defs/BedrockAgentRuntimeGuardrailTopicPolicyAssessment"
        },
        "contentPolicy": {
          "$ref": "#/$defs/BedrockAgentRuntimeGuardrailContentPolicyAssessment"
        },
        "wordPolicy": {
          "$ref": "#/$defs/BedrockAgentRuntimeGuardrailWordPolicyAssessment"
        },
        "sensitiveInformationPolicy": {
          "$ref": "#/$defs/BedrockAgentRuntimeGuardrailSensitiveInformationPolicyAssessment"
        }
      }
    },
    "BedrockAgentRuntimeGuardrailContentFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "INSULTS",
            "HATE",
            "SEXUAL",
            "VIOLENCE",
            "MISCONDUCT",
            "PROMPT_ATTACK"
          ],
          "description": "The type of content detected in the filter by the Guardrail."
        },
        "confidence": {
          "type": "string",
          "enum": [
            "NONE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "The confidence level regarding the content detected in the filter by the Guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED"
          ],
          "description": "The action placed on the content by the Guardrail filter."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailContentPolicyAssessment": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailContentFilter"
          },
          "description": "The filter details of the policy assessment used in the Guardrails filter."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailCustomWord": {
      "type": "object",
      "properties": {
        "match": {
          "type": "string",
          "description": "The match details for the custom word filter in the Guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED"
          ],
          "description": "The action details for the custom word filter in the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailManagedWord": {
      "type": "object",
      "properties": {
        "match": {
          "type": "string",
          "description": "The match details for the managed word filter in the Guardrail."
        },
        "type": {
          "type": "string",
          "enum": [
            "PROFANITY"
          ],
          "description": "The type details for the managed word filter in the Guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED"
          ],
          "description": "The action details for the managed word filter in the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailPiiEntityFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "ADDRESS",
            "AGE",
            "AWS_ACCESS_KEY",
            "AWS_SECRET_KEY",
            "CA_HEALTH_NUMBER",
            "CA_SOCIAL_INSURANCE_NUMBER",
            "CREDIT_DEBIT_CARD_CVV",
            "CREDIT_DEBIT_CARD_EXPIRY",
            "CREDIT_DEBIT_CARD_NUMBER",
            "DRIVER_ID",
            "EMAIL",
            "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
            "IP_ADDRESS",
            "LICENSE_PLATE",
            "MAC_ADDRESS",
            "NAME",
            "PASSWORD",
            "PHONE",
            "PIN",
            "SWIFT_CODE",
            "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
            "UK_NATIONAL_INSURANCE_NUMBER",
            "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
            "URL",
            "USERNAME",
            "US_BANK_ACCOUNT_NUMBER",
            "US_BANK_ROUTING_NUMBER",
            "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
            "US_PASSPORT_NUMBER",
            "US_SOCIAL_SECURITY_NUMBER",
            "VEHICLE_IDENTIFICATION_NUMBER"
          ],
          "description": "The type of PII the Guardrail filter has identified and removed."
        },
        "match": {
          "type": "string",
          "description": "The match to settings in the Guardrail filter to identify and remove PII."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED",
            "ANONYMIZED"
          ],
          "description": "The action of the Guardrail filter to identify and remove PII."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailRegexFilter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name details for the regex filter used in the Guardrail."
        },
        "regex": {
          "type": "string",
          "description": "The regex details for the regex filter used in the Guardrail."
        },
        "match": {
          "type": "string",
          "description": "The match details for the regex filter used in the Guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED",
            "ANONYMIZED"
          ],
          "description": "The action details for the regex filter used in the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailSensitiveInformationPolicyAssessment": {
      "type": "object",
      "properties": {
        "piiEntities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailPiiEntityFilter"
          },
          "description": "The details of the PII entities used in the sensitive policy assessment for the Guardrail."
        },
        "regexes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailRegexFilter"
          },
          "description": "The details of the regexes used in the sensitive policy assessment for the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailTopic": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name details on a specific topic in the Guardrail."
        },
        "type": {
          "type": "string",
          "enum": [
            "DENY"
          ],
          "description": "The type details on a specific topic in the Guardrail."
        },
        "action": {
          "type": "string",
          "enum": [
            "BLOCKED"
          ],
          "description": "The action details on a specific topic in the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailTopicPolicyAssessment": {
      "type": "object",
      "properties": {
        "topics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailTopic"
          },
          "description": "The topic details of the policy assessment used in the Guardrail."
        }
      }
    },
    "BedrockAgentRuntimeGuardrailWordPolicyAssessment": {
      "type": "object",
      "properties": {
        "customWords": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailCustomWord"
          },
          "description": "The custom word details for words defined in the Guardrail filter."
        },
        "managedWordLists": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailManagedWord"
          },
          "description": "The managed word lists for words defined in the Guardrail filter."
        }
      }
    },
    "BedrockAgentRuntimeInferenceConfiguration": {
      "type": "object",
      "properties": {
        "temperature": {
          "type": "number",
          "description": "The likelihood of the model selecting higher-probability options while generating a response. A lower value makes the model more likely to choose higher-probability options, while a higher value makes the model more likely to choose lower-probability options."
        },
        "topP": {
          "type": "number",
          "description": "While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for Top P determines the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set topP to 0.8, the model only selects the next token from the top 80% of the probability distribution of next tokens."
        },
        "topK": {
          "type": "integer",
          "description": "While generating a response, the model determines the probability of the following token at each point of generation. The value that you set for topK is the number of most-likely candidates from which the model chooses the next token in the sequence. For example, if you set topK to 50, the model selects the next token from among the top 50 most likely choices."
        },
        "maximumLength": {
          "type": "integer",
          "description": "The maximum number of tokens allowed in the generated response."
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of stop sequences. A stop sequence is a sequence of characters that causes the model to stop generating the response."
        }
      }
    },
    "BedrockAgentRuntimeReasoningContentBlock": {
      "type": "object",
      "properties": {
        "reasoningText": {
          "$ref": "#/$defs/BedrockAgentRuntimeReasoningTextBlock"
        },
        "redactedContent": {
          "type": "string",
          "description": "The content in the reasoning that was encrypted by the model provider for trust and safety reasons."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeReasoningTextBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Text describing the reasoning that the model used to return the content in the content block."
        },
        "signature": {
          "type": "string",
          "description": "A hash of all the messages in the conversation to ensure that the content in the reasoning text block isn't tampered with. You must submit the signature in subsequent Converse requests, in addition to the previous messages. If the previous messages are tampered with, the response throws an error."
        }
      },
      "required": [
        "text"
      ]
    },
    "Caller": {
      "type": "object",
      "properties": {
        "agentAliasArn": {
          "type": "string",
          "description": "The caller's agent alias ARN."
        }
      },
      "description": "Exactly one member is set."
    },
    "CodeInterpreterInvocationInput": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "The code for the code interpreter to use."
        },
        "files": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Files that are uploaded for code interpreter to use."
        }
      }
    },
    "CodeInterpreterInvocationOutput": {
      "type": "object",
      "properties": {
        "executionOutput": {
          "type": "string",
          "description": "Contains the successful output returned from code execution"
        },
        "executionError": {
          "type": "string",
          "description": "Contains the error returned from code execution."
        },
        "files": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Contains output files, if generated by code execution."
        },
        "executionTimeout": {
          "type": "boolean",
          "description": "Indicates if the execution of the code timed out."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "ConditionResultEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the condition node that evaluated the conditions."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the condition evaluation occurred."
        },
        "satisfiedConditions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SatisfiedCondition"
          },
          "description": "A list of conditions that were satisfied during the evaluation."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "satisfiedConditions"
      ]
    },
    "ContentBody": {
      "type": "object",
      "properties": {
        "body": {
          "type": "string",
          "description": "The body of the API response."
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ImageInput"
          },
          "description": "Lists details, including format and source, for the image in the response from the function call. You can specify only one image and the function in the returnControlInvocationResults must be a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools."
        }
      }
    },
    "CustomOrchestrationTrace": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "event": {
          "$ref": "#/$defs/CustomOrchestrationTraceEvent"
        }
      }
    },
    "CustomOrchestrationTraceEvent": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text that prompted the event at this step."
        }
      }
    },
    "FailureTrace": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "failureReason": {
          "type": "string",
          "description": "The reason the interaction failed."
        },
        "failureCode": {
          "type": "integer",
          "description": "The failure code for the trace."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "FinalResponse": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text in the response to the user."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "FlowExecutionContent": {
      "type": "object",
      "properties": {
        "document": {
          "type": "object",
          "description": "The document content of the field, which can contain text or structured data."
        }
      },
      "description": "Exactly one member is set."
    },
    "FlowExecutionEvent": {
      "type": "object",
      "properties": {
        "flowInputEvent": {
          "$ref": "#/$defs/FlowExecutionInputEvent"
        },
        "flowOutputEvent": {
          "$ref": "#/$defs/FlowExecutionOutputEvent"
        },
        "nodeInputEvent": {
          "$ref": "#/$defs/NodeInputEvent"
        },
        "nodeOutputEvent": {
          "$ref": "#/$defs/NodeOutputEvent"
        },
        "conditionResultEvent": {
          "$ref": "#/$defs/ConditionResultEvent"
        },
        "nodeFailureEvent": {
          "$ref": "#/$defs/NodeFailureEvent"
        },
        "flowFailureEvent": {
          "$ref": "#/$defs/FlowFailureEvent"
        },
        "nodeActionEvent": {
          "$ref": "#/$defs/NodeActionEvent"
        },
        "nodeDependencyEvent": {
          "$ref": "#/$defs/NodeDependencyEvent"
        }
      },
      "description": "Exactly one member is set."
    },
    "FlowExecutionInputEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that receives the inputs."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the inputs are provided."
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowInputField"
          },
          "description": "A list of input fields provided to the flow."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "fields"
      ]
    },
    "FlowExecutionOutputEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that produces the outputs."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the outputs are produced."
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FlowOutputField"
          },
          "description": "A list of output fields produced by the flow."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "fields"
      ]
    },
    "FlowFailureEvent": {
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the failure occurred."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "VALIDATION",
            "INTERNAL_SERVER",
            "NODE_EXECUTION_FAILED"
          ],
          "description": "The error code that identifies the type of failure that occurred."
        },
        "errorMessage": {
          "type": "string",
          "description": "A descriptive message that provides details about the failure."
        }
      },
      "required": [
        "timestamp",
        "errorCode",
        "errorMessage"
      ]
    },
    "FlowInputField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the input field as defined in the flow's input schema."
        },
        "content": {
          "$ref": "#/$defs/FlowExecutionContent"
        }
      },
      "required": [
        "name",
        "content"
      ]
    },
    "FlowOutputField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the output field as defined in the flow's output schema."
        },
        "content": {
          "$ref": "#/$defs/FlowExecutionContent"
        }
      },
      "required": [
        "name",
        "content"
      ]
    },
    "FunctionInvocationInput": {
      "type": "object",
      "properties": {
        "actionGroup": {
          "type": "string",
          "description": "The action group that the function belongs to."
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FunctionParameter"
          },
          "description": "A list of parameters of the function."
        },
        "function": {
          "type": "string",
          "description": "The name of the function."
        },
        "actionInvocationType": {
          "type": "string",
          "enum": [
            "RESULT",
            "USER_CONFIRMATION",
            "USER_CONFIRMATION_AND_RESULT"
          ],
          "description": "Contains information about the function to invoke,"
        },
        "agentId": {
          "type": "string",
          "description": "The agent's ID."
        },
        "collaboratorName": {
          "type": "string",
          "description": "The collaborator's name."
        }
      },
      "required": [
        "actionGroup"
      ]
    },
    "FunctionParameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "description": "The data type of the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter."
        }
      }
    },
    "FunctionResult": {
      "type": "object",
      "properties": {
        "actionGroup": {
          "type": "string",
          "description": "The action group that the function belongs to."
        },
        "confirmationState": {
          "type": "string",
          "enum": [
            "CONFIRM",
            "DENY"
          ],
          "description": "Contains the user confirmation information about the function that was called."
        },
        "function": {
          "type": "string",
          "description": "The name of the function that was called."
        },
        "responseBody": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ContentBody"
          },
          "description": "The response from the function call using the parameters. The response might be returned directly or from the Lambda function. Specify TEXT or IMAGES. The key of the object is the content type. You can only specify one type. If you specify IMAGES, you can specify only one image. You can specify images only when the function in the returnControlInvocationResults is a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools."
        },
        "responseState": {
          "type": "string",
          "enum": [
            "FAILURE",
            "REPROMPT"
          ],
          "description": "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"
        },
        "agentId": {
          "type": "string",
          "description": "The agent's ID."
        }
      },
      "required": [
        "actionGroup"
      ]
    },
    "GuardrailTrace": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string",
          "enum": [
            "INTERVENED",
            "NONE"
          ],
          "description": "The trace action details used with the Guardrail."
        },
        "traceId": {
          "type": "string",
          "description": "The details of the trace Id used in the Guardrail Trace."
        },
        "inputAssessments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailAssessment"
          },
          "description": "The details of the input assessments used in the Guardrail Trace."
        },
        "outputAssessments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeGuardrailAssessment"
          },
          "description": "The details of the output assessments used in the Guardrail Trace."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "ImageInput": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string",
          "enum": [
            "png",
            "jpeg",
            "gif",
            "webp"
          ],
          "description": "The type of image in the result."
        },
        "source": {
          "$ref": "#/$defs/ImageInputSource"
        }
      },
      "required": [
        "format",
        "source"
      ]
    },
    "ImageInputSource": {
      "type": "object",
      "properties": {
        "bytes": {
          "type": "string",
          "description": "The raw image bytes for the image. If you use an Amazon Web Services SDK, you don't need to encode the image bytes in base64."
        }
      },
      "description": "Exactly one member is set."
    },
    "InvocationInput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "invocationType": {
          "type": "string",
          "enum": [
            "ACTION_GROUP",
            "KNOWLEDGE_BASE",
            "FINISH",
            "ACTION_GROUP_CODE_INTERPRETER",
            "AGENT_COLLABORATOR"
          ],
          "description": "Specifies whether the agent is invoking an action group or a knowledge base."
        },
        "actionGroupInvocationInput": {
          "$ref": "#/$defs/ActionGroupInvocationInput"
        },
        "knowledgeBaseLookupInput": {
          "$ref": "#/$defs/KnowledgeBaseLookupInput"
        },
        "codeInterpreterInvocationInput": {
          "$ref": "#/$defs/CodeInterpreterInvocationInput"
        },
        "agentCollaboratorInvocationInput": {
          "$ref": "#/$defs/AgentCollaboratorInvocationInput"
        }
      }
    },
    "InvocationInputMember": {
      "type": "object",
      "properties": {
        "apiInvocationInput": {
          "$ref": "#/$defs/ApiInvocationInput"
        },
        "functionInvocationInput": {
          "$ref": "#/$defs/FunctionInvocationInput"
        }
      },
      "description": "Exactly one member is set."
    },
    "InvocationResultMember": {
      "type": "object",
      "properties": {
        "apiResult": {
          "$ref": "#/$defs/ApiResult"
        },
        "functionResult": {
          "$ref": "#/$defs/FunctionResult"
        }
      },
      "description": "Exactly one member is set."
    },
    "KnowledgeBaseLookupInput": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The query made to the knowledge base."
        },
        "knowledgeBaseId": {
          "type": "string",
          "description": "The unique identifier of the knowledge base to look up."
        }
      }
    },
    "KnowledgeBaseLookupOutput": {
      "type": "object",
      "properties": {
        "retrievedReferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RetrievedReference"
          },
          "description": "Contains metadata about the sources cited for the generated response."
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "Metadata": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "In the final response, startTime is the start time of the agent invocation operation."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "In the final response, endTime is the end time of the agent invocation operation."
        },
        "totalTimeMs": {
          "type": "integer",
          "description": "The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took."
        },
        "operationTotalTimeMs": {
          "type": "integer",
          "description": "The total time it took for the agent to complete execution. This field is only set for the final response."
        },
        "clientRequestId": {
          "type": "string",
          "description": "A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems."
        },
        "usage": {
          "$ref": "#/$defs/Usage"
        }
      }
    },
    "ModelInvocationInput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "text": {
          "type": "string",
          "description": "The text that prompted the agent at this step."
        },
        "type": {
          "type": "string",
          "enum": [
            "PRE_PROCESSING",
            "ORCHESTRATION",
            "KNOWLEDGE_BASE_RESPONSE_GENERATION",
            "POST_PROCESSING",
            "ROUTING_CLASSIFIER"
          ],
          "description": "The step in the agent sequence."
        },
        "overrideLambda": {
          "type": "string",
          "description": "The ARN of the Lambda function to use when parsing the raw foundation model output in parts of the agent sequence."
        },
        "promptCreationMode": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "OVERRIDDEN"
          ],
          "description": "Specifies whether the default prompt template was OVERRIDDEN. If it was, the basePromptTemplate that was set in the PromptOverrideConfiguration object when the agent was created or updated is used instead."
        },
        "inferenceConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeInferenceConfiguration"
        },
        "parserMode": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "OVERRIDDEN"
          ],
          "description": "Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the promptType."
        },
        "foundationModel": {
          "type": "string",
          "description": "The identifier of a foundation model."
        }
      }
    },
    "NodeActionEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that called the operation."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the operation was called."
        },
        "requestId": {
          "type": "string",
          "description": "The ID of the request that the node made to the operation."
        },
        "serviceName": {
          "type": "string",
          "description": "The name of the service that the node called."
        },
        "operationName": {
          "type": "string",
          "description": "The name of the operation that the node called."
        },
        "operationRequest": {
          "type": "object",
          "description": "The request payload sent to the downstream service."
        },
        "operationResponse": {
          "type": "object",
          "description": "The response payload received from the downstream service."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "requestId",
        "serviceName",
        "operationName"
      ]
    },
    "NodeDependencyEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that generated the dependency trace."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the dependency trace was generated."
        },
        "traceElements": {
          "$ref": "#/$defs/NodeTraceElements"
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "traceElements"
      ]
    },
    "NodeExecutionContent": {
      "type": "object",
      "properties": {
        "document": {
          "type": "object",
          "description": "The document content of the field, which can contain text or structured data."
        }
      },
      "description": "Exactly one member is set."
    },
    "NodeFailureEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node where the failure occurred."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the node failure occurred."
        },
        "errorCode": {
          "type": "string",
          "enum": [
            "VALIDATION",
            "DEPENDENCY_FAILED",
            "BAD_GATEWAY",
            "INTERNAL_SERVER"
          ],
          "description": "The error code that identifies the type of failure that occurred at the node."
        },
        "errorMessage": {
          "type": "string",
          "description": "A descriptive message that provides details about the node failure."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "errorCode",
        "errorMessage"
      ]
    },
    "NodeInputEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that received the inputs."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the inputs were provided to the node."
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeInputField"
          },
          "description": "A list of input fields provided to the node."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "fields"
      ]
    },
    "NodeInputExecutionChainItem": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node in the execution chain."
        },
        "index": {
          "type": "integer",
          "description": "The index position of this item in the execution chain."
        },
        "type": {
          "type": "string",
          "enum": [
            "Iterator",
            "Loop"
          ],
          "description": "The type of execution chain item. Supported values are Iterator and Loop."
        }
      },
      "required": [
        "nodeName",
        "type"
      ]
    },
    "NodeInputField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the input field as defined in the node's input schema."
        },
        "content": {
          "$ref": "#/$defs/NodeExecutionContent"
        },
        "source": {
          "$ref": "#/$defs/NodeInputSource"
        },
        "type": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "The data type of the input field for compatibility validation."
        },
        "category": {
          "type": "string",
          "enum": [
            "LoopCondition",
            "ReturnValueToLoopStart",
            "ExitLoop"
          ],
          "description": "The category of the input field."
        },
        "executionChain": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeInputExecutionChainItem"
          },
          "description": "The execution path through nested nodes like iterators and loops."
        }
      },
      "required": [
        "name",
        "content"
      ]
    },
    "NodeInputSource": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the source node that provides the input data."
        },
        "outputFieldName": {
          "type": "string",
          "description": "The name of the output field from the source node."
        },
        "expression": {
          "type": "string",
          "description": "The expression used to extract data from the source."
        }
      },
      "required": [
        "nodeName",
        "outputFieldName",
        "expression"
      ]
    },
    "NodeOutputEvent": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the node that produced the outputs."
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp when the outputs were produced by the node."
        },
        "fields": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeOutputField"
          },
          "description": "A list of output fields produced by the node."
        }
      },
      "required": [
        "nodeName",
        "timestamp",
        "fields"
      ]
    },
    "NodeOutputField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the output field as defined in the node's output schema."
        },
        "content": {
          "$ref": "#/$defs/NodeExecutionContent"
        },
        "next": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NodeOutputNext"
          },
          "description": "The next node that receives output data from this field."
        },
        "type": {
          "type": "string",
          "enum": [
            "String",
            "Number",
            "Boolean",
            "Object",
            "Array"
          ],
          "description": "The data type of the output field for compatibility validation."
        }
      },
      "required": [
        "name",
        "content"
      ]
    },
    "NodeOutputNext": {
      "type": "object",
      "properties": {
        "nodeName": {
          "type": "string",
          "description": "The name of the next node that receives the output data."
        },
        "inputFieldName": {
          "type": "string",
          "description": "The name of the input field in the next node that receives the data."
        }
      },
      "required": [
        "nodeName",
        "inputFieldName"
      ]
    },
    "NodeTraceElements": {
      "type": "object",
      "properties": {
        "agentTraces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TracePart"
          },
          "description": "Agent trace information for the node execution."
        }
      },
      "description": "Exactly one member is set."
    },
    "Observation": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "type": {
          "type": "string",
          "enum": [
            "ACTION_GROUP",
            "AGENT_COLLABORATOR",
            "KNOWLEDGE_BASE",
            "FINISH",
            "ASK_USER",
            "REPROMPT"
          ],
          "description": "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."
        },
        "actionGroupInvocationOutput": {
          "$ref": "#/$defs/ActionGroupInvocationOutput"
        },
        "agentCollaboratorInvocationOutput": {
          "$ref": "#/$defs/AgentCollaboratorInvocationOutput"
        },
        "knowledgeBaseLookupOutput": {
          "$ref": "#/$defs/KnowledgeBaseLookupOutput"
        },
        "finalResponse": {
          "$ref": "#/$defs/FinalResponse"
        },
        "repromptResponse": {
          "$ref": "#/$defs/RepromptResponse"
        },
        "codeInterpreterInvocationOutput": {
          "$ref": "#/$defs/CodeInterpreterInvocationOutput"
        }
      }
    },
    "OrchestrationModelInvocationOutput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "rawResponse": {
          "$ref": "#/$defs/RawResponse"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        },
        "reasoningContent": {
          "$ref": "#/$defs/BedrockAgentRuntimeReasoningContentBlock"
        }
      }
    },
    "OrchestrationTrace": {
      "type": "object",
      "properties": {
        "rationale": {
          "$ref": "#/$defs/Rationale"
        },
        "invocationInput": {
          "$ref": "#/$defs/InvocationInput"
        },
        "observation": {
          "$ref": "#/$defs/Observation"
        },
        "modelInvocationInput": {
          "$ref": "#/$defs/ModelInvocationInput"
        },
        "modelInvocationOutput": {
          "$ref": "#/$defs/OrchestrationModelInvocationOutput"
        }
      },
      "description": "Exactly one member is set."
    },
    "Parameter": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the parameter."
        },
        "type": {
          "type": "string",
          "description": "The type of the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter."
        }
      }
    },
    "PostProcessingModelInvocationOutput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "parsedResponse": {
          "$ref": "#/$defs/PostProcessingParsedResponse"
        },
        "rawResponse": {
          "$ref": "#/$defs/RawResponse"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        },
        "reasoningContent": {
          "$ref": "#/$defs/BedrockAgentRuntimeReasoningContentBlock"
        }
      }
    },
    "PostProcessingParsedResponse": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text returned by the parser."
        }
      }
    },
    "PostProcessingTrace": {
      "type": "object",
      "properties": {
        "modelInvocationInput": {
          "$ref": "#/$defs/ModelInvocationInput"
        },
        "modelInvocationOutput": {
          "$ref": "#/$defs/PostProcessingModelInvocationOutput"
        }
      },
      "description": "Exactly one member is set."
    },
    "PreProcessingModelInvocationOutput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace."
        },
        "parsedResponse": {
          "$ref": "#/$defs/PreProcessingParsedResponse"
        },
        "rawResponse": {
          "$ref": "#/$defs/RawResponse"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        },
        "reasoningContent": {
          "$ref": "#/$defs/BedrockAgentRuntimeReasoningContentBlock"
        }
      }
    },
    "PreProcessingParsedResponse": {
      "type": "object",
      "properties": {
        "rationale": {
          "type": "string",
          "description": "The text returned by the parsing of the pre-processing step, explaining the steps that the agent plans to take in orchestration, if the user input is valid."
        },
        "isValid": {
          "type": "boolean",
          "description": "Whether the user input is valid or not. If false, the agent doesn't proceed to orchestration."
        }
      }
    },
    "PreProcessingTrace": {
      "type": "object",
      "properties": {
        "modelInvocationInput": {
          "$ref": "#/$defs/ModelInvocationInput"
        },
        "modelInvocationOutput": {
          "$ref": "#/$defs/PreProcessingModelInvocationOutput"
        }
      },
      "description": "Exactly one member is set."
    },
    "PropertyParameters": {
      "type": "object",
      "properties": {
        "properties": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Parameter"
          },
          "description": "A list of parameters in the request body."
        }
      }
    },
    "Rationale": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The unique identifier of the trace step."
        },
        "text": {
          "type": "string",
          "description": "The reasoning or thought process of the agent, based on the input."
        }
      }
    },
    "RawResponse": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string",
          "description": "The foundation model's raw output content."
        }
      }
    },
    "RepromptResponse": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The text reprompting the input."
        },
        "source": {
          "type": "string",
          "enum": [
            "ACTION_GROUP",
            "KNOWLEDGE_BASE",
            "PARSER"
          ],
          "description": "Specifies what output is prompting the agent to reprompt the input."
        }
      }
    },
    "RequestBody": {
      "type": "object",
      "properties": {
        "content": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/Parameter"
            }
          },
          "description": "The content in the request body."
        }
      }
    },
    "RetrievalResultConfluenceLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The Confluence host URL for the data source location."
        }
      }
    },
    "RetrievalResultContent": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "TEXT",
            "IMAGE",
            "ROW",
            "AUDIO",
            "VIDEO"
          ],
          "description": "The type of content in the retrieval result."
        },
        "text": {
          "type": "string",
          "description": "The cited text from the data source."
        },
        "byteContent": {
          "type": "string",
          "description": "A data URI with base64-encoded content from the data source. The URI is in the following format: returned in the following format: data:image/jpeg;base64,${base64-encoded string}."
        },
        "video": {
          "$ref": "#/$defs/VideoSegment"
        },
        "audio": {
          "$ref": "#/$defs/AudioSegment"
        },
        "row": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RetrievalResultContentColumn"
          },
          "description": "Specifies information about the rows with the cells to return in retrieval."
        }
      }
    },
    "RetrievalResultContentColumn": {
      "type": "object",
      "properties": {
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "columnValue": {
          "type": "string",
          "description": "The value in the column."
        },
        "type": {
          "type": "string",
          "enum": [
            "BLOB",
            "BOOLEAN",
            "DOUBLE",
            "NULL",
            "LONG",
            "STRING"
          ],
          "description": "The data type of the value."
        }
      }
    },
    "RetrievalResultCustomDocumentLocation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID of the document."
        }
      }
    },
    "RetrievalResultGoogleDriveLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The Google Drive URL for the data source location."
        }
      }
    },
    "RetrievalResultKendraDocumentLocation": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The document's uri."
        }
      }
    },
    "RetrievalResultLocation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "S3",
            "WEB",
            "CONFLUENCE",
            "SALESFORCE",
            "SHAREPOINT",
            "CUSTOM",
            "KENDRA",
            "SQL",
            "ONEDRIVE",
            "GOOGLEDRIVE"
          ],
          "description": "The type of data source location."
        },
        "s3Location": {
          "$ref": "#/$defs/RetrievalResultS3Location"
        },
        "webLocation": {
          "$ref": "#/$defs/RetrievalResultWebLocation"
        },
        "confluenceLocation": {
          "$ref": "#/$defs/RetrievalResultConfluenceLocation"
        },
        "salesforceLocation": {
          "$ref": "#/$defs/RetrievalResultSalesforceLocation"
        },
        "sharePointLocation": {
          "$ref": "#/$defs/RetrievalResultSharePointLocation"
        },
        "customDocumentLocation": {
          "$ref": "#/$defs/RetrievalResultCustomDocumentLocation"
        },
        "kendraDocumentLocation": {
          "$ref": "#/$defs/RetrievalResultKendraDocumentLocation"
        },
        "sqlLocation": {
          "$ref": "#/$defs/RetrievalResultSqlLocation"
        },
        "oneDriveLocation": {
          "$ref": "#/$defs/RetrievalResultOneDriveLocation"
        },
        "googleDriveLocation": {
          "$ref": "#/$defs/RetrievalResultGoogleDriveLocation"
        }
      },
      "required": [
        "type"
      ]
    },
    "RetrievalResultOneDriveLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The OneDrive URL for the data source location."
        }
      }
    },
    "RetrievalResultS3Location": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The S3 URI for the data source location."
        }
      }
    },
    "RetrievalResultSalesforceLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The Salesforce host URL for the data source location."
        }
      }
    },
    "RetrievalResultSharePointLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The SharePoint site URL for the data source location."
        }
      }
    },
    "RetrievalResultSqlLocation": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "The SQL query used to retrieve the result."
        }
      }
    },
    "RetrievalResultWebLocation": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "The web URL/URLs for the data source location."
        }
      }
    },
    "RetrievedReference": {
      "type": "object",
      "properties": {
        "content": {
          "$ref": "#/$defs/RetrievalResultContent"
        },
        "location": {
          "$ref": "#/$defs/RetrievalResultLocation"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "Contains metadata attributes and their values for the file in the data source. For more information, see Metadata and filtering."
        }
      }
    },
    "ReturnControlPayload": {
      "type": "object",
      "properties": {
        "invocationInputs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InvocationInputMember"
          },
          "description": "A list of objects that contain information about the parameters and inputs that need to be sent into the API operation or function, based on what the agent determines from its session with the user."
        },
        "invocationId": {
          "type": "string",
          "description": "The identifier of the action group invocation."
        }
      }
    },
    "ReturnControlResults": {
      "type": "object",
      "properties": {
        "invocationId": {
          "type": "string",
          "description": "The action's invocation ID."
        },
        "returnControlInvocationResults": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InvocationResultMember"
          },
          "description": "The action invocation result."
        }
      }
    },
    "RoutingClassifierModelInvocationOutput": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string",
          "description": "The invocation's trace ID."
        },
        "rawResponse": {
          "$ref": "#/$defs/RawResponse"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata"
        }
      }
    },
    "RoutingClassifierTrace": {
      "type": "object",
      "properties": {
        "invocationInput": {
          "$ref": "#/$defs/InvocationInput"
        },
        "observation": {
          "$ref": "#/$defs/Observation"
        },
        "modelInvocationInput": {
          "$ref": "#/$defs/ModelInvocationInput"
        },
        "modelInvocationOutput": {
          "$ref": "#/$defs/RoutingClassifierModelInvocationOutput"
        }
      },
      "description": "Exactly one member is set."
    },
    "SatisfiedCondition": {
      "type": "object",
      "properties": {
        "conditionName": {
          "type": "string",
          "description": "The name of the condition that was satisfied."
        }
      },
      "required": [
        "conditionName"
      ]
    },
    "Trace": {
      "type": "object",
      "properties": {
        "guardrailTrace": {
          "$ref": "#/$defs/GuardrailTrace"
        },
        "preProcessingTrace": {
          "$ref": "#/$defs/PreProcessingTrace"
        },
        "orchestrationTrace": {
          "$ref": "#/$defs/OrchestrationTrace"
        },
        "postProcessingTrace": {
          "$ref": "#/$defs/PostProcessingTrace"
        },
        "routingClassifierTrace": {
          "$ref": "#/$defs/RoutingClassifierTrace"
        },
        "failureTrace": {
          "$ref": "#/$defs/FailureTrace"
        },
        "customOrchestrationTrace": {
          "$ref": "#/$defs/CustomOrchestrationTrace"
        }
      },
      "description": "Exactly one member is set."
    },
    "TracePart": {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string",
          "description": "The unique identifier of the session with the agent."
        },
        "trace": {
          "$ref": "#/$defs/Trace"
        },
        "callerChain": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Caller"
          },
          "description": "The part's caller chain."
        },
        "eventTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time of the trace."
        },
        "collaboratorName": {
          "type": "string",
          "description": "The part's collaborator name."
        },
        "agentId": {
          "type": "string",
          "description": "The unique identifier of the agent."
        },
        "agentAliasId": {
          "type": "string",
          "description": "The unique identifier of the alias of the agent."
        },
        "agentVersion": {
          "type": "string",
          "description": "The version of the agent."
        }
      }
    },
    "Usage": {
      "type": "object",
      "properties": {
        "inputTokens": {
          "type": "integer",
          "description": "Contains information about the input tokens from the foundation model usage."
        },
        "outputTokens": {
          "type": "integer",
          "description": "Contains information about the output tokens from the foundation model usage."
        }
      }
    },
    "VideoSegment": {
      "type": "object",
      "properties": {
        "s3Uri": {
          "type": "string",
          "description": "The S3 URI where this specific video segment is stored in the multimodal storage destination."
        },
        "summary": {
          "type": "string",
          "description": "A text summary describing the content of the video segment."
        }
      },
      "required": [
        "s3Uri"
      ]
    }
  }
}