Skip to main content

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


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)

Uploaded Source

Built Distribution

olla-0.1.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page