Share via


agent Module

Classes

Agent

Base abstraction for all Semantic Kernel agents. An agent instance may participate in one or more conversations. A conversation may include one or more agents. In addition to identity and descriptive meta-data, an Agent must define its communication protocol, or AgentChannel. 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.

AgentThread

Base class for agent threads. An agent thread manages the lifecycle and contextual state of a conversation from the perspective of one or more participating agents. This includes creating the thread, deleting it, and notifying it of new messages from any participant.

AgentResponseItem

Represents a response item from an agent. An AgentResponseItem includes a message payload (ChatMessageContent) and the conversation thread that produced it.