👋 Hello and welcome to the release notes for Promptulate v1.11.0! We're excited to share some new updates that we believe will enhance your experience with Promptulate.
For detailed information, please visit our official documentation: [Promptulate Documentation](https://undertone0809.github.io/promptulate/#/)
To see the code, report issues, or contribute, check out our GitHub repository: [Promptulate on GitHub](https://github.com/Undertone0809/promptulate)
See the awesome custom Tool usage: https://undertone0809.github.io/promptulate/#/modules/tools/custom_tool_usage?id=custom-tool
Now you can define your custom tools as follows:
python
import promptulate as pne
def web_search(keyword: str) -> str:
"""search by keyword in web.
Args:
keyword: keyword to search
Returns:
str: search result
"""
return "result"
agent = pne.ToolAgent(tools=[web_search])
resp: str = agent.run("What's the weather in NewYork tomorrow?")
What’s Changed
* pref: optimize logger (286) Undertone0809
* pref: optimize calculator (285) Undertone0809
* Revert "fix agent thought bug and update the iot tool prompt" (269) ruanrongman
* fix agent thought bug and update the iot tool prompt (268) ruanrongman
* fix: error in get litellm response (248) Undertone0809
:rocket: Features
* feat: add tool schema (308) Undertone0809
* fix agent thought bug and update the iot tool and the agent prompt (270) ruanrongman
* pref: optimize calculator, mock for llm and tool (278) Undertone0809
* feat: support pydantic v2 (267) Undertone0809
:wrench: Fixes & Refactoring
* fix agent thought bug and update the iot tool and the agent prompt (270) ruanrongman
* optimize import (252) Undertone0809
:package: Build System & CI/CD
* feat: add tool schema (308) Undertone0809
:pencil: Documentation
* feat: add tool schema (308) Undertone0809
* pref: optimize calculator, mock for llm and tool (278) Undertone0809
:arrow_up: Dependencies updates
* feat: add tool schema (308) Undertone0809
* :arrow_up: bump litellm from 1.15.8 to 1.16.12 (302) dependabot
* :arrow_up: bump sqlalchemy from 2.0.23 to 2.0.24 (288) dependabot
* :arrow_up: bump cushy-storage from 1.3.0 to 1.3.3 (290) dependabot
* :arrow_up: bump ruff from 0.1.8 to 0.1.9 (262) dependabot
* :arrow_up: bump frozenlist from 1.4.0 to 1.4.1 (235) dependabot
* :arrow_up: bump httpx from 0.25.2 to 0.26.0 (256) dependabot
* V1.11.0/add template jinja2 (251) Undertone0809
:busts_in_silhouette: List of contributors
Undertone0809, dependabot, dependabot[bot] and ruanrongman