Skip to content

AnthropicContainer

Namespace: Vercel.AI.Anthropic

public static class AnthropicContainer

Copies the latest Anthropic container id into the next call’s provider options.

Inheritance: object

View source

ForwardFromLastStep(IReadOnlyList<StepResult>)

Section titled “ForwardFromLastStep(IReadOnlyList<StepResult>)”
public static PrepareStepUpdate? ForwardFromLastStep(IReadOnlyList<StepResult> steps)

Searches <code class=“paramref”>steps</code> from the end and returns a prepareStep update whose provider options set anthropic.container.id. Returns null when no step has a container id. Maps to forwardAnthropicContainerIdFromLastStep.

Parameters

Name Type Description
steps IReadOnlyList<StepResult>

Returns: PrepareStepUpdate

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product