Skip to content

Added the Python Client for Anton#3

Open
MinuraPunchihewa wants to merge 6 commits intomainfrom
feature/anton_client
Open

Added the Python Client for Anton#3
MinuraPunchihewa wants to merge 6 commits intomainfrom
feature/anton_client

Conversation

@MinuraPunchihewa
Copy link

@MinuraPunchihewa MinuraPunchihewa commented Feb 26, 2026

This PR adds a client module for Anton. This enables Anton to be called easily via other Python applications (like the Minds API) while maintaining certain session specific parameters such as message history and scratchpad manager.

This also enables custom tools to be defined for Anton. This was mainly done with the intention of passing through a tool that will allow Anton to query data sources in Minds (via MindsDB).

import asyncio

from anton import Anton

anton = Anton()

asyncio.run(anton.chat("Hi"))
# OR
def stream(prompt: str):
  async for event in anton.chat_stream(prompt):
    print(event)

asyncio.run(stream("Hi"))

@ianu82 ianu82 requested a review from torrmal February 26, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant