bedrock_agent_channel Module
Classes
| BedrockAgentChannel |
An AgentChannel for a BedrockAgent that is based on a ChatHistory. This channel allows Bedrock agents to interact with other types of agents in Semantic Kernel in an AgentGroupChat. However, since Bedrock agents require the chat history to alternate between user and agent messages, this channel will preprocess the chat history to ensure that it meets the requirements of the Bedrock agent. When an invalid pattern is detected, the channel will insert a placeholder user or assistant message to ensure that the chat history alternates between user and agent messages. Note: This class is marked as 'experimental' and may change in the future. Create a new model by parsing and validating input data from keyword arguments. Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model. self is explicitly positional-only to allow self as a field name. |