Experimental
@aws-cdk/aws-bedrock-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
AgentCollaborationConfig Struct
Configuration for agent collaboration settings.
| Stability | Experimental |
|---|---|
| Source | bedrock/agents/agent-collaboration.ts |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_alpha from '@aws-cdk/aws-bedrock-alpha';
declare const agentCollaborator: bedrock_alpha.AgentCollaborator;
const agentCollaborationConfig: bedrock_alpha.AgentCollaborationConfig = {
collaborators: [agentCollaborator],
type: bedrock_alpha.AgentCollaboratorType.SUPERVISOR,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_alpha as bedrock_alpha
# agent_collaborator: bedrock_alpha.AgentCollaborator
agent_collaboration_config = bedrock_alpha.AgentCollaborationConfig(
collaborators=[agent_collaborator],
type=bedrock_alpha.AgentCollaboratorType.SUPERVISOR
)
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.alpha.*;
AgentCollaborator agentCollaborator;
AgentCollaborationConfig agentCollaborationConfig = AgentCollaborationConfig.builder()
.collaborators(List.of(agentCollaborator))
.type(AgentCollaboratorType.SUPERVISOR)
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Alpha;
AgentCollaborator agentCollaborator;
var agentCollaborationConfig = new AgentCollaborationConfig {
Collaborators = new [] { agentCollaborator },
Type = AgentCollaboratorType.SUPERVISOR
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_alpha "github.com/aws/aws-cdk-go/awsbedrockalpha"
var agentCollaborator AgentCollaborator
agentCollaborationConfig := &AgentCollaborationConfig{
Collaborators: []AgentCollaborator{
agentCollaborator,
},
Type: bedrock_alpha.AgentCollaboratorType_SUPERVISOR,
}
Properties
collaboratorsAgentCollaborator[]collaboratorstyping.List[AgentCollaborator]collaboratorsList<AgentCollaborator>CollaboratorsAgentCollaborator[]Collaborators*[]AgentCollaborator required #Collaborators that this agent will work with.
typeAgentCollaboratorTypetypeAgentCollaboratorTypetypeAgentCollaboratorTypeTypeAgentCollaboratorTypeTypeAgentCollaboratorType required #The collaboration type for the agent.