MyGit

0.3.18

cpacker/MemGPT

版本发布时间: 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

New Contributors

Full Changelog: https://github.com/cpacker/MemGPT/compare/0.3.17...0.3.18

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-06-27发行的版本