Open Local LLM Agent
Project description
Open Local LLM Agent(Olla)
Build your own AI agent with open LLM.
from olla.agent.react_agent import ReActAgent
from olla.core.llm import OpenAI
from olla.core.function import CurrTime
if __name__ == "__main__":
llm = OpenAI(
base_url="http://localhost:11434/v1",
model="openchat",
api_key="sk-none",
)
agent = ReActAgent(
llm=llm,
tools=[CurrTime()]
)
agent.run("what time is now in Shanghai")
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
olla-0.1.1.tar.gz
(7.9 kB
view hashes)
Built Distribution
olla-0.1.1-py3-none-any.whl
(4.9 kB
view hashes)