# AgentCollaboratorProperty

Struct · External

An agent collaborator.

- Source: Generated at build time
- Type last changed: v2.181.0 · 26 Feb 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `agentDescriptor`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAgent.AgentDescriptorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnAgent.AgentDescriptorProperty.html) (required) — The collaborator's agent descriptor.

- `collaborationInstruction`: string (required) — The collaborator's instructions.

- `collaboratorName`: string (required) — The collaborator's collaborator name.

- `relayConversationHistory`: string — The collaborator's relay conversation history.
