We recommend new projects start with resources from the AWS provider.
aws-native.bedrock.getAgent
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Definition of AWS::Bedrock::Agent Resource Type
Using getAgent
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAgent(args: GetAgentArgs, opts?: InvokeOptions): Promise<GetAgentResult>
function getAgentOutput(args: GetAgentOutputArgs, opts?: InvokeOptions): Output<GetAgentResult>
def get_agent(agent_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAgentResult
def get_agent_output(agent_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAgentResult]
func LookupAgent(ctx *Context, args *LookupAgentArgs, opts ...InvokeOption) (*LookupAgentResult, error)
func LookupAgentOutput(ctx *Context, args *LookupAgentOutputArgs, opts ...InvokeOption) LookupAgentResultOutput
> Note: This function is named LookupAgent
in the Go SDK.
public static class GetAgent
{
public static Task<GetAgentResult> InvokeAsync(GetAgentArgs args, InvokeOptions? opts = null)
public static Output<GetAgentResult> Invoke(GetAgentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAgentResult> getAgent(GetAgentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:bedrock:getAgent
arguments:
# arguments dictionary
The following arguments are supported:
- Agent
Id string - Identifier for a resource.
- Agent
Id string - Identifier for a resource.
- agent
Id String - Identifier for a resource.
- agent
Id string - Identifier for a resource.
- agent_
id str - Identifier for a resource.
- agent
Id String - Identifier for a resource.
getAgent Result
The following output properties are available:
- Action
Groups List<Pulumi.Aws Native. Bedrock. Outputs. Agent Action Group> - List of ActionGroups
- Agent
Arn string - Arn representation of the Agent.
- Agent
Id string - Identifier for a resource.
- Agent
Name string - Name for a resource.
- Agent
Resource stringRole Arn - ARN of a IAM role.
- Agent
Status Pulumi.Aws Native. Bedrock. Agent Status - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- Agent
Version string - Draft Agent Version.
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Description string
- Description of the Resource.
- Failure
Reasons List<string> - Failure Reasons for Error.
- Foundation
Model string - ARN or name of a Bedrock model.
- Guardrail
Configuration Pulumi.Aws Native. Bedrock. Outputs. Agent Guardrail Configuration - Details about the guardrail associated with the agent.
- Idle
Session doubleTtl In Seconds - Max Session Time.
- Instruction string
- Instruction for the agent.
- Knowledge
Bases List<Pulumi.Aws Native. Bedrock. Outputs. Agent Knowledge Base> - List of Agent Knowledge Bases
- Prepared
At string - Time Stamp.
- Prompt
Override Pulumi.Configuration Aws Native. Bedrock. Outputs. Agent Prompt Override Configuration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- Recommended
Actions List<string> - The recommended actions users can take to resolve an error in failureReasons.
- Dictionary<string, string>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Dictionary<string, string>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Updated
At string - Time Stamp.
- Action
Groups []AgentAction Group - List of ActionGroups
- Agent
Arn string - Arn representation of the Agent.
- Agent
Id string - Identifier for a resource.
- Agent
Name string - Name for a resource.
- Agent
Resource stringRole Arn - ARN of a IAM role.
- Agent
Status AgentStatus - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- Agent
Version string - Draft Agent Version.
- Created
At string - Time Stamp.
- Customer
Encryption stringKey Arn - A KMS key ARN
- Description string
- Description of the Resource.
- Failure
Reasons []string - Failure Reasons for Error.
- Foundation
Model string - ARN or name of a Bedrock model.
- Guardrail
Configuration AgentGuardrail Configuration - Details about the guardrail associated with the agent.
- Idle
Session float64Ttl In Seconds - Max Session Time.
- Instruction string
- Instruction for the agent.
- Knowledge
Bases []AgentKnowledge Base - List of Agent Knowledge Bases
- Prepared
At string - Time Stamp.
- Prompt
Override AgentConfiguration Prompt Override Configuration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- Recommended
Actions []string - The recommended actions users can take to resolve an error in failureReasons.
- map[string]string
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- map[string]string
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Updated
At string - Time Stamp.
- action
Groups List<AgentAction Group> - List of ActionGroups
- agent
Arn String - Arn representation of the Agent.
- agent
Id String - Identifier for a resource.
- agent
Name String - Name for a resource.
- agent
Resource StringRole Arn - ARN of a IAM role.
- agent
Status AgentStatus - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- agent
Version String - Draft Agent Version.
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- description String
- Description of the Resource.
- failure
Reasons List<String> - Failure Reasons for Error.
- foundation
Model String - ARN or name of a Bedrock model.
- guardrail
Configuration AgentGuardrail Configuration - Details about the guardrail associated with the agent.
- idle
Session DoubleTtl In Seconds - Max Session Time.
- instruction String
- Instruction for the agent.
- knowledge
Bases List<AgentKnowledge Base> - List of Agent Knowledge Bases
- prepared
At String - Time Stamp.
- prompt
Override AgentConfiguration Prompt Override Configuration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- recommended
Actions List<String> - The recommended actions users can take to resolve an error in failureReasons.
- Map<String,String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Map<String,String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At String - Time Stamp.
- action
Groups AgentAction Group[] - List of ActionGroups
- agent
Arn string - Arn representation of the Agent.
- agent
Id string - Identifier for a resource.
- agent
Name string - Name for a resource.
- agent
Resource stringRole Arn - ARN of a IAM role.
- agent
Status AgentStatus - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- agent
Version string - Draft Agent Version.
- created
At string - Time Stamp.
- customer
Encryption stringKey Arn - A KMS key ARN
- description string
- Description of the Resource.
- failure
Reasons string[] - Failure Reasons for Error.
- foundation
Model string - ARN or name of a Bedrock model.
- guardrail
Configuration AgentGuardrail Configuration - Details about the guardrail associated with the agent.
- idle
Session numberTtl In Seconds - Max Session Time.
- instruction string
- Instruction for the agent.
- knowledge
Bases AgentKnowledge Base[] - List of Agent Knowledge Bases
- prepared
At string - Time Stamp.
- prompt
Override AgentConfiguration Prompt Override Configuration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- recommended
Actions string[] - The recommended actions users can take to resolve an error in failureReasons.
- {[key: string]: string}
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- {[key: string]: string}
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At string - Time Stamp.
- action_
groups Sequence[AgentAction Group] - List of ActionGroups
- agent_
arn str - Arn representation of the Agent.
- agent_
id str - Identifier for a resource.
- agent_
name str - Name for a resource.
- agent_
resource_ strrole_ arn - ARN of a IAM role.
- agent_
status AgentStatus - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- agent_
version str - Draft Agent Version.
- created_
at str - Time Stamp.
- customer_
encryption_ strkey_ arn - A KMS key ARN
- description str
- Description of the Resource.
- failure_
reasons Sequence[str] - Failure Reasons for Error.
- foundation_
model str - ARN or name of a Bedrock model.
- guardrail_
configuration AgentGuardrail Configuration - Details about the guardrail associated with the agent.
- idle_
session_ floatttl_ in_ seconds - Max Session Time.
- instruction str
- Instruction for the agent.
- knowledge_
bases Sequence[AgentKnowledge Base] - List of Agent Knowledge Bases
- prepared_
at str - Time Stamp.
- prompt_
override_ Agentconfiguration Prompt Override Configuration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- recommended_
actions Sequence[str] - The recommended actions users can take to resolve an error in failureReasons.
- Mapping[str, str]
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Mapping[str, str]
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated_
at str - Time Stamp.
- action
Groups List<Property Map> - List of ActionGroups
- agent
Arn String - Arn representation of the Agent.
- agent
Id String - Identifier for a resource.
- agent
Name String - Name for a resource.
- agent
Resource StringRole Arn - ARN of a IAM role.
- agent
Status "CREATING" | "PREPARING" | "PREPARED" | "NOT_PREPARED" | "DELETING" | "FAILED" | "VERSIONING" | "UPDATING" - The status of the agent and whether it is ready for use. The following statuses are possible:
- CREATING – The agent is being created.
- PREPARING – The agent is being prepared.
- PREPARED – The agent is prepared and ready to be invoked.
- NOT_PREPARED – The agent has been created but not yet prepared.
- FAILED – The agent API operation failed.
- UPDATING – The agent is being updated.
- DELETING – The agent is being deleted.
- agent
Version String - Draft Agent Version.
- created
At String - Time Stamp.
- customer
Encryption StringKey Arn - A KMS key ARN
- description String
- Description of the Resource.
- failure
Reasons List<String> - Failure Reasons for Error.
- foundation
Model String - ARN or name of a Bedrock model.
- guardrail
Configuration Property Map - Details about the guardrail associated with the agent.
- idle
Session NumberTtl In Seconds - Max Session Time.
- instruction String
- Instruction for the agent.
- knowledge
Bases List<Property Map> - List of Agent Knowledge Bases
- prepared
At String - Time Stamp.
- prompt
Override Property MapConfiguration - Contains configurations to override prompt templates in different parts of an agent sequence. For more information, see Advanced prompts .
- recommended
Actions List<String> - The recommended actions users can take to resolve an error in failureReasons.
- Map<String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- Map<String>
- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:
- updated
At String - Time Stamp.
Supporting Types
AgentActionGroup
- Action
Group stringName - Name of the action group
- Action
Group Pulumi.Executor Aws | Pulumi.Native. Bedrock. Inputs. Agent Action Group Executor0Properties Aws Native. Bedrock. Inputs. Agent Action Group Executor1Properties - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- Action
Group Pulumi.State Aws Native. Bedrock. Agent Action Group State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- Api
Schema Pulumi.Aws | Pulumi.Native. Bedrock. Inputs. Agent Api Schema0Properties Aws Native. Bedrock. Inputs. Agent Api Schema1Properties - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- Description string
- Description of action group
- Function
Schema Pulumi.Aws Native. Bedrock. Inputs. Agent Function Schema - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- Parent
Action Pulumi.Group Signature Aws Native. Bedrock. Agent Action Group Signature If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- Skip
Resource boolIn Use Check On Delete - Specifies whether to allow deleting action group while it is in use.
- Action
Group stringName - Name of the action group
- Action
Group AgentExecutor Action | AgentGroup Executor0Properties Action Group Executor1Properties - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- Action
Group AgentState Action Group State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- Api
Schema AgentApi | AgentSchema0Properties Api Schema1Properties - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- Description string
- Description of action group
- Function
Schema AgentFunction Schema - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- Parent
Action AgentGroup Signature Action Group Signature If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- Skip
Resource boolIn Use Check On Delete - Specifies whether to allow deleting action group while it is in use.
- action
Group StringName - Name of the action group
- action
Group AgentExecutor Action | AgentGroup Executor0Properties Action Group Executor1Properties - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- action
Group AgentState Action Group State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- api
Schema AgentApi | AgentSchema0Properties Api Schema1Properties - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- description String
- Description of action group
- function
Schema AgentFunction Schema - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- parent
Action AgentGroup Signature Action Group Signature If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- skip
Resource BooleanIn Use Check On Delete - Specifies whether to allow deleting action group while it is in use.
- action
Group stringName - Name of the action group
- action
Group AgentExecutor Action | AgentGroup Executor0Properties Action Group Executor1Properties - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- action
Group AgentState Action Group State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- api
Schema AgentApi | AgentSchema0Properties Api Schema1Properties - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- description string
- Description of action group
- function
Schema AgentFunction Schema - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- parent
Action AgentGroup Signature Action Group Signature If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- skip
Resource booleanIn Use Check On Delete - Specifies whether to allow deleting action group while it is in use.
- action_
group_ strname - Name of the action group
- action_
group_ Agentexecutor Action | AgentGroup Executor0Properties Action Group Executor1Properties - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- action_
group_ Agentstate Action Group State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- api_
schema AgentApi | AgentSchema0Properties Api Schema1Properties - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- description str
- Description of action group
- function_
schema AgentFunction Schema - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- parent_
action_ Agentgroup_ signature Action Group Signature If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- skip_
resource_ boolin_ use_ check_ on_ delete - Specifies whether to allow deleting action group while it is in use.
- action
Group StringName - Name of the action group
- action
Group Property Map | Property MapExecutor - The Amazon Resource Name (ARN) of the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.
- action
Group "ENABLED" | "DISABLED"State - Specifies whether the action group is available for the agent to invoke or not when sending an InvokeAgent request.
- api
Schema Property Map | Property Map - Contains either details about the S3 object containing the OpenAPI schema for the action group or the JSON or YAML-formatted payload defining the schema. For more information, see Action group OpenAPI schemas .
- description String
- Description of action group
- function
Schema Property Map - Defines functions that each define parameters that the agent needs to invoke from the user. Each function represents an action in an action group.
- parent
Action "AMAZON.Group Signature User Input" If this field is set as
AMAZON.UserInput
, the agent can request the user for additional information when trying to complete a task. Thedescription
,apiSchema
, andactionGroupExecutor
fields must be blank for this action group.During orchestration, if the agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request, it will invoke this action group instead and return an Observation reprompting the user for more information.
- skip
Resource BooleanIn Use Check On Delete - Specifies whether to allow deleting action group while it is in use.
AgentActionGroupExecutor0Properties
- Lambda string
- ARN of a Lambda.
- Lambda string
- ARN of a Lambda.
- lambda String
- ARN of a Lambda.
- lambda string
- ARN of a Lambda.
- lambda_ str
- ARN of a Lambda.
- lambda String
- ARN of a Lambda.
AgentActionGroupExecutor1Properties
AgentActionGroupSignature
AgentActionGroupState
AgentApiSchema0Properties
AgentApiSchema1Properties
- Payload string
- String OpenAPI Payload
- Payload string
- String OpenAPI Payload
- payload String
- String OpenAPI Payload
- payload string
- String OpenAPI Payload
- payload str
- String OpenAPI Payload
- payload String
- String OpenAPI Payload
AgentCreationMode
AgentCustomControlMethod
AgentFunction
- Name string
- Name for a resource.
- Description string
- Description of function
- Parameters
Dictionary<string, Pulumi.
Aws Native. Bedrock. Inputs. Agent Parameter Detail> - The parameters that the agent elicits from the user to fulfill the function.
- Name string
- Name for a resource.
- Description string
- Description of function
- Parameters
map[string]Agent
Parameter Detail - The parameters that the agent elicits from the user to fulfill the function.
- name String
- Name for a resource.
- description String
- Description of function
- parameters
Map<String,Agent
Parameter Detail> - The parameters that the agent elicits from the user to fulfill the function.
- name string
- Name for a resource.
- description string
- Description of function
- parameters
{[key: string]: Agent
Parameter Detail} - The parameters that the agent elicits from the user to fulfill the function.
- name str
- Name for a resource.
- description str
- Description of function
- parameters
Mapping[str, Agent
Parameter Detail] - The parameters that the agent elicits from the user to fulfill the function.
- name String
- Name for a resource.
- description String
- Description of function
- parameters Map<Property Map>
- The parameters that the agent elicits from the user to fulfill the function.
AgentFunctionSchema
- Functions
List<Pulumi.
Aws Native. Bedrock. Inputs. Agent Function> - List of Function definitions
- Functions
[]Agent
Function - List of Function definitions
- functions
List<Agent
Function> - List of Function definitions
- functions
Agent
Function[] - List of Function definitions
- functions
Sequence[Agent
Function] - List of Function definitions
- functions List<Property Map>
- List of Function definitions
AgentGuardrailConfiguration
- Guardrail
Identifier string - Identifier for the guardrail, could be the id or the arn
- Guardrail
Version string - Version of the guardrail
- Guardrail
Identifier string - Identifier for the guardrail, could be the id or the arn
- Guardrail
Version string - Version of the guardrail
- guardrail
Identifier String - Identifier for the guardrail, could be the id or the arn
- guardrail
Version String - Version of the guardrail
- guardrail
Identifier string - Identifier for the guardrail, could be the id or the arn
- guardrail
Version string - Version of the guardrail
- guardrail_
identifier str - Identifier for the guardrail, could be the id or the arn
- guardrail_
version str - Version of the guardrail
- guardrail
Identifier String - Identifier for the guardrail, could be the id or the arn
- guardrail
Version String - Version of the guardrail
AgentInferenceConfiguration
- Maximum
Length double - Maximum length of output
- Stop
Sequences List<string> - List of stop sequences
- Temperature double
- Controls randomness, higher values increase diversity
- Top
K double - Sample from the k most likely next tokens
- Top
P double - Cumulative probability cutoff for token selection
- Maximum
Length float64 - Maximum length of output
- Stop
Sequences []string - List of stop sequences
- Temperature float64
- Controls randomness, higher values increase diversity
- Top
K float64 - Sample from the k most likely next tokens
- Top
P float64 - Cumulative probability cutoff for token selection
- maximum
Length Double - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Double
- Controls randomness, higher values increase diversity
- top
K Double - Sample from the k most likely next tokens
- top
P Double - Cumulative probability cutoff for token selection
- maximum
Length number - Maximum length of output
- stop
Sequences string[] - List of stop sequences
- temperature number
- Controls randomness, higher values increase diversity
- top
K number - Sample from the k most likely next tokens
- top
P number - Cumulative probability cutoff for token selection
- maximum_
length float - Maximum length of output
- stop_
sequences Sequence[str] - List of stop sequences
- temperature float
- Controls randomness, higher values increase diversity
- top_
k float - Sample from the k most likely next tokens
- top_
p float - Cumulative probability cutoff for token selection
- maximum
Length Number - Maximum length of output
- stop
Sequences List<String> - List of stop sequences
- temperature Number
- Controls randomness, higher values increase diversity
- top
K Number - Sample from the k most likely next tokens
- top
P Number - Cumulative probability cutoff for token selection
AgentKnowledgeBase
- Description string
- Description of the Resource.
- Knowledge
Base stringId - Identifier for a resource.
- Knowledge
Base Pulumi.State Aws Native. Bedrock. Agent Knowledge Base State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- Description string
- Description of the Resource.
- Knowledge
Base stringId - Identifier for a resource.
- Knowledge
Base AgentState Knowledge Base State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- description String
- Description of the Resource.
- knowledge
Base StringId - Identifier for a resource.
- knowledge
Base AgentState Knowledge Base State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- description string
- Description of the Resource.
- knowledge
Base stringId - Identifier for a resource.
- knowledge
Base AgentState Knowledge Base State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- description str
- Description of the Resource.
- knowledge_
base_ strid - Identifier for a resource.
- knowledge_
base_ Agentstate Knowledge Base State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
- description String
- Description of the Resource.
- knowledge
Base StringId - Identifier for a resource.
- knowledge
Base "ENABLED" | "DISABLED"State - Specifies whether to use the knowledge base or not when sending an InvokeAgent request.
AgentKnowledgeBaseState
AgentParameterDetail
- Type
Pulumi.
Aws Native. Bedrock. Agent Type - The data type of the parameter.
- Description string
- Description of function parameter.
- Required bool
- Information about if a parameter is required for function call. Default to false.
- Type
Agent
Type - The data type of the parameter.
- Description string
- Description of function parameter.
- Required bool
- Information about if a parameter is required for function call. Default to false.
- type
Agent
Type - The data type of the parameter.
- description String
- Description of function parameter.
- required Boolean
- Information about if a parameter is required for function call. Default to false.
- type
Agent
Type - The data type of the parameter.
- description string
- Description of function parameter.
- required boolean
- Information about if a parameter is required for function call. Default to false.
- type
Agent
Type - The data type of the parameter.
- description str
- Description of function parameter.
- required bool
- Information about if a parameter is required for function call. Default to false.
- type "string" | "number" | "integer" | "boolean" | "array"
- The data type of the parameter.
- description String
- Description of function parameter.
- required Boolean
- Information about if a parameter is required for function call. Default to false.
AgentPromptConfiguration
- Base
Prompt stringTemplate - Base Prompt Template.
- Inference
Configuration Pulumi.Aws Native. Bedrock. Inputs. Agent Inference Configuration - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - Parser
Mode Pulumi.Aws Native. Bedrock. Agent Creation Mode - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - Prompt
Creation Pulumi.Mode Aws Native. Bedrock. Agent Creation Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - Prompt
State Pulumi.Aws Native. Bedrock. Agent Prompt State - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- Prompt
Type Pulumi.Aws Native. Bedrock. Agent Prompt Type - The step in the agent sequence that this prompt configuration applies to.
- Base
Prompt stringTemplate - Base Prompt Template.
- Inference
Configuration AgentInference Configuration - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - Parser
Mode AgentCreation Mode - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - Prompt
Creation AgentMode Creation Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - Prompt
State AgentPrompt State - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- Prompt
Type AgentPrompt Type - The step in the agent sequence that this prompt configuration applies to.
- base
Prompt StringTemplate - Base Prompt Template.
- inference
Configuration AgentInference Configuration - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - parser
Mode AgentCreation Mode - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - prompt
Creation AgentMode Creation Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - prompt
State AgentPrompt State - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- prompt
Type AgentPrompt Type - The step in the agent sequence that this prompt configuration applies to.
- base
Prompt stringTemplate - Base Prompt Template.
- inference
Configuration AgentInference Configuration - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - parser
Mode AgentCreation Mode - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - prompt
Creation AgentMode Creation Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - prompt
State AgentPrompt State - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- prompt
Type AgentPrompt Type - The step in the agent sequence that this prompt configuration applies to.
- base_
prompt_ strtemplate - Base Prompt Template.
- inference_
configuration AgentInference Configuration - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - parser_
mode AgentCreation Mode - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - prompt_
creation_ Agentmode Creation Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - prompt_
state AgentPrompt State - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- prompt_
type AgentPrompt Type - The step in the agent sequence that this prompt configuration applies to.
- base
Prompt StringTemplate - Base Prompt Template.
- inference
Configuration Property Map - Contains inference parameters to use when the agent invokes a foundation model in the part of the agent sequence defined by the
promptType
. For more information, see Inference parameters for foundation models . - parser
Mode "DEFAULT" | "OVERRIDDEN" - 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 asOVERRIDEN
, theoverrideLambda
field in the PromptOverrideConfiguration must be specified with the ARN of a Lambda function. - prompt
Creation "DEFAULT" | "OVERRIDDEN"Mode - Specifies whether to override the default prompt template for this
promptType
. Set this value toOVERRIDDEN
to use the prompt that you provide in thebasePromptTemplate
. If you leave it asDEFAULT
, the agent uses a default prompt template. - prompt
State "ENABLED" | "DISABLED" - Specifies whether to allow the agent to carry out the step specified in the
promptType
. If you set this value toDISABLED
, the agent skips that step. The default state for eachpromptType
is as follows.PRE_PROCESSING
–ENABLED
ORCHESTRATION
–ENABLED
KNOWLEDGE_BASE_RESPONSE_GENERATION
–ENABLED
POST_PROCESSING
–DISABLED
- prompt
Type "PRE_PROCESSING" | "ORCHESTRATION" | "POST_PROCESSING" | "KNOWLEDGE_BASE_RESPONSE_GENERATION" - The step in the agent sequence that this prompt configuration applies to.
AgentPromptOverrideConfiguration
- Prompt
Configurations List<Pulumi.Aws Native. Bedrock. Inputs. Agent Prompt Configuration> - List of BasePromptConfiguration
- Override
Lambda string - ARN of a Lambda.
- Prompt
Configurations []AgentPrompt Configuration - List of BasePromptConfiguration
- Override
Lambda string - ARN of a Lambda.
- prompt
Configurations List<AgentPrompt Configuration> - List of BasePromptConfiguration
- override
Lambda String - ARN of a Lambda.
- prompt
Configurations AgentPrompt Configuration[] - List of BasePromptConfiguration
- override
Lambda string - ARN of a Lambda.
- prompt_
configurations Sequence[AgentPrompt Configuration] - List of BasePromptConfiguration
- override_
lambda str - ARN of a Lambda.
- prompt
Configurations List<Property Map> - List of BasePromptConfiguration
- override
Lambda String - ARN of a Lambda.
AgentPromptState
AgentPromptType
AgentS3Identifier
- S3Bucket
Name string - A bucket in S3.
- S3Object
Key string - A object key in S3.
- S3Bucket
Name string - A bucket in S3.
- S3Object
Key string - A object key in S3.
- s3Bucket
Name String - A bucket in S3.
- s3Object
Key String - A object key in S3.
- s3Bucket
Name string - A bucket in S3.
- s3Object
Key string - A object key in S3.
- s3_
bucket_ strname - A bucket in S3.
- s3_
object_ strkey - A object key in S3.
- s3Bucket
Name String - A bucket in S3.
- s3Object
Key String - A object key in S3.
AgentStatus
AgentType
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.