Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikita95 committed Dec 5, 2024
1 parent 4e122e6 commit 00244b1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/writer/ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ def _register_callable(
self,
callable_to_register: Callable,
name: str,
parameters: Dict[str, Dict[str, str]]
parameters: Dict[str, FunctionToolParameterMeta]
):
"""
Internal helper function to store a provided callable
Expand Down Expand Up @@ -1280,7 +1280,9 @@ def _prepare_tool(
Internal helper function to process a tool instance
into the required format.
"""
def validate_parameters(parameters: Dict[str, Dict[str, str]]) -> bool:
def validate_parameters(
parameters: Dict[str, FunctionToolParameterMeta]
) -> bool:
"""
Validates the `parameters` dictionary to ensure that each key
is a parameter name, and each value is a dictionary containing
Expand Down

0 comments on commit 00244b1

Please sign in to comment.