Module Values.CreateAgentRequestSource

Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers. Specify the following fields for security purposes. agentResourceRoleArn – The Amazon Resource Name (ARN) of the role with permissions to invoke API operations on an agent. (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent. (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent InvokeAgent request begins a new session. To enable your agent to retain conversational context across multiple sessions, include a memoryConfiguration object. For more information, see Configure memory. To override the default prompt behavior for agent orchestration and to use advanced prompts, include a promptOverrideConfiguration object. For more information, see Advanced prompts. If your agent fails to be created, the response returns a list of failureReasons alongside a list of recommendedActions for you to troubleshoot. The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.

Sourcetype nonrec t = {
  1. agentName : Name.t;
    (*

    A name for the agent that you create.

    *)
  2. clientToken : ClientToken.t option;
    (*

    A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.

    *)
  3. instruction : Instruction.t option;
    (*

    Instructions that tell the agent what it should do and how it should interact with users.

    *)
  4. foundationModel : ModelIdentifier.t option;
    (*

    The identifier for the model that you want to be used for orchestration by the agent you create. The modelId to provide depends on the type of model or throughput that you use: If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see Amazon Bedrock base model IDs (on-demand throughput) in the Amazon Bedrock User Guide. If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see Supported Regions and models for cross-region inference in the Amazon Bedrock User Guide. If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see Run inference using a Provisioned Throughput in the Amazon Bedrock User Guide. If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see Use a custom model in Amazon Bedrock in the Amazon Bedrock User Guide. If you use an imported model, specify the ARN of the imported model. You can get the model ARN from a successful call to CreateModelImportJob or from the Imported models page in the Amazon Bedrock console.

    *)
  5. description : Description.t option;
    (*

    A description of the agent.

    *)
  6. orchestrationType : OrchestrationType.t option;
    (*

    Specifies the type of orchestration strategy for the agent. This is set to DEFAULT orchestration type, by default.

    *)
  7. customOrchestration : CustomOrchestration.t option;
    (*

    Contains details of the custom orchestration configured for the agent.

    *)
  8. idleSessionTTLInSeconds : SessionTTL.t option;
    (*

    The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the 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.

    *)
  9. agentResourceRoleArn : AgentRoleArn.t option;
    (*

    The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent.

    *)
  10. customerEncryptionKeyArn : KmsKeyArn.t option;
    (*

    The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent.

    *)
  11. tags : TagsMap.t option;
    (*

    Any tags that you want to attach to the agent.

    *)
  12. promptOverrideConfiguration : PromptOverrideConfiguration.t option;
    (*

    Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.

    *)
  13. guardrailConfiguration : GuardrailConfiguration.t option;
    (*

    The unique Guardrail configuration assigned to the agent when it is created.

    *)
  14. memoryConfiguration : MemoryConfiguration.t option;
    (*

    Contains the details of the memory configured for the agent.

    *)
  15. agentCollaboration : AgentCollaboration.t option;
    (*

    The agent's collaboration role.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientToken:??? -> ?instruction:??? -> ?foundationModel:??? -> ?description:??? -> ?orchestrationType:??? -> ?customOrchestration:??? -> ?idleSessionTTLInSeconds:??? -> ?agentResourceRoleArn:??? -> ?customerEncryptionKeyArn:??? -> ?tags:??? -> ?promptOverrideConfiguration:??? -> ?guardrailConfiguration:??? -> ?memoryConfiguration:??? -> ?agentCollaboration:??? -> agentName:Name.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of SessionTTL.t | `Map of ([> `String of TagKey.t ] * [> `String of TagValue.t ]) list | `String of Name.t | `Structure of (string * [> `Integer of StorageDays.t | `List of [> `Enum of string | `Structure of (string * [> `Enum of string | `String of BasePromptTemplate.t | `Structure of (string * [> `Float of Temperature.t | `Integer of TopK.t | `List of [> `String of String_.t ] list ]) list ]) list ] list | `String of LambdaArn.t | `Structure of (string * [> `Integer of MaxRecentSessions.t | `String of LambdaArn.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t