Skip to main content

LangFn (Python)

Comprehensive AI Development SDK for LLM-based workflows.

Features

  • Model Abstraction: Unified interface for OpenAI, Anthropic, Ollama, and more.
  • Orchestration: Sequential, Parallel, and Map-Reduce chains.
  • Graph Workflows: Stateful workflows with StateGraph.
  • Agents: Functional ToolAgent and ReActAgent.
  • Structured Output: Type-safe output parsing with Pydantic.
  • RAG: Embeddings and Vector Store support.
  • Observability: Built-in tracing with watchfn integration.

Usage

from langfn import LangFn
from langfn.models.openai import OpenAIChatModel

lang = LangFn(
    model=OpenAIChatModel(api_key="your-api-key")
)

response = await lang.complete("Hello world")
print(response.content)

Documentation

See the main documentation for more details.

Metadata

Release files for langfn 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langfn 0.0.1
File Size Uploaded Provenance Actions
langfn-0.0.1.tar.gz 28.8 kB Without provenance Details for langfn-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langfn 0.0.1
File Interpreter ABI Platform Actions
langfn-0.0.1-py3-none-any.whl Python 3 none any Details for langfn-0.0.1-py3-none-any.whl

Total release size: 74.6 kB

Release files / langfn-0.0.1.tar.gz

Download URL langfn-0.0.1.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d07db20d319cd99702fa2d356cfee38f6c40f2580961d3aad4df5877d80062b7
BLAKE2b-256 checksum
How to use checksums
83dc9a3d740fdbde987fe042d16ddb4ee5e5b1d42ce824928d5d4310a585d72d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / langfn-0.0.1-py3-none-any.whl

Download URL langfn-0.0.1-py3-none-any.whl
Size 45.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a079d1db7844508f76fdd6bcc93ff0abd4f9c7876746c3f1c24a1325e2b359c6
BLAKE2b-256 checksum
How to use checksums
8ca8c0b513a98b3fb8e243b2222a307e2163f607b2e6a806b248a5ef517c04e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for langfn 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page