Skip to main content

ChatGPT powered agents, argumented with tools

Project description

Agentia: Ergonomic LLM Agent Augmented with Tools

Getting Started

from agentia import Agent
from typing import Annotated

# Define a tool as a python function
def get_weather(location: Annotated[str, "The city name"]):
    """Get the current weather in a given location"""
    return { "temperature": 72 }

# Create an agent
agent = Agent(tools=[get_weather])

# Run the agent with the tool
response = await agent.chat_completion("What is the weather like in boston?")

print(response)

# Output: The current temperature in Boston is 72°F.

Create an Agent from a Config File

  1. Create a config file at ./alice.toml
[agent]
name = "Alice" # This is the only required field
icon = "👩"
instructions = "You are a helpful assistant"
model = "openai/o3-mini"
plugins = ["calc", "clock", "web"]
  1. In your python code:
agent = Agent.load_from_config("./alice.toml")
  1. Alternatively, start a REPL:
uvx agentia repl alice

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

agentia-0.0.6.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

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

agentia-0.0.6-py3-none-any.whl (62.1 kB view details)

Uploaded Python 3

File details

Details for the file agentia-0.0.6.tar.gz.

File metadata

  • Download URL: agentia-0.0.6.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for agentia-0.0.6.tar.gz
Algorithm Hash digest
SHA256 865486e76d13b4ecff2402d5e92ecd96618ea429094364091500e6236b9faeb1
MD5 676cbc07b3c790506897c51b60ef1f85
BLAKE2b-256 4a2247c2c937b36b4e30efabba772704d9257414e5de7dec876ba7620d7a5377

See more details on using hashes here.

File details

Details for the file agentia-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: agentia-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 62.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for agentia-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5b444b03e9034af3a49a38286c38150be7395c316fabf98c53a67d14d9b7946f
MD5 76d83873baf47f3ca5441f6cb1ac7ea7
BLAKE2b-256 61feb6deb900bbd1e44d993da7cae4cb835c37b630baeed1e2100a2baf9a8375

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