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.yml
name: Alice
icon: 👩
instructions: You are a helpful assistant
tools:
clock:
calculator:
# ... other tools
- In your python code:
agent = Agent.load_from_config("./alice.yml")
- Alternatively, start a REPL:
pipx install agentia
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.2.tar.gz
(35.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.2-py3-none-any.whl
(45.7 kB
view details)
File details
Details for the file agentia-0.0.2.tar.gz.
File metadata
- Download URL: agentia-0.0.2.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d2f129d5e1a42ba0789226d9a9f1883eb98390fbfe51511c2a2009f7e436a92
|
|
| MD5 |
d80047d8786bfef582cdf899bb031b49
|
|
| BLAKE2b-256 |
99e61caf47805f2fbd025fe476823a324d8c964148ae22bd889395908b1423f8
|
File details
Details for the file agentia-0.0.2-py3-none-any.whl.
File metadata
- Download URL: agentia-0.0.2-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
963526ce7c51d7d01b67589fbdf54df79ad913bbf75b610fa1b51eb599025dc3
|
|
| MD5 |
1b6e058da97ad9e50dc0c9858f70ceca
|
|
| BLAKE2b-256 |
dbfd6973f59bf3c550670bce2b79ebe16fd0fae7ff132bcdfb981a8b04c6daa3
|