container method

AnthropicBuilder container(
  1. String containerId
)

Sets the container ID for workbench usage

When using Anthropic Workbench or containerized environments, this parameter specifies the container identifier for the request.

Example:

final provider = await ai()
    .anthropic((anthropic) => anthropic
        .container('workbench-container-123'))
    .apiKey(apiKey)
    .build();

Implementation

AnthropicBuilder container(String containerId) {
  _baseBuilder.extension('container', containerId);
  return this;
}