@@ -220,9 +220,9 @@ class DeferredToolResults:
220220
221221@dataclass
222222class FunctionTextFormat :
223- """Used to invoke the function with free-form function calling for tool calls.
223+ """Used to invoke the function with freeform function calling for tool calls.
224224
225- This class encapsulates the settings related to free-form function calling
225+ This class encapsulates the settings related to freeform function calling
226226 as well as constraining the function call argument to a specific grammar.
227227 The function must take a single string argument.
228228
@@ -232,15 +232,15 @@ class FunctionTextFormat:
232232 """
233233
234234 syntax : Literal ['lark' , 'regex' ]
235- """The syntax type for the grammar to constrain the free-form function call.
235+ """The syntax type for the grammar to constrain the freeform function call.
236236
237237 For 'lark' the grammar attribute contains the lark grammar that the text must
238238 conform to.
239239 For 'regex' the grammar attribute contains the regex pattern that the text must
240240 conform to.
241241 """
242242 grammar : str
243- """The grammar to constrain the free-form function call.
243+ """The grammar to constrain the freeform function call.
244244
245245 When the syntax is 'lark' this attribute contains the lark grammar that the text must
246246 conform to.
@@ -382,7 +382,7 @@ async def prep_my_tool(
382382 schema_generator: The JSON schema generator class to use. Defaults to `GenerateToolJsonSchema`.
383383 strict: Whether to enforce JSON schema compliance (only affects OpenAI).
384384 See [`ToolDefinition`][pydantic_ai.tools.ToolDefinition] for more info.
385- text_format: Used to invoke the function using free-form function calling (only affects OpenAI).
385+ text_format: Used to invoke the function using freeform function calling (only affects OpenAI).
386386 See [`ToolDefinition`][pydantic_ai.tools.ToolDefinition] for more info.
387387 requires_approval: Whether this tool requires human-in-the-loop approval. Defaults to False.
388388 See the [tools documentation](../deferred-tools.md#human-in-the-loop-tool-approval) for more info.
@@ -526,7 +526,7 @@ class ToolDefinition:
526526 """
527527
528528 text_format : Literal ['text' ] | FunctionTextFormat | None = None
529- """Whether to invoke the function with free-form function calling for tool calls.
529+ """Whether to invoke the function with freeform function calling for tool calls.
530530
531531 Setting this to a format while using a supported model prevents parallel tool calling
532532 in exchange for passing raw text payloads to your custom tool without wrapping the data in JSON.
@@ -557,7 +557,7 @@ def only_takes_string_argument(self) -> bool:
557557 @property
558558 def single_string_argument_name (self ) -> str | None :
559559 # returns the name of the single argument that is a string
560- # used for free-form function calling
560+ # used for freeform function calling
561561 # will return None if there is more or less than one argument,
562562 # or if the argument is not a string
563563 schema = self .parameters_json_schema
0 commit comments