Skip to content

v0.2.7

Choose a tag to compare

@zhixiangxue zhixiangxue released this 29 Jan 06:20
· 68 commits to main since this release

v0.2.7

✨ Features

  • Added human-in-the-loop tool approval hook tool_approval_handler on Conversation,
    enabling manual review/approval of each tool call before execution.
  • Implemented a minimal WebSocket-based browser demo
    (examples/tool_approval_web_demo.py) that shows how to:
    • Send user messages from a web page
    • Receive tool approval requests from the server
    • Let users approve/deny tool calls in the browser, and feed the decision back
  • Improved the tool rejection behavior so that, when a tool call is denied,
    the model receives a strong natural-language signal to stop using tools and
    answer directly, reducing repeated tool-call loops.