generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructs


@cdklabs/generative-ai-cdk-constructs / bedrock / AgentCollaborator

Class: AgentCollaborator


                    DEF - Agent Collaborator Class ***************************************************************************

Constructors

Constructor

new AgentCollaborator(props): AgentCollaborator

Parameters

props

AgentCollaboratorProps

Returns

AgentCollaborator

Properties

agentAlias

readonly agentAlias: IAgentAlias


collaborationInstruction

readonly collaborationInstruction: string

Instructions on how this agent should collaborate with the main agent.


collaboratorName

readonly collaboratorName: string

A friendly name for the collaborator.


relayConversationHistory?

readonly optional relayConversationHistory: boolean

Whether to relay conversation history to this collaborator.

Default

- undefined (uses service default)

Methods

_render()

_render(): AgentCollaboratorProperty

Internal

Format as CFN properties

This is an internal core function and should not be called directly.

Returns

AgentCollaboratorProperty


grant()

grant(grantee): Grant

Grants the specified principal permissions to get the agent alias and invoke the agent from this collaborator.

Parameters

grantee

IGrantable

The principal to grant permissions to

Returns

Grant

The Grant object