Skip to content

Commit 4fbaf24

Browse files
committed
Update function.py
1 parent 0f4a940 commit 4fbaf24

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/yandex_cloud_ml_sdk/_tools/function.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def __call__(
3131
Create a function tool with given parameters.
3232
3333
:param parameters: Function parameters specification. Can be one of:
34-
- JSON Schema dict: A dictionary containing a valid JSON schema that describes
35-
the function parameters, their types, descriptions, and validation rules.
34+
- JSON Schema dict: A dictionary containing a valid JSON schema that describes the function parameters, their types, descriptions, and validation rules.
3635
- Pydantic BaseModel class: A class inheriting from pydantic.BaseModel.
3736
The JSON schema will be automatically generated from the model definition.
3837
- Pydantic dataclass: A dataclass decorated with @pydantic.dataclasses.dataclass.
@@ -46,8 +45,7 @@ def __call__(
4645
- For JSON Schema dict: taken from the 'description' field in the schema if present.
4746
- For Pydantic models: automatically inferred from the class docstring if present.
4847
49-
:param strict: Whether to enforce strict parameter validation. When True, the function
50-
call will strictly validate that only the defined parameters are provided.
48+
:param strict: Whether to enforce strict parameter validation. When True, the function call will strictly validate that only the defined parameters are provided.
5149
"""
5250
schema = schema_from_parameters(parameters)
5351
description_ = (

0 commit comments

Comments
 (0)