Struct aws_sdk_bedrockagent::types::Agent
source · #[non_exhaustive]pub struct Agent {Show 18 fields
pub agent_id: String,
pub agent_name: String,
pub agent_arn: String,
pub agent_version: String,
pub client_token: Option<String>,
pub instruction: Option<String>,
pub agent_status: AgentStatus,
pub foundation_model: Option<String>,
pub description: Option<String>,
pub idle_session_ttl_in_seconds: i32,
pub agent_resource_role_arn: String,
pub customer_encryption_key_arn: Option<String>,
pub created_at: DateTime,
pub updated_at: DateTime,
pub prepared_at: Option<DateTime>,
pub failure_reasons: Option<Vec<String>>,
pub recommended_actions: Option<Vec<String>>,
pub prompt_override_configuration: Option<PromptOverrideConfiguration>,
}Expand description
Contains the information of an agent
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.agent_id: StringIdentifier for a resource.
agent_name: StringName for a resource.
agent_arn: StringArn representation of the Agent.
agent_version: StringDraft Agent Version.
client_token: Option<String>Client specified token used for idempotency checks
instruction: Option<String>Instruction for the agent.
agent_status: AgentStatusSchema Type for Action APIs.
foundation_model: Option<String>ARN or name of a Bedrock model.
description: Option<String>Description of the Resource.
idle_session_ttl_in_seconds: i32Max Session Time.
agent_resource_role_arn: StringARN of a IAM role.
customer_encryption_key_arn: Option<String>A KMS key ARN
created_at: DateTimeTime Stamp.
updated_at: DateTimeTime Stamp.
prepared_at: Option<DateTime>Time Stamp.
failure_reasons: Option<Vec<String>>Failure Reasons for Error.
recommended_actions: Option<Vec<String>>The recommended actions users can take to resolve an error in failureReasons.
prompt_override_configuration: Option<PromptOverrideConfiguration>Configuration for prompt override.
Implementations§
source§impl Agent
impl Agent
sourcepub fn agent_name(&self) -> &str
pub fn agent_name(&self) -> &str
Name for a resource.
sourcepub fn agent_version(&self) -> &str
pub fn agent_version(&self) -> &str
Draft Agent Version.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Client specified token used for idempotency checks
sourcepub fn instruction(&self) -> Option<&str>
pub fn instruction(&self) -> Option<&str>
Instruction for the agent.
sourcepub fn agent_status(&self) -> &AgentStatus
pub fn agent_status(&self) -> &AgentStatus
Schema Type for Action APIs.
sourcepub fn foundation_model(&self) -> Option<&str>
pub fn foundation_model(&self) -> Option<&str>
ARN or name of a Bedrock model.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Description of the Resource.
sourcepub fn idle_session_ttl_in_seconds(&self) -> i32
pub fn idle_session_ttl_in_seconds(&self) -> i32
Max Session Time.
sourcepub fn agent_resource_role_arn(&self) -> &str
pub fn agent_resource_role_arn(&self) -> &str
ARN of a IAM role.
sourcepub fn customer_encryption_key_arn(&self) -> Option<&str>
pub fn customer_encryption_key_arn(&self) -> Option<&str>
A KMS key ARN
sourcepub fn created_at(&self) -> &DateTime
pub fn created_at(&self) -> &DateTime
Time Stamp.
sourcepub fn updated_at(&self) -> &DateTime
pub fn updated_at(&self) -> &DateTime
Time Stamp.
sourcepub fn prepared_at(&self) -> Option<&DateTime>
pub fn prepared_at(&self) -> Option<&DateTime>
Time Stamp.
sourcepub fn failure_reasons(&self) -> &[String]
pub fn failure_reasons(&self) -> &[String]
Failure Reasons for Error.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .failure_reasons.is_none().
sourcepub fn recommended_actions(&self) -> &[String]
pub fn recommended_actions(&self) -> &[String]
The recommended actions users can take to resolve an error in failureReasons.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .recommended_actions.is_none().
sourcepub fn prompt_override_configuration(
&self
) -> Option<&PromptOverrideConfiguration>
pub fn prompt_override_configuration( &self ) -> Option<&PromptOverrideConfiguration>
Configuration for prompt override.