Skip to content

Commit

Permalink
fix: query still needs parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-howt committed Apr 8, 2024
1 parent 3b0b278 commit 56e1f9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ async def _arun(
**kwargs: Any,
) -> str:
"""Use the tool asynchronously."""
tool_input = kwargs.get(
tool_input_str = kwargs.get(
"query",
args[0],
)

query = standard_query_format(tool_input)
query = standard_query_format(ToolInputSchema.parse_raw(tool_input_str))

try:
messages = [
Expand Down

0 comments on commit 56e1f9e

Please sign in to comment.