Skip to main content

Llm function is a decorator that uses llm to assemble reusable workflows from available tools to match input and output models.

Project description

Llm function

llm_function helps you build reusable LLM functions with normal Python signatures.

You define a function with Pydantic input and output models, describe what it should do in the docstring, and provide a set of available tools. At runtime, llm_function uses workflow_auto_assembler to assemble and execute a workflow that satisfies that typed function contract.

The result is an LLM-backed function that can be reused like any other Python function, while still being grounded in explicit tools, schemas, and config.

Tool definition and discovery live in llm_function_tools.

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

llm_function-0.0.1.tar.gz (647.6 kB view details)

Uploaded Source

Built Distribution

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

llm_function-0.0.1-py3-none-any.whl (707.4 kB view details)

Uploaded Python 3

File details

Details for the file llm_function-0.0.1.tar.gz.

File metadata

  • Download URL: llm_function-0.0.1.tar.gz
  • Upload date:
  • Size: 647.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for llm_function-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a340a4f438a42c63ae8480e05730610430ae9cb9b3382ed9cdc633452f2aaa2
MD5 cb6ba8be1d5b5448aa1700d58693c398
BLAKE2b-256 3d29304bf604cd30665d0280216304615b262344fde53759811ab317ba406457

See more details on using hashes here.

File details

Details for the file llm_function-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_function-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 707.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for llm_function-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0620b5f8cde61853ae527fb0470b48dc2bc90f37278cc87cf8342f623575b275
MD5 7fc25690525ededcb8c2b31b9ecfc52a
BLAKE2b-256 066dd2be773da9eb1cf087cea2e4f4f4498e012fb7fa8698cb1c051a58c6f671

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