toolChoice property

  1. @TagNumber.new(7)
ToolChoiceMode get toolChoice

OpenAI-style tool_choice override surfaced through the high-level run-loop / session APIs. The same fields exist on ToolCallingOptions (fields 13/14); we re-publish them here so the canonical request envelope can carry the policy without forcing callers to pass an inline ToolCallingOptions. commons honors these on every format/validate primitive via build_options_snapshot.

Implementation

@$pb.TagNumber(7)
ToolChoiceMode get toolChoice => $_getN(6);
  1. @TagNumber.new(7)
set toolChoice (ToolChoiceMode value)

Implementation

@$pb.TagNumber(7)
set toolChoice(ToolChoiceMode value) => $_setField(7, value);