Skip to content
v2.278.0

AgentCollaboratorProperty ​

Struct External

An agent collaborator.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const agentCollaboratorProperty: bedrock.CfnAgent.AgentCollaboratorProperty = {
  agentDescriptor: {
    aliasArn: 'aliasArn',
  },
  collaborationInstruction: 'collaborationInstruction',
  collaboratorName: 'collaboratorName',

  // the properties below are optional
  relayConversationHistory: 'relayConversationHistory',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

agent_collaborator_property = bedrock.CfnAgent.AgentCollaboratorProperty(
    agent_descriptor=bedrock.CfnAgent.AgentDescriptorProperty(
        alias_arn="aliasArn"
    ),
    collaboration_instruction="collaborationInstruction",
    collaborator_name="collaboratorName",

    # the properties below are optional
    relay_conversation_history="relayConversationHistory"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

AgentCollaboratorProperty agentCollaboratorProperty = AgentCollaboratorProperty.builder()
        .agentDescriptor(AgentDescriptorProperty.builder()
                .aliasArn("aliasArn")
                .build())
        .collaborationInstruction("collaborationInstruction")
        .collaboratorName("collaboratorName")

        // the properties below are optional
        .relayConversationHistory("relayConversationHistory")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var agentCollaboratorProperty = new AgentCollaboratorProperty {
    AgentDescriptor = new AgentDescriptorProperty {
        AliasArn = "aliasArn"
    },
    CollaborationInstruction = "collaborationInstruction",
    CollaboratorName = "collaboratorName",

    // the properties below are optional
    RelayConversationHistory = "relayConversationHistory"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

agentCollaboratorProperty := &AgentCollaboratorProperty{
	AgentDescriptor: &AgentDescriptorProperty{
		AliasArn: jsii.String("aliasArn"),
	},
	CollaborationInstruction: jsii.String("collaborationInstruction"),
	CollaboratorName: jsii.String("collaboratorName"),

	// the properties below are optional
	RelayConversationHistory: jsii.String("relayConversationHistory"),
}

Properties ​

agentDescriptorIResolvable | CfnAgent.AgentDescriptorPropertyagent_descriptortyping.Union[IResolvable, AgentDescriptorProperty]agentDescriptorIResolvableAgentDescriptorIResolvableAgentDescriptorinterface{} required #
The collaborator's agent descriptor.
collaborationInstructionstringcollaboration_instructionstrcollaborationInstructionStringCollaborationInstructionstringCollaborationInstruction*string required #
The collaborator's instructions.
collaboratorNamestringcollaborator_namestrcollaboratorNameStringCollaboratorNamestringCollaboratorName*string required #
The collaborator's collaborator name.
relayConversationHistoryoptionalstringrelay_conversation_historyoptionalstrrelayConversationHistoryoptionalStringRelayConversationHistoryoptionalstringRelayConversationHistoryoptional*string #
The collaborator's relay conversation history.