agents 1.1.0
agents: ^1.1.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.1.0 #
New
AIContentExtensions— addsconcatText()onList<ChatMessage>, concatenating each message's text with newline separators (skipping empty values). PortsAIContentExtensions.ConcatText(IList<ChatMessage>)fromMicrosoft.Agents.AI.Abstractions. The companion overload onIterable<AIContent>is already provided by theextensionspackage.
Breaking
- Renamed five workflow execution interfaces to conform to the Dart convention
that every class is an implicit interface (no
IFooprefixes):IStepTracer→StepTracerIEventSink→EventSinkIStatefulEdgeRunner→StatefulEdgeRunnerIDelayedDeserialization→DelayedDeserializationISuperStepRunner→SuperStepRunnable(renamed to avoid collision with the concreteSuperStepRunnerclass)
Fixed
- Harness files (
HarnessAgent,HarnessAgentOptions,ChatClientHarnessExtensions) were placed atlib/src/harness/but their relative imports and the barrel export inagents.dartexpectedlib/src/hosting/harness/. Files moved to the correct location, resolving 73 analyzer errors.
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