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.8.tar.gz
(48.5 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.8-py3-none-any.whl
(63.1 kB
view details)
File details
Details for the file agentia-0.0.8.tar.gz.
File metadata
- Download URL: agentia-0.0.8.tar.gz
- Upload date:
- Size: 48.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
082afec437c12b0e8f5371b21887a07761403c0853a2add354a9899da5f10d97
|
|
| MD5 |
906c50a9067fe4aeb6e897db27f3c8f9
|
|
| BLAKE2b-256 |
7553ba9f89251f2fa513965d4fcb59d1ce384ac87a1eace474ed48844321c481
|
File details
Details for the file agentia-0.0.8-py3-none-any.whl.
File metadata
- Download URL: agentia-0.0.8-py3-none-any.whl
- Upload date:
- Size: 63.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6353c7e2aba5c8ee703b68851551d35936240363ffe039cb7a1a84937b574aa
|
|
| MD5 |
4dde3d27e79e546db77bd036026784ce
|
|
| BLAKE2b-256 |
84b8ed791ba605f84aff0cc7ddb244c7fb66f643f69b2601a0e1342cf9379f74
|