mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 06:46:18 +00:00
Add tool_calling.py and test_tools.py
This commit is contained in:
+4
-4
@@ -4,7 +4,9 @@ import pytest
|
||||
from pydantic import Field
|
||||
|
||||
import simplemind as sm
|
||||
from simplemind.providers import Anthropic, BaseTool, OpenAI
|
||||
|
||||
from simplemind.providers import Anthropic, OpenAI
|
||||
from simplemind.providers._base_tools import BaseTool
|
||||
|
||||
MODELS = [
|
||||
Anthropic,
|
||||
@@ -22,9 +24,7 @@ def get_weather(
|
||||
],
|
||||
unit: Annotated[
|
||||
Literal["celcius", "fahrenheit"],
|
||||
Field(
|
||||
description="The unit of temperature, either 'celsius' or 'fahrenheit'"
|
||||
),
|
||||
Field(description="The unit of temperature, either 'celsius' or 'fahrenheit'"),
|
||||
] = "celcius",
|
||||
):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user