Skip to content

Commit d024052

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

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
@@ -32,10 +32,8 @@ def __call__(
3232
3333
:param parameters: Function parameters specification. Can be one of:
3434
- JSON Schema dict: A dictionary containing a valid JSON schema that describes the function parameters, their types, descriptions, and validation rules.
35-
- Pydantic BaseModel class: A class inheriting from pydantic.BaseModel.
36-
The JSON schema will be automatically generated from the model definition.
37-
- Pydantic dataclass: A dataclass decorated with @pydantic.dataclasses.dataclass.
38-
The JSON schema will be automatically generated from the dataclass definition.
35+
- Pydantic BaseModel class: A class inheriting from pydantic.BaseModel. The JSON schema will be automatically generated from the model definition.
36+
- Pydantic dataclass: A dataclass decorated with @pydantic.dataclasses.dataclass. The JSON schema will be automatically generated from the dataclass definition.
3937
4038
:param name: Optional function name. If not provided:
4139
- For JSON Schema dict: must be provided explicitly or error will be raised.

0 commit comments

Comments
 (0)