Check the right property for tool calling (#2160)

* Check the right property

* Fix failing tests

* Update cassettes

* Update cassettes again

* Update cassettes again 2

* Update cassettes again 3

* fix other test that fails in ci/cd

* Fix issues pointed out by lorenze
This commit is contained in:
Brandon Hancock (bhancock_ai)
2025-02-20 12:12:52 -05:00
committed by GitHub
parent 14503bc43b
commit e2ce65fc5b
6 changed files with 108 additions and 2913 deletions

View File

@@ -31,11 +31,11 @@ class OutputConverter(BaseModel, ABC):
)
@abstractmethod
def to_pydantic(self, current_attempt=1):
def to_pydantic(self, current_attempt=1) -> BaseModel:
"""Convert text to pydantic."""
pass
@abstractmethod
def to_json(self, current_attempt=1):
def to_json(self, current_attempt=1) -> dict:
"""Convert text to json."""
pass