{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-bedrock/json-schema/amazon-bedrock-invoke-inline-agent-request-schema.json",
  "title": "InvokeInlineAgentRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-bedrock-agents-api-openapi.yml#/components/schemas/InvokeInlineAgentRequest",
  "type": "object",
  "properties": {
    "customerEncryptionKeyArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent."
    },
    "foundationModel": {
      "type": "string",
      "description": "The model identifier (ID) of the model to use for orchestration by the inline agent. For example, meta.llama3-1-70b-instruct-v1:0."
    },
    "instruction": {
      "type": "string",
      "description": "The instructions that tell the inline agent what it should do and how it should interact with users."
    },
    "idleSessionTTLInSeconds": {
      "type": "integer",
      "description": "The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted."
    },
    "actionGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BedrockAgentRuntimeAgentActionGroup"
      },
      "description": "A list of action groups with each action group defining the action the inline agent needs to carry out."
    },
    "knowledgeBases": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BedrockAgentRuntimeKnowledgeBase"
      },
      "description": "Contains information of the knowledge bases to associate with."
    },
    "guardrailConfiguration": {
      "$ref": "#/$defs/GuardrailConfigurationWithArn"
    },
    "promptOverrideConfiguration": {
      "$ref": "#/$defs/PromptOverrideConfiguration"
    },
    "agentCollaboration": {
      "type": "string",
      "enum": [
        "SUPERVISOR",
        "SUPERVISOR_ROUTER",
        "DISABLED"
      ],
      "description": "Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor."
    },
    "collaboratorConfigurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CollaboratorConfiguration"
      },
      "description": "Settings for an inline agent collaborator called with InvokeInlineAgent."
    },
    "agentName": {
      "type": "string",
      "description": "The name for the agent."
    },
    "sessionId": {
      "type": "string",
      "description": "The unique identifier of the session. Use the same value across requests to continue the same conversation."
    },
    "endSession": {
      "type": "boolean",
      "description": "Specifies whether to end the session with the inline agent or not."
    },
    "enableTrace": {
      "type": "boolean",
      "description": "Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Using trace."
    },
    "inputText": {
      "type": "string",
      "description": "The prompt text to send to the agent. If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored."
    },
    "streamingConfigurations": {
      "$ref": "#/$defs/StreamingConfigurations"
    },
    "promptCreationConfigurations": {
      "$ref": "#/$defs/PromptCreationConfigurations"
    },
    "inlineSessionState": {
      "$ref": "#/$defs/InlineSessionState"
    },
    "collaborators": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Collaborator"
      },
      "description": "List of collaborator inline agents."
    },
    "bedrockModelConfigurations": {
      "$ref": "#/$defs/InlineBedrockModelConfigurations"
    },
    "orchestrationType": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "CUSTOM_ORCHESTRATION"
      ],
      "description": "Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default."
    },
    "customOrchestration": {
      "$ref": "#/$defs/CustomOrchestration"
    }
  },
  "required": [
    "foundationModel",
    "instruction",
    "sessionId"
  ],
  "$defs": {
    "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"
      ]
    },
    "BedrockAgentInferenceConfiguration": {
      "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 to allow 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."
        }
      }
    },
    "BedrockAgentRuntimeAPISchema": {
      "type": "object",
      "properties": {
        "s3": {
          "$ref": "#/$defs/S3Identifier"
        },
        "payload": {
          "type": "string",
          "description": "The JSON or YAML-formatted payload defining the OpenAPI schema for the action group."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeActionGroupExecutor": {
      "type": "object",
      "properties": {
        "lambda": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action."
        },
        "customControl": {
          "type": "string",
          "enum": [
            "RETURN_CONTROL"
          ],
          "description": "To return the action group invocation results directly in the InvokeInlineAgent response, specify RETURN_CONTROL."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeAgentActionGroup": {
      "type": "object",
      "properties": {
        "actionGroupName": {
          "type": "string",
          "description": "The name of the action group."
        },
        "description": {
          "type": "string",
          "description": "A description of the action group."
        },
        "parentActionGroupSignature": {
          "type": "string",
          "enum": [
            "AMAZON.UserInput",
            "AMAZON.CodeInterpreter",
            "ANTHROPIC.Computer",
            "ANTHROPIC.Bash",
            "ANTHROPIC.TextEditor"
          ],
          "description": "Specify a built-in or computer use action for this action group. If you specify a value, you must leave the description, apiSchema, and actionGroupExecutor fields empty for this action group. To allow your agent to request the user for additional information when trying to complete a task, set this field to AMAZON.UserInput. To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to AMAZON.CodeInterpreter. To allow your agent to use an Anthropic computer use tool, specify one of the following values. Computer use is a new Anthropic Claude mode"
        },
        "actionGroupExecutor": {
          "$ref": "#/$defs/BedrockAgentRuntimeActionGroupExecutor"
        },
        "apiSchema": {
          "$ref": "#/$defs/BedrockAgentRuntimeAPISchema"
        },
        "functionSchema": {
          "$ref": "#/$defs/BedrockAgentRuntimeFunctionSchema"
        },
        "parentActionGroupSignatureParams": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The configuration settings for a computer use action. Computer use is a new Anthropic Claude model capability (in beta) available with Claude 3.7 Sonnet and Claude 3.5 Sonnet v2 only. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools."
        }
      },
      "required": [
        "actionGroupName"
      ]
    },
    "BedrockAgentRuntimeContentBlock": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "The block's text."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeFieldForReranking": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string",
          "description": "The name of a metadata field to include in or exclude from consideration when reranking."
        }
      },
      "required": [
        "fieldName"
      ]
    },
    "BedrockAgentRuntimeFunctionSchema": {
      "type": "object",
      "properties": {
        "functions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FunctionDefinition"
          },
          "description": "A list of functions that each define an action in the action group."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeImplicitFilterConfiguration": {
      "type": "object",
      "properties": {
        "metadataAttributes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeMetadataAttributeSchema"
          },
          "description": "Metadata that can be used in a filter."
        },
        "modelArn": {
          "type": "string",
          "description": "The model that generates the filter."
        }
      },
      "required": [
        "metadataAttributes",
        "modelArn"
      ]
    },
    "BedrockAgentRuntimeKnowledgeBase": {
      "type": "object",
      "properties": {
        "knowledgeBaseId": {
          "type": "string",
          "description": "The unique identifier for a knowledge base associated with the inline agent."
        },
        "description": {
          "type": "string",
          "description": "The description of the knowledge base associated with the inline agent."
        },
        "retrievalConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeKnowledgeBaseRetrievalConfiguration"
        }
      },
      "required": [
        "knowledgeBaseId",
        "description"
      ]
    },
    "BedrockAgentRuntimeKnowledgeBaseRetrievalConfiguration": {
      "type": "object",
      "properties": {
        "vectorSearchConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeKnowledgeBaseVectorSearchConfiguration"
        },
        "managedSearchConfiguration": {
          "$ref": "#/$defs/ManagedSearchConfiguration"
        }
      }
    },
    "BedrockAgentRuntimeKnowledgeBaseVectorSearchConfiguration": {
      "type": "object",
      "properties": {
        "numberOfResults": {
          "type": "integer",
          "description": "The number of source chunks to retrieve."
        },
        "overrideSearchType": {
          "type": "string",
          "enum": [
            "HYBRID",
            "SEMANTIC"
          ],
          "description": "By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless vector store that contains a filterable text field, you can specify whether to query the knowledge base with a HYBRID search using both vector embeddings and raw text, or SEMANTIC search using only vector embeddings. For other vector store configurations, only SEMANTIC search is available. For more information, see Test a knowledge base."
        },
        "filter": {
          "$ref": "#/$defs/RetrievalFilter"
        },
        "rerankingConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeVectorSearchRerankingConfiguration"
        },
        "implicitFilterConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeImplicitFilterConfiguration"
        }
      }
    },
    "BedrockAgentRuntimeMessage": {
      "type": "object",
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "user",
            "assistant"
          ],
          "description": "The message's role."
        },
        "content": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeContentBlock"
          },
          "description": "The message's content."
        }
      },
      "required": [
        "role",
        "content"
      ]
    },
    "BedrockAgentRuntimeMetadataAttributeSchema": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The attribute's key."
        },
        "type": {
          "type": "string",
          "enum": [
            "STRING",
            "NUMBER",
            "BOOLEAN",
            "STRING_LIST"
          ],
          "description": "The attribute's type."
        },
        "description": {
          "type": "string",
          "description": "The attribute's description."
        }
      },
      "required": [
        "key",
        "type",
        "description"
      ]
    },
    "BedrockAgentRuntimeMetadataConfigurationForReranking": {
      "type": "object",
      "properties": {
        "selectionMode": {
          "type": "string",
          "enum": [
            "SELECTIVE",
            "ALL"
          ],
          "description": "Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify SELECTIVE, include the selectiveModeConfiguration field."
        },
        "selectiveModeConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeRerankingMetadataSelectiveModeConfiguration"
        }
      },
      "required": [
        "selectionMode"
      ]
    },
    "BedrockAgentRuntimePerformanceConfiguration": {
      "type": "object",
      "properties": {
        "latency": {
          "type": "string",
          "enum": [
            "standard",
            "optimized"
          ],
          "description": "To use a latency-optimized version of the model, set to optimized."
        }
      }
    },
    "BedrockAgentRuntimeRerankingMetadataSelectiveModeConfiguration": {
      "type": "object",
      "properties": {
        "fieldsToInclude": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeFieldForReranking"
          },
          "description": "An array of objects, each of which specifies a metadata field to include in consideration when reranking. The remaining metadata fields are ignored."
        },
        "fieldsToExclude": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeFieldForReranking"
          },
          "description": "An array of objects, each of which specifies a metadata field to exclude from consideration when reranking."
        }
      },
      "description": "Exactly one member is set."
    },
    "BedrockAgentRuntimeVectorSearchBedrockRerankingConfiguration": {
      "type": "object",
      "properties": {
        "modelConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeVectorSearchBedrockRerankingModelConfiguration"
        },
        "numberOfRerankedResults": {
          "type": "integer",
          "description": "The number of results to return after reranking."
        },
        "metadataConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeMetadataConfigurationForReranking"
        }
      },
      "required": [
        "modelConfiguration"
      ]
    },
    "BedrockAgentRuntimeVectorSearchBedrockRerankingModelConfiguration": {
      "type": "object",
      "properties": {
        "modelArn": {
          "type": "string",
          "description": "The ARN of the reranker model to use."
        },
        "additionalModelRequestFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "A JSON object whose keys are request fields for the model and whose values are values for those fields."
        }
      },
      "required": [
        "modelArn"
      ]
    },
    "BedrockAgentRuntimeVectorSearchRerankingConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BEDROCK_RERANKING_MODEL"
          ],
          "description": "The type of reranker model."
        },
        "bedrockRerankingConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeVectorSearchBedrockRerankingConfiguration"
        }
      },
      "required": [
        "type"
      ]
    },
    "ByteContentFile": {
      "type": "object",
      "properties": {
        "mediaType": {
          "type": "string",
          "description": "The MIME type of data contained in the file used for chat."
        },
        "data": {
          "type": "string",
          "format": "byte",
          "description": "The raw bytes of the file to attach. The maximum size of all files that is attached is 10MB. You can attach a maximum of 5 files."
        }
      },
      "required": [
        "mediaType",
        "data"
      ]
    },
    "Collaborator": {
      "type": "object",
      "properties": {
        "customerEncryptionKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the inline collaborator."
        },
        "foundationModel": {
          "type": "string",
          "description": "The foundation model used by the inline collaborator agent."
        },
        "instruction": {
          "type": "string",
          "description": "Instruction that tell the inline collaborator agent what it should do and how it should interact with users."
        },
        "idleSessionTTLInSeconds": {
          "type": "integer",
          "description": "The number of seconds for which the Amazon Bedrock keeps information about the user's conversation with the inline collaborator agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout."
        },
        "actionGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeAgentActionGroup"
          },
          "description": "List of action groups with each action group defining tasks the inline collaborator agent needs to carry out."
        },
        "knowledgeBases": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeKnowledgeBase"
          },
          "description": "Knowledge base associated with the inline collaborator agent."
        },
        "guardrailConfiguration": {
          "$ref": "#/$defs/GuardrailConfigurationWithArn"
        },
        "promptOverrideConfiguration": {
          "$ref": "#/$defs/PromptOverrideConfiguration"
        },
        "agentCollaboration": {
          "type": "string",
          "enum": [
            "SUPERVISOR",
            "SUPERVISOR_ROUTER",
            "DISABLED"
          ],
          "description": "Defines how the inline supervisor agent handles information across multiple collaborator agents to coordinate a final response."
        },
        "collaboratorConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CollaboratorConfiguration"
          },
          "description": "Settings of the collaborator agent."
        },
        "agentName": {
          "type": "string",
          "description": "Name of the inline collaborator agent which must be the same name as specified for collaboratorName."
        }
      },
      "required": [
        "foundationModel",
        "instruction"
      ]
    },
    "CollaboratorConfiguration": {
      "type": "object",
      "properties": {
        "collaboratorName": {
          "type": "string",
          "description": "Name of the inline collaborator agent which must be the same name as specified for agentName."
        },
        "collaboratorInstruction": {
          "type": "string",
          "description": "Instructions that tell the inline collaborator agent what it should do and how it should interact with users."
        },
        "agentAliasArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the inline collaborator agent."
        },
        "relayConversationHistory": {
          "type": "string",
          "enum": [
            "TO_COLLABORATOR",
            "DISABLED"
          ],
          "description": "A relay conversation history for the inline collaborator agent."
        }
      },
      "required": [
        "collaboratorName",
        "collaboratorInstruction"
      ]
    },
    "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."
        }
      }
    },
    "ConversationHistory": {
      "type": "object",
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BedrockAgentRuntimeMessage"
          },
          "description": "The conversation's messages."
        }
      }
    },
    "CustomOrchestration": {
      "type": "object",
      "properties": {
        "executor": {
          "$ref": "#/$defs/OrchestrationExecutor"
        }
      }
    },
    "FileSource": {
      "type": "object",
      "properties": {
        "sourceType": {
          "type": "string",
          "enum": [
            "S3",
            "BYTE_CONTENT"
          ],
          "description": "The source type of the files to attach."
        },
        "s3Location": {
          "$ref": "#/$defs/S3ObjectFile"
        },
        "byteContent": {
          "$ref": "#/$defs/ByteContentFile"
        }
      },
      "required": [
        "sourceType"
      ]
    },
    "FilterAttribute": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The name of metadata attribute/field, which must match the name in your data source/document metadata."
        },
        "value": {
          "type": "object",
          "description": "The value of the metadata attribute/field."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "FunctionDefinition": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "A name for the function."
        },
        "description": {
          "type": "string",
          "description": "A description of the function and its purpose."
        },
        "parameters": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/ParameterDetail"
          },
          "description": "The parameters that the agent elicits from the user to fulfill the function."
        },
        "requireConfirmation": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Contains information if user confirmation is required to invoke the function."
        }
      },
      "required": [
        "name"
      ]
    },
    "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"
      ]
    },
    "GuardrailConfigurationWithArn": {
      "type": "object",
      "properties": {
        "guardrailIdentifier": {
          "type": "string",
          "description": "The unique identifier for the guardrail."
        },
        "guardrailVersion": {
          "type": "string",
          "description": "The version of the guardrail."
        }
      },
      "required": [
        "guardrailIdentifier",
        "guardrailVersion"
      ]
    },
    "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."
    },
    "InlineBedrockModelConfigurations": {
      "type": "object",
      "properties": {
        "performanceConfig": {
          "$ref": "#/$defs/BedrockAgentRuntimePerformanceConfiguration"
        }
      }
    },
    "InlineSessionState": {
      "type": "object",
      "properties": {
        "sessionAttributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Contains attributes that persist across a session and the values of those attributes."
        },
        "promptSessionAttributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Contains attributes that persist across a session and the values of those attributes."
        },
        "returnControlInvocationResults": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InvocationResultMember"
          },
          "description": "Contains information about the results from the action group invocation. For more information, see Return control to the agent developer. If you include this field in the sessionState field, the inputText field will be ignored."
        },
        "invocationId": {
          "type": "string",
          "description": "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."
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InputFile"
          },
          "description": "Contains information about the files used by code interpreter."
        },
        "conversationHistory": {
          "$ref": "#/$defs/ConversationHistory"
        }
      }
    },
    "InputFile": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the source file."
        },
        "source": {
          "$ref": "#/$defs/FileSource"
        },
        "useCase": {
          "type": "string",
          "enum": [
            "CODE_INTERPRETER",
            "CHAT"
          ],
          "description": "Specifies how the source files will be used by the code interpreter."
        }
      },
      "required": [
        "name",
        "source",
        "useCase"
      ]
    },
    "InvocationResultMember": {
      "type": "object",
      "properties": {
        "apiResult": {
          "$ref": "#/$defs/ApiResult"
        },
        "functionResult": {
          "$ref": "#/$defs/FunctionResult"
        }
      },
      "description": "Exactly one member is set."
    },
    "ManagedSearchBedrockRerankingConfiguration": {
      "type": "object",
      "properties": {
        "modelConfiguration": {
          "$ref": "#/$defs/ManagedSearchBedrockRerankingModelConfiguration"
        },
        "numberOfRerankedResults": {
          "type": "integer",
          "description": "The number of results to return after reranking."
        },
        "metadataConfiguration": {
          "$ref": "#/$defs/BedrockAgentRuntimeMetadataConfigurationForReranking"
        }
      },
      "required": [
        "modelConfiguration"
      ]
    },
    "ManagedSearchBedrockRerankingModelConfiguration": {
      "type": "object",
      "properties": {
        "modelArn": {
          "type": "string",
          "description": "The ARN of the Bedrock reranking model."
        },
        "additionalModelRequestFields": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          },
          "description": "Additional request fields to pass to the reranking model."
        }
      },
      "required": [
        "modelArn"
      ]
    },
    "ManagedSearchConfiguration": {
      "type": "object",
      "properties": {
        "numberOfResults": {
          "type": "integer",
          "description": "The number of results to retrieve."
        },
        "filter": {
          "$ref": "#/$defs/RetrievalFilter"
        },
        "rerankingModelType": {
          "type": "string",
          "enum": [
            "CUSTOM",
            "MANAGED",
            "NONE"
          ],
          "description": "The type of reranking model to use when reranking results retrieved from the managed search. Use CUSTOM to specify a model, MANAGED to use the service default, or NONE to disable reranking."
        },
        "rerankingConfiguration": {
          "$ref": "#/$defs/ManagedSearchRerankingConfiguration"
        }
      }
    },
    "ManagedSearchRerankingConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BEDROCK_RERANKING_MODEL"
          ],
          "description": "The type of reranking configuration."
        },
        "bedrockRerankingConfiguration": {
          "$ref": "#/$defs/ManagedSearchBedrockRerankingConfiguration"
        }
      },
      "required": [
        "type"
      ]
    },
    "OrchestrationExecutor": {
      "type": "object",
      "properties": {
        "lambda": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action."
        }
      },
      "description": "Exactly one member is set."
    },
    "ParameterDetail": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "A description of the parameter. Helps the foundation model determine how to elicit the parameters from the user."
        },
        "type": {
          "type": "string",
          "enum": [
            "string",
            "number",
            "integer",
            "boolean",
            "array"
          ],
          "description": "The data type of the parameter."
        },
        "required": {
          "type": "boolean",
          "description": "Whether the parameter is required for the agent to complete the function for action group invocation."
        }
      },
      "required": [
        "type"
      ]
    },
    "PromptConfiguration": {
      "type": "object",
      "properties": {
        "promptType": {
          "type": "string",
          "enum": [
            "PRE_PROCESSING",
            "ORCHESTRATION",
            "POST_PROCESSING",
            "KNOWLEDGE_BASE_RESPONSE_GENERATION",
            "MEMORY_SUMMARIZATION"
          ],
          "description": "The step in the agent sequence that this prompt configuration applies to."
        },
        "promptCreationMode": {
          "type": "string",
          "enum": [
            "DEFAULT",
            "OVERRIDDEN"
          ],
          "description": "Specifies whether to override the default prompt template for this promptType. Set this value to OVERRIDDEN to use the prompt that you provide in the basePromptTemplate. If you leave it as DEFAULT, the agent uses a default prompt template."
        },
        "promptState": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Specifies whether to allow the agent to carry out the step specified in the promptType. If you set this value to DISABLED, the agent skips that step. The default state for each promptType is as follows. PRE_PROCESSING – DISABLED ORCHESTRATION – ENABLED KNOWLEDGE_BASE_RESPONSE_GENERATION – ENABLED POST_PROCESSING – DISABLED"
        },
        "basePromptTemplate": {
          "type": "string",
          "description": "Defines the prompt template with which to replace the default prompt template. You can use placeholder variables in the base prompt template to customize the prompt. For more information, see Prompt template placeholder variables. For more information, see Configure the prompt templates."
        },
        "inferenceConfiguration": {
          "$ref": "#/$defs/BedrockAgentInferenceConfiguration"
        },
        "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. If you set the field as OVERRIDDEN, the overrideLambda field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function."
        },
        "foundationModel": {
          "type": "string",
          "description": "The agent's foundation model."
        },
        "additionalModelRequestFields": {
          "type": "object",
          "description": "If the Converse or ConverseStream operations support the model, additionalModelRequestFields contains additional inference parameters, beyond the base set of inference parameters in the inferenceConfiguration field. For more information, see Inference request parameters and response fields for foundation models in the Amazon Bedrock user guide."
        }
      }
    },
    "PromptCreationConfigurations": {
      "type": "object",
      "properties": {
        "previousConversationTurnsToInclude": {
          "type": "integer",
          "description": "The number of previous conversations from the ongoing agent session to include in the conversation history of the agent prompt, during the current invocation. This gives you more granular control over the context that the model is made aware of, and helps the model remove older context which is no longer useful during the ongoing agent session."
        },
        "excludePreviousThinkingSteps": {
          "type": "boolean",
          "description": "If true, the service removes any content between &lt;thinking&gt; tags from previous conversations in an agent session. The service will only remove content from already processed turns. This helps you remove content which might not be useful for current and subsequent invocations. This can reduce the input token count and potentially save costs. The default value is false."
        }
      }
    },
    "PromptOverrideConfiguration": {
      "type": "object",
      "properties": {
        "promptConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PromptConfiguration"
          },
          "description": "Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts."
        },
        "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. If you specify this field, at least one of the promptConfigurations must contain a parserMode value that is set to OVERRIDDEN. For more information, see Parser Lambda function in Amazon Bedrock Agents."
        }
      },
      "required": [
        "promptConfigurations"
      ]
    },
    "RetrievalFilter": {
      "type": "object",
      "properties": {
        "equals": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "notEquals": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "greaterThan": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "greaterThanOrEquals": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "lessThan": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "lessThanOrEquals": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "in": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "notIn": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "startsWith": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "listContains": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "stringContains": {
          "$ref": "#/$defs/FilterAttribute"
        },
        "andAll": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RetrievalFilter"
          },
          "description": "Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list."
        },
        "orAll": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RetrievalFilter"
          },
          "description": "Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list."
        }
      },
      "description": "Exactly one member is set."
    },
    "S3Identifier": {
      "type": "object",
      "properties": {
        "s3BucketName": {
          "type": "string",
          "description": "The name of the S3 bucket."
        },
        "s3ObjectKey": {
          "type": "string",
          "description": "The S3 object key for the S3 resource."
        }
      }
    },
    "S3ObjectFile": {
      "type": "object",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The uri of the s3 object."
        }
      },
      "required": [
        "uri"
      ]
    },
    "StreamingConfigurations": {
      "type": "object",
      "properties": {
        "streamFinalResponse": {
          "type": "boolean",
          "description": "Specifies whether to enable streaming for the final response. This is set to false by default."
        },
        "applyGuardrailInterval": {
          "type": "integer",
          "description": "The guardrail interval to apply as response is generated. By default, the guardrail interval is set to 50 characters. If a larger interval is specified, the response will be generated in larger chunks with fewer ApplyGuardrail calls. The following examples show the response generated for Hello, I am an agent input string. Example response in chunks: Interval set to 3 characters 'Hel', 'lo, ','I am', ' an', ' Age', 'nt' Each chunk has at least 3 characters except for the last chunk Example response in chunks: Interval set to 20 or more characters Hello, I am an Agent"
        }
      }
    }
  }
}