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
- 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"]
- In your python code:
agent = Agent.load_from_config("./alice.toml")
- Alternatively, start a REPL:
uvx agentia repl alice
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(47.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
agentia-0.0.3-py3-none-any.whl
(61.7 kB
view details)
File details
Details for the file agentia-0.0.3.tar.gz.
File metadata
- Download URL: agentia-0.0.3.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c56f252eba6f2dbce4f9aa950108dcc8d3a6c9c80a34c7fe8b6d6d3b9f261a2
|
|
| MD5 |
52f80db6734306b65abdbe701e3db178
|
|
| BLAKE2b-256 |
3ef2d0753663e26c9ff559f8312e1e4f588492dd2625bca181cf4709c40389db
|
File details
Details for the file agentia-0.0.3-py3-none-any.whl.
File metadata
- Download URL: agentia-0.0.3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65d06a3448a010958e5884eacffce33249137c6e7015cbcc4f98809a49b48e5
|
|
| MD5 |
ac5d1ee83129e7f1623496c8d23de404
|
|
| BLAKE2b-256 |
b48db16f2676693308aa0e15025e904aa70e8e82517e98809ad765ead10e5b8f
|