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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file olla-0.1.1.tar.gz.

File metadata

  • Download URL: olla-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.7 Darwin/23.0.0

File hashes

Hashes for olla-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2e125fbe6e4a6aecc3989b38bd0c8bedffbd88856faa09f421b1f821aa38b3a8
MD5 034ee669529e399968bd4538cc1094a0
BLAKE2b-256 e516035b4a6e764e54e4e47cfc842c36245bf004ae969fb5035661cdf9ee23fb

See more details on using hashes here.

File details

Details for the file olla-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: olla-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.7 Darwin/23.0.0

File hashes

Hashes for olla-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29e582e34edeaa5473aa6f7b861becaee3e17f754457ddaa4c8671027a5e3d86
MD5 ae14ae97a278e29a65adbeb239389837
BLAKE2b-256 ca862ed7f3704bf6a5f2471edbdcf433d4248e43ad2cc711d2770ff15dc6e285

See more details on using hashes here.

Supported by

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