@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / AgentCollaborator
DEF - Agent Collaborator Class ***************************************************************************
new AgentCollaborator(
props
):AgentCollaborator
AgentCollaborator
readonly
agentAlias:IAgentAlias
readonly
collaborationInstruction:string
Instructions on how this agent should collaborate with the main agent.
readonly
collaboratorName:string
A friendly name for the collaborator.
readonly
optional
relayConversationHistory:boolean
Whether to relay conversation history to this collaborator.
- undefined (uses service default)
_render():
AgentCollaboratorProperty
Internal
Format as CFN properties
This is an internal core function and should not be called directly.
AgentCollaboratorProperty
grant(
grantee
):Grant
Grants the specified principal permissions to get the agent alias and invoke the agent from this collaborator.
IGrantable
The principal to grant permissions to
Grant
The Grant object