Packages Published
TypeScript (npm) - published at 22:38:33 UTC
| Package | Version | Install |
|---|---|---|
| @ag-ui/mastra | 2.1.0 | npm install @ag-ui/mastra@2.1.0
|
@ag-ui/mastra@2.1.0
- Added
registerCopilotKitentry at@ag-ui/mastra/copilotkit-2for CopilotKit 2.x, importing the runtime from@copilotkit/runtimeinstead of the removed@copilotkit/runtime/v2. - Both CopilotKit entries share one route implementation, so routes behave identically.
- Optional peer dependency now accepts
^1.76.0or 2.x. - Adapter version is now declared in capabilities identity.
- Added per-run guidance and capability discovery. In-process agents on supported Mastra versions enable run guidance by default. Run guidance setup
Breaking changes
- If a custom tool or prompt callback on an in-process agent reads
OpenBot standing roleorOpenBot granted tools guidancefromrequestContext.get("ag-ui").context, setrunGuidance: falseto keep those entries available to that callback. When guidance is enabled, the adapter handles the two reserved entries at the model boundary. Ordinary context still reaches callbacks. - The adapter creates a fresh
RequestContextper run with either setting and copies host-provided values into it. If your code relied on the adapter writing run context into the original object, read it from theRequestContextpassed to the callback instead.
Python (PyPI) - published at 22:38:34 UTC
| Package | Version | Install |
|---|---|---|
| ag-ui-langgraph | 0.1.0 | pip install ag-ui-langgraph==0.1.0
|
ag-ui-langgraph@0.1.0
- The packaged and Dojo FastAPI chat factories enable per-run guidance by default. Existing
LangGraphAgentendpoints retain their current prompt handling. To enable run guidance on an existing LangChain chat graph, rebuild it withRunGuidanceMiddlewareand serve it through an adapter withRunGuidanceAgentMixin. See Run guidance for existing graphs. - Guidance can be opted out of, and snapshot echoes are scrubbed.
- Stale guidance is scrubbed from state snapshots.
- Preserves legacy message order and default checkpointing.
- Documentation added for run guidance, keyless listeners, and cross-host encryption.
- Run guidance behavior and state snapshot handling changed; verify guidance opt-out and snapshot contents after upgrade.