Catalog PyPI
PACKAGE EXPLORERView in registry

agentfleet

PyPI

A package for managing AI agents and chatrooms

Versions collected1
Direct dependencies6From release 0.1.4
Last observed20 Oct, 21:55 UTC

README

Version 0.1.4 documentation

AgentFleet

A Python package for managing AI agents and chatrooms that work with LLM-based capabilities.

Installation

pip install agentfleet

Usage

from agentfleet import Agent, Chatroom, create_chatroom

# Example: Create an agent
from langchain_openai import ChatOpenAI
llm = ChatOpenAI()
agent = Agent(name="Assistant", llm=llm, sys_prompt="You are a helpful assistant")

# Example: Set up a chatroom
chatroom = Chatroom(llm=llm, agents=[agent], current_agent=agent)

Using Custom Tools

from agentfleet import create_chatroom
from langchain_core.tools import tool

# Define your custom tool functions
@tool
def lookup_data(query: str) -> str:
    """Look up data from a database."""
    # Implementation...
    return f"Data for {query}"
@tool
def process_request(request_id: str) -> str:
    """Process a request with the given ID."""
    # Implementation...
    return f"Processed request {request_id}"

# Create a dictionary mapping tool names to functions
tool_dict = {
    'lookup_data': lookup_data,
    'process_request': process_request
}

# Create a chatroom with tool dictionary
chatroom_config = {
    "states": [...],
    "agents": [
        {
            "name": "support_agent",
            "sys_prompt": "You are a support agent...",
            "util_tools": ["lookup_data", "process_request"],
            "transfer_tools": []
        }
    ],
    "initial_agent": "support_agent"
}

chatroom = create_chatroom(chatroom_config, llm, tool_dict=tool_dict)

Features

  • Create AI agents with different capabilities
  • Build chatrooms with multiple specialized agents
  • Transfer conversation control between agents
  • Maintain conversation state across interactions
  • Pass custom tools to agents via tool dictionary

License

MIT License

Copyright (c) 2025 Wei Zhou

Contributing

Individual Contributor: Wei Zhou

We welcome contributions! Please review our contribution guidelines for details on our code of conduct, and the process for submitting pull requests.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.421 Apr 20256

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:55 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b0eb3253539140e1b90e656752819b02f713dbbfeef0fd49b5c873b2d9344dbe