Repository navigation
v0.5.0
What's Changed
-
genandgen_asyncnow supports tool calling in #9 -
Tools can take the form of:
- Openai json schema and function;
- Pydantic
BaseModeland function; - Or just a function (in which case the pydantic schema will be derived based on the function typings and docstrings (adapted from Langchain)
Example of Tools
from simple_ai_agents.models import Tool Tool(tool_model=weather_tool_schema, function=get_current_weather) Tool(tool_model=Weather, function=get_current_weather) Tool(function=get_current_weather)
-
New example on streaming response with fastapi by @timlrx in #8
-
Supports partial model streaming courtesy of instructor by @timlrx in #10
-
Add support for Cerebras json mode
-
Handle groq tool calling format
-
Update readme and dependencies
Full Changelog: v0.4.0...v0.5.0