Skip to content
magic-python-toolboxPublic

About

Language Model Utils

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

58 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mxlm: Language Model Utils

▮ Features

  • chat_api: A simple object-oriented wrapper for the OpenAI chat API.
    • Supports caching chat requests to avoid starting over in case of errors.
    • Supports api_protocols "openai_responses" | "anthropic_messages" | "gemini_generate_content", and trajectory rollout by return_traj=True.
  • agent_session: AgentSession(chat_api, trajectory) runs the agentic loop over a pure-data trajectory with MCP tools (HTTP and stdio), approval and external tool results.

▮ Usage

pip install mxlm

The __main__ section at the bottom of the source code provides usage instructions and example code.

About

Language Model Utils

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages