Skip to content

v0.5.0

Choose a tag to compare

@timlrx timlrx released this 23 Sep 15:45
· 6 commits to main since this release
68ccd05

What's Changed

  • gen and gen_async now supports tool calling in #9

  • Tools can take the form of:

    • Openai json schema and function;
    • Pydantic BaseModel and 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