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.4.tar.gz (47.3 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.4-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentia-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5750d3395a209e205feb6d7f730e91ed6b8cb7c51722d1f7d1b0166d130961bc
MD5 a8ae23416fec98b34cbea969d06202de
BLAKE2b-256 35c5747f8df5e3e607671fe176cd0aac2bfa6993cf1ae6ceed1a8873dc7736c4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agentia-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7da6b956e5b7e922b6965f02bb127bd240a2e43a8b7f58e770377297520cb3df
MD5 7bf4f0009047a7a4250ed273c692fc61
BLAKE2b-256 5e17defe5f18e5d255ed6a10eb2c9f5cbe7c537bd3410a74b9df3b24f423c3f9

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