v0.6.0
Released December 2, 2026
v0.6.0 adds Amazon Ergo 1.0 through the Vercel AI Gateway (amazon/ergo-1.0), and it makes provider-defined Gateway tools work. The Gateway receives those tools in the provider shape, runs them, and replays the results in later steps. The tool this release adds is Browserbase Fetch (GatewayBrowserbaseFetch). The release also expands the MCP client (OAuth, HTTP sessions, resources, Apps, and events), exposes Google and Vertex provider tools, and adds the realtime session APIs.
dotnet add package Vercel.AI --version 0.6.0The Mistral LiveKit adapter is a separate package and targets net10.0 only:
dotnet add package Vercel.AI.Mistral.LiveKit --version 0.6.0Vercel.AI still targets net10.0 and netstandard2.0.
The full changelog is on the GitHub release. Compare: v0.5.0…v0.6.0.
Amazon Ergo 1.0 on the AI Gateway
Section titled “Amazon Ergo 1.0 on the AI Gateway”Amazon Ergo 1.0 is an open-weight mixture-of-experts reasoning model (1.1T total parameters, 55B active per token), built for agentic coding and long-running professional work: an agent plans steps, calls tools, and checks its own results. It has a 1M-token context window, supports tool calling, structured outputs, and prompt caching, and always reasons before it answers. It is served through Amazon Bedrock. On the AI Gateway the model id is amazon/ergo-1.0.
String model ids on AiClient continue to go to the Gateway by default. Pass ModelId = "amazon/ergo-1.0" on StreamTextOptions or GenerateTextOptions, or call GatewayProvider.Create().LanguageModel("amazon/ergo-1.0"). The API key is AI_GATEWAY_API_KEY.
The example examples/StreamTextGatewayToolBrowserbaseFetch asks Ergo to fetch this package’s README through the Gateway Browserbase Fetch tool, then write a C# app from the documented API (#2201):
using Vercel.AI;using Vercel.AI.Gateway;using Vercel.AI.Prompt;
var client = new AiClient(GatewayProvider.Create());
var stream = client.StreamTextAsync( new StreamTextOptions { ModelId = "amazon/ergo-1.0", Instructions = Instructions.From( "You can fetch web pages with browserbase_fetch. The package is hosted at https://github.com/hardkoded/vercel-ai-sdk-dotnet. Fetch its README from https://raw.githubusercontent.com/hardkoded/vercel-ai-sdk-dotnet/main/README.md before you write code, and use only the API it documents." ), Prompt = "Write a C# app in .NET that tests the amazon/ergo-1.0 model using the Vercel AI SDK For Dotnet nuget package.", StopWhen = StopWhen.IsStepCount(5), Tools = new[] { GatewayBrowserbaseFetch.Create( new GatewayBrowserbaseFetchConfig { Format = "markdown" } ), }, });
await foreach (var part in stream.Stream()){ switch (part) { case TextDeltaPart delta: Console.Write(delta.Text); break; case ToolCallPart call: Console.WriteLine($"Tool call: {call.ToolCall.ToolName} {call.ToolCall.ArgumentsJson}"); break; case ToolResultPart result: Console.WriteLine("Tool result: " + result.Result.OutputJson); break; case ToolErrorPart error: Console.Error.WriteLine("Tool error: " + error.Result.OutputJson); break; }}Gateway Browserbase Fetch and provider tools
Section titled “Gateway Browserbase Fetch and provider tools”GatewayBrowserbaseFetch.Create(config) declares the AI Gateway’s Browserbase Fetch tool (gateway.browserbase_fetch). The Gateway executes it for any model, including Ergo. It fetches a page and returns the raw body, Markdown, or JSON extracted with a schema (#2201).
var fetch = GatewayBrowserbaseFetch.Create( new GatewayBrowserbaseFetchConfig { Format = "markdown" });GatewayBrowserbaseFetchConfig holds the developer settings:
- AllowRedirects bool? — Follow HTTP redirects (Gateway default
false). - AllowInsecureSsl bool? — Bypass TLS certificate verification (Gateway default
false). - Proxies bool? — Route the request through Browserbase proxies (Gateway default
false). - Format string? —
raw(default),markdown, orjson. - Schema JsonElement? — JSON Schema for the extracted content. Only used when
Formatisjson.
The model fills the input schema: url (required), allow_redirects, allow_insecure_ssl, proxies, format, and schema. A successful result holds id, content (a string, or an object for json), contentType, encoding, headers, and statusCode. A failure holds error, message, and an optional statusCode.
The Gateway language model sends provider-defined tools as { "type": "provider", "id", "name", "args" }. It reads providerExecuted on a tool call and the tool-result parts of the response, and it replays both in later steps, so the local loop does not try to run the call itself. The same change applies to the Gateway tools that were already in the package: GatewayDeepSeekSearch, GatewayDeepSeekFetch, and GatewayTakoSearch.
This release does not add Browserbase Search, Exa Search, Parallel Search, or Perplexity Search.
MCP client
Section titled “MCP client”The MCP client can now do more than list and call tools (#2142, #2140, #2152, #2156, #2162, #2163, #2154).
- stdio lifecycle.
StdioMcpTransport.StartAsync()spawns the child.CloseAsync()kills it.OnCloseruns once when the transport closes or the child exits. A spawn failure is passed toOnErrorand thrown. After a close,StartAsync()can spawn a new child. On Windows, the transport resolves commands and escapes shim arguments. - Streamable HTTP. Unless the protocol is stateless,
HttpMcpTransportkeeps the servermcp-session-id, andStartAsync()opens an inbound GET event stream.McpClientdoes not callStartAsyncorCloseAsync. The constructor takes extra headers andMcpRedirectMode(Errorby default, which rejects a redirect;Followleaves the redirect to theHttpClient). A plain404clears the session.CloseAsyncends the session when the transport was started and the protocol keeps one. The constructor accepts anIOAuthClientProviderasauthProvider. - OAuth. With an
authProvider, a request carries a bearer token when the provider has an access token. A401starts the OAuth flow once and retries when it endsAuthResult.Authorized. Any other result throwsUnauthorizedError.OAuthholdsAuthAsyncand the discovery, authorization, token, and registration helpers. Pass theClientof aGuardedFetchas the transportHttpClient(new HttpMcpTransport(guardedFetch.Client, endpoint)) so discovery does not follow an untrusted authorization-server URL. - Resources, prompts, and completions. After
McpClient.CreateAsync(transport, options), callListResourcesAsync,ReadResourceAsync,ListResourceTemplatesAsync,ListPromptsAsync,GetPromptAsync, andCompleteAsync. Each call throws anMCPClientErrorwhen the server did not advertise that capability.ConnectAsyncremains the shortcut forCreateAsyncfollowed byListToolsAsync. - MCP Apps.
McpAppshelps with interactiveui://resources that a host renders, includingReadMcpAppResourceAsyncand tool metadata. - Events. The event APIs are experimental. Set
McpClientOptions.Eventsto anMcpEventsConfig.McpClient.Eventslists, subscribes, refreshes, and unsubscribes (ListAsync,SubscribeAsync,RefreshAsync,UnsubscribeAsync).McpEventWebhook.Createreceives webhook deliveries. Polling and push-stream delivery are not supported.
using Vercel.AI.Mcp;
var transport = new HttpMcpTransport( httpClient, new Uri("https://mcp.example.com/mcp"), myProvider);var client = await McpClient.CreateAsync(transport);var resources = await client.ListResourcesAsync();These types live in the Vercel.AI.Mcp namespace. myProvider is an IOAuthClientProvider.
Google and Vertex provider tools
Section titled “Google and Vertex provider tools”GoogleTools and GoogleVertexTools (Vercel.AI.Google) now create the provider-defined tools that Google runs (#2135): GoogleSearch, EnterpriseWebSearch, GoogleMaps, UrlContext, FileSearch, CodeExecution, VertexRagStore, and McpServer. Put them in GenerateTextOptions.Tools or StreamTextOptions.Tools. GoogleVertexTools is the Vertex set; the methods delegate to GoogleTools. EnterpriseWebSearch is only available on Vertex AI. McpServer is only available with Interactions(...).
using Vercel.AI.Google;
var tools = new[]{ GoogleVertexTools.GoogleSearch(), GoogleVertexTools.CodeExecution(),};GoogleVertexNode.CreateGoogleVertex(options) authenticates with Application Default Credentials through Google.Apis.Auth, so gcloud auth application-default login and GOOGLE_APPLICATION_CREDENTIALS work (#2139). Set VertexOptions.GoogleAuthOptions (Scopes, KeyFile, ProjectId) to change the lookup. With an API key (or GOOGLE_VERTEX_API_KEY) no token generator is created. GoogleAuthLibrary.CreateAuthTokenGenerator returns the token generator.
Realtime sessions
Section titled “Realtime sessions”v0.6.0 adds the realtime session and browser transport APIs (#2083, #2071, #2093, #2102).
AbstractRealtimeSession is the session you subclass. Call Connect, SendTextMessage, SendAudio, StartAudioCapture, and AddToolOutput. BrowserRealtimeTransport opens a WebSocket for a model that implements IClientRealtimeModel, either with a short-lived client secret (Mode = "client-secret") or through an application relay (Mode = "relay"). BrowserRealtimeLiveWebSocket covers continuous PCM16 Live sessions. A caller without a token must select the relay explicitly.
The browser audio APIs have no .NET counterpart, so the host supplies them in RealtimeSessionOptions.AudioEnvironment. A continuous session caps each outgoing WebSocket frame at 128 KiB (EncodeRealtimeFrame.MaxFrameBytes).
See the Realtime guide for the connect, capture, and close flow.
Also in this release
Section titled “Also in this release”ExperimentalToolCallersonGenerateTextOptions,StreamTextOptions, andAgentOptionsroutes tools through tool callers. Mark a caller withToolCallerUtils.ToolCallerandToolCallerDefinition.CreateLocalorCreateProvider.ToolCallerConfiguration.DirectToolCalllets the model call a tool itself (#2058).ValidateUIMessagesOptionsaddsMetadataTransformandDataTransforms, which run after metadata or data-part schemas match (#2088).UIMessageStreamConverter.ToUIMessageStreamaccepts aReadableStream<TextStreamPart>and releases the source reader lock when conversion completes, fails, or is cancelled (#2090).- Anthropic sends provider-executed tool calls and their results on a later request. An invalid server-tool output throws
TypeValidationException(#2109, #2112). - Alibaba now has a documented language model catalog, including IDs such as
qwen3.7-max,qwen-plus, andqwen3-coder-plus(#2100). - A new Extraction guide and
examples/ExtractGatewayDocumentshow PDF extraction through the Gateway withGatewayProvider.Create().ExtractionModel("scaledown/extract-1")(#2103).
Behavior changes
Section titled “Behavior changes”A trailing empty SSE event from Anthropic is now surfaced as a JSON parse error (#2116).
ReadableStream passes the cancel reason through to cancel callbacks (#2091).
Google and Vertex image models send a base64 image file as given, without decoding it and encoding it again (#2136).
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product