Interface BetaSystemMessageParam.Content.SystemMessageContentBlock.Visitor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • visitToolAddition

         abstract T visitToolAddition(BetaRequestToolAdditionBlock toolAddition)

        Mid-conversation directive to make a tool available.

        `tool` is a reference to a tool (or MCP toolset) declared in the request's `tools`. Under the `inline-tools-2026-09-15` beta it may instead be a reference to a tool defined earlier in `messages`, or a `tool_definition` object that carries an inline tool definition in `definition` (the same object a `tools` entry holds). An `mcp_toolset` definition also requires the `mcp-client-2026-09-15` beta. The tool is offered to the model from this point in the conversation onward.

      • visitToolRemoval

         abstract T visitToolRemoval(BetaRequestToolRemovalBlock toolRemoval)

        Mid-conversation directive to withdraw a tool.

        `tool` references a tool (or MCP toolset) by name: one declared in the request's `tools` or defined earlier in `messages`. It is no longer offered to the model from this point in the conversation onward.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of SystemMessageContentBlock to a value of type T.

        An instance of SystemMessageContentBlock can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.