No project description provided
Project description
Galadriel
Galadriel is a Python framework for building autonomous, economically useful AI Agents.
Quickstart
Note: you should setup local env for this. In terminal
python3 -m venv venv
source venv/bin/activate
And then, install galadriel package.
pip install galadriel
Now, create a new python file and copy the code below to create sample agent.
It uses TestClient which sends 2 messages sequentially to the agent and prints the result of agent execution.
import asyncio
from galadriel import AgentRuntime, CodeAgent
from galadriel.clients import SimpleMessageClient
from galadriel.core_agent import LiteLLMModel, DuckDuckGoSearchTool
model = LiteLLMModel(model_id="gpt-4o", api_key="<ADD YOUR OPENAI KEY HERE>")
agent = CodeAgent(
model=model,
tools=[DuckDuckGoSearchTool()]
)
client = SimpleMessageClient("Explain the concept of blockchain")
runtime = AgentRuntime(
agent=agent,
inputs=[client],
outputs=[client],
)
asyncio.run(runtime.run())
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
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
File details
Details for the file galadriel-0.0.6.tar.gz.
File metadata
- Download URL: galadriel-0.0.6.tar.gz
- Upload date:
- Size: 966.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e767be2b4a22f45a12061391bdee722c6cc584e7db4a79b2c279f373b8c56f7e
|
|
| MD5 |
4dfa0c91a4b7e84e6e402e8d7821e7bb
|
|
| BLAKE2b-256 |
9f7a90f99a86ba2e89d19d07259bb9b8bf0b4bcf876a04cfa0ff642c9bf1f77a
|
File details
Details for the file galadriel-0.0.6-py3-none-any.whl.
File metadata
- Download URL: galadriel-0.0.6-py3-none-any.whl
- Upload date:
- Size: 990.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f2d7ba1374d99b939e672cc112f73d45b25d2ec0aec333c6129e9d5ef6158d8
|
|
| MD5 |
261ff4f784b15eea5d2aadabbf8d26fa
|
|
| BLAKE2b-256 |
b907260cabb9b39b9280908b17d712ebd228c389d238a6793ea91b674317656b
|