0.3.18
版本发布时间: 2024-06-27 11:54:38
cpacker/MemGPT最新发布版本:0.4.0(2024-09-11 12:41:54)
This release introduces tool creation from inside Python scripts, returning usage statistics, and many bug fixes.
🔧 Tool creation in the Python Client
We added support for directly creating tools in Python:
def print_tool(message: str):
"""
Args:
message (str): The message to print.
Returns:
str: The message that was printed.
"""
print(message)
return message
tool = client.create_tool(print_tool, tags=["extras"])
agent_state = client.create_agent(tools=[tool.name]))
📊 Usage Statistics
Sending a message to an agent now also returns usage statistics for computing cost metrics:
class MemGPTUsageStatistics(BaseModel):
completion_tokens: int
prompt_tokens: int
total_tokens: int
step_count: int
What's Changed
- feat: Qdrant storage connector by @Anush008 in https://github.com/cpacker/MemGPT/pull/1023
- fix: remove server locking on agents by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1442
- fix: various fixes to python client and add tutorial notebooks by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1377
- feat: cursor pagination of get_all_users in /admin/users route by @ajanitshimanga in https://github.com/cpacker/MemGPT/pull/1441
- fix: allow concurrent processing for
async def send_message
function by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1445 - fix: update
rdme-openapi.yml
to correct Python + poetry version by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1446 - feat: Migrating CLI to run on MemGPT Client for
memgpt [list/add/delete]
(#1428) by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1449 - fix: update
Dockerfile
to Python 3.12 by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1456 - fix: debug logs in server (#1452) by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1457
- feat: add tools from the Python client by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1463
- fix: simple_summary_wrapper function_call KeyError by @djkazic in https://github.com/cpacker/MemGPT/pull/1265
- fix: add
ensure_ascii
to missingjson.dumps
calls by @cpacker in https://github.com/cpacker/MemGPT/pull/1466 - feat: add more tool calling support to
LocalClient
by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1465 - fix: fix ugly dev tool print in cli by @cpacker in https://github.com/cpacker/MemGPT/pull/1469
- fix: patch
/pop
,/retry
, and/rethink
by @cpacker in https://github.com/cpacker/MemGPT/pull/1471 - fix: check tool call type by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1451
- fix: drop print from #1465 by @cpacker in https://github.com/cpacker/MemGPT/pull/1472
- feat: dev portal fixes for server changes by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1474
- fix: more server patches for dev portal by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1475
- feat: add token streaming to the MemGPT API by @cpacker in https://github.com/cpacker/MemGPT/pull/1280
- feat: include usage statistics in message response by @sarahwooders in https://github.com/cpacker/MemGPT/pull/1482
New Contributors
- @Anush008 made their first contribution in https://github.com/cpacker/MemGPT/pull/1023
- @ajanitshimanga made their first contribution in https://github.com/cpacker/MemGPT/pull/1441
- @djkazic made their first contribution in https://github.com/cpacker/MemGPT/pull/1265
Full Changelog: https://github.com/cpacker/MemGPT/compare/0.3.17...0.3.18