Skip to main content

PandaAGI SDK

Project description

PandaAGI SDK

A Python SDK for building and interacting with General AI Agents.

Installation

pip install panda-agi

Or with uv:

uv add panda-agi

Quick Start

import asyncio
from panda_agi import Agent
from panda_agi.envs import LocalEnv

async def main():
    # Create a custom environment for the agent
    agent_env = LocalEnv("./my_agent_workspace")
    
    # Create the agent
    agent = Agent(environment=agent_env)
    
    # Run the agent with a prompt
    async for event in agent.run("Tell me a joke about pandas"):
        print(f"[{event.timestamp}] {event.type}: {event.data}")
    
    # Disconnect when done
    await agent.disconnect()

if __name__ == "__main__":
    asyncio.run(main())

Features

  • Simple, intuitive API for interacting with PandaAGI agents
  • Support for local and Docker environments
  • Asynchronous event-based communication
  • Pydantic models for type safety

Documentation

For complete documentation, visit our documentation site.

Development

Prerequisites

  • Python 3.8+
  • uv

Setup

  1. Clone the repository
  2. Install dependencies:
uv pip install -e ".[dev]"

Testing

Run tests with pytest:

uv run pytest

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

panda_agi-0.1.0.tar.gz (663.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

panda_agi-0.1.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file panda_agi-0.1.0.tar.gz.

File metadata

  • Download URL: panda_agi-0.1.0.tar.gz
  • Upload date:
  • Size: 663.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for panda_agi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c61fee8fd2f5d43eb4c982f6927306ff1849e3e02efc93e866f756acb53a7b1c
MD5 870983f3e4ef99d2289382aaab79ccc6
BLAKE2b-256 58f672916ab8c648dae0792f3a8819b283a9cb4dc491b5fc54f30e5c2cc59501

See more details on using hashes here.

File details

Details for the file panda_agi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: panda_agi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 39.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for panda_agi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e657a2c35846c5265bf42080449d46847214723e3a65fa9d1b139d1ca6d47607
MD5 9ced8719d66fc9ccdca2fa3ae0232871
BLAKE2b-256 a26585441dbad48293d848dd67fb4f9ab06e06d7e0a44835508397bca4f1a6bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page