Class EventStreamParams

  • All Implemented Interfaces:
    com.anthropic.core.Params

    
    public final class EventStreamParams
     implements Params
                        

    Stream Session Thread Events

    • Constructor Detail

    • Method Detail

      • eventDeltas

         final Optional<List<BetaManagedAgentsDeltaType>> eventDeltas()

        When set, this connection also receives streaming deltas (event_start, event_delta) while an event is being produced, before the event itself arrives. Deltas are best-effort; when the final event is produced it carries the complete content. A model request that ends early (an error or interrupt) produces no final event — its terminal span.model_request_end closes the preview. Accepts one or more event types to preview and may be repeated: agent.message streams content_delta fragments; agent.thinking is start-only — a signal that the agent has begun extended thinking, concluded by the agent.thinking event itself. Only previews of the requested event types are sent.

      • workspaceId

         final Optional<String> workspaceId()

        Optional header to select the Workspace for this request. The value is a Workspace ID (for example, wrkspc_011CZkZaBF1tNoB5wlCeusgy).

        Only needed for credentials that can act on more than one Workspace. A credential that belongs to a specific Workspace may omit it; if sent, it must match that Workspace.

      • _headers

         Headers _headers()

        The full set of headers in the parameters, including both fixed and additional headers.

      • _queryParams

         QueryParams _queryParams()

        The full set of query params in the parameters, including both fixed and additional query params.

      • _spanData

         SpanData _spanData()

        The data for the OpenTelemetry span of a call to the method with these parameters.