Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: Check tool parameters generated by model #849

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TLK-2091 check tool parameters generated by model
  • Loading branch information
EugeneLightsOn committed Nov 19, 2024
commit 3f21d77704ed046239ad06c2319dada0afb19dc5
6 changes: 2 additions & 4 deletions src/backend/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,11 @@ def _post_init_check(self):

@classmethod
@abstractmethod
def is_available(cls) -> bool:
...
def is_available(cls) -> bool: ...

@classmethod
@abstractmethod
def get_tool_definition(cls) -> ToolDefinition:
...
def get_tool_definition(cls) -> ToolDefinition: ...

@classmethod
def generate_error_message(cls) -> str | None:
Expand Down