agents 1.0.0
agents: ^1.0.0 copied to clipboard
Dart port of the Microsoft Agents AI framework. Build, compose, and orchestrate AI agents backed by any ChatClient — with sessions, streaming, tool use, compaction, evaluation, and middleware pipelines.
1.0.0 #
Initial release — Dart port of four C# namespaces from the Microsoft Agents AI framework.
Abstractions (Microsoft.Agents.AI.Abstractions)
AIAgent— base class for all agents; definesrun,runStreaming,createSession,serializeSession, anddeserializeSessionAgentSession/AgentSessionStateBag— stateful conversation context serializable to/from JSONAgentResponse/AgentResponseUpdate— typed wrappers aroundChatResponse/ChatResponseUpdateAgentRunOptions/AgentRunContext— per-call options and ambient contextDelegatingAIAgent— base for decorator agents that forward to an inner agentChatHistoryProvider/InMemoryChatHistoryProvider— pluggable chat history persistenceAIContextProvider/MessageAIContextProvider— context enrichment hooks that inject instructions, messages, and tools before each run
AI (Microsoft.Agents.AI)
ChatClientAgent— productionAIAgentbacked by anyChatClient(automatic function-invocation middleware, conversation-id tracking, per-service-call history persistence)ChatClientAgentOptions— fluent configuration for instructions, tools, chat options, and history providersAIAgentBuilder— composable decorator pipeline builderLoggingAgent— decorator that emits structuredLoggeroutput at debug/trace granularityFunctionInvocationDelegatingAgent— injects custom middleware around every tool callAnonymousDelegatingAIAgent— lightweight decorator from a lambda- Extension methods:
ChatClient.asAIAgent,ChatClientBuilder.buildAIAgent,ChatClientBuilder.usePerServiceCallChatHistoryPersistence - Compaction —
CompactionChatClient,CompactionTelemetry,CompactionGroupKind,CompactionTrigger - Evaluation —
AgentEvaluator,EvalCheck,CheckResult,AgentEvaluationExtensions - Skills —
AgentSkillsProvider,AgentSkillsSource,AgentInMemorySkillsSource,AgentFileSkillsSource,DeduplicatingAgentSkillsSource,AgentSkillFrontmatter,AgentSkillResource,AgentSkillScript - Harness — file store, file access, file memory, todo, sub-agents, agent mode, and tool-approval providers for local agent runtimes
Hosting (Microsoft.Agents.AI.Hosting)
HostApplicationBuilderAgentExtensions— DI registration helpersAgentHostingServiceCollectionExtensions— service-collection extensionsHostedAgentBuilder/HostedWorkflowBuilder— lifecycle-managed agent and workflow wiringWorkflowCatalog— registry for named workflow definitions
Workflows (Microsoft.Agents.AI.Workflows)
Executor/Workflow/WorkflowContext— multi-agent orchestration engineMessageRouter/ProtocolBuilder/ProtocolDescriptor— message routing and protocol description- Checkpointing, observability, in-process execution, and specialised workflow sub-areas