Forge (🔥)
A minimal-core, zero-magic, native async/streaming framework for LLM tools & agents.
Forge is built as a lightweight, transparent alternative to LangChain. Instead of deep nested wrappers, magic execution chains, and implicit retries, Forge provides a flat execution model: agent -> tool call -> result.
⚡ Key Features
- Flat Execution Model: Explicit, readable loops. Debugging is simple because there are no hidden layers.
- Typed Tool Schemas: Use Python function signatures + Pydantic for automated, clean JSON schema generation.
- Native Async & Streaming: Built from the ground up on async/await for fast, non-blocking execution.
- Built-in Local Tracing: Full visibility into exact request/response payloads without relying on external paid services.
- Zero Bloat: Lightweight dependencies. Optional provider packages (e.g.
anthropic).
🚀 Quickstart
import asyncio
from forge import Agent, tool, AnthropicProvider
@tool(description="Calculate the result of a mathematical expression")
def calculate(expression: str) -> str:
return str(eval(expression))
async def main():
provider = AnthropicProvider(model="claude-3-5-sonnet-20241022")
agent = Agent(
provider=provider,
tools=[calculate],
system_prompt="You are a helpful assistant.",
verbose=True,
)
history = await agent.run("What is 128 * 42?")
print("Answer:", history[-1].content)
if __name__ == "__main__":
asyncio.run(main())
🛠️ Testing & Development
Run unit tests via pytest:
pytest
Metadata
Release files for forge-llm-core 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forge_llm_core-0.1.1.tar.gz | 11.0 kB | With provenance | Details for forge_llm_core-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forge_llm_core-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for forge_llm_core-0.1.1-py3-none-any.whl |
Total release size: 24.8 kB
Release files / forge_llm_core-0.1.1.tar.gz
| Download URL | forge_llm_core-0.1.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d0d265fdead44a706073fd3fc650e10d7cdb8202f29c1737b0e75e4aff44068
|
|
BLAKE2b-256 checksum How to use checksums |
bc1f102a39826f89e325d45cbabda7369358ee48b94212b7d6ef568da77c9df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / forge_llm_core-0.1.1-py3-none-any.whl
| Download URL | forge_llm_core-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
026c04e8b7022b84931d062f8353f94a93d256976f8eab7bc1733e0f47b27d3f
|
|
BLAKE2b-256 checksum How to use checksums |
2a239ead7446e06339785724b105497b8c283bfc2c5887b4a70a570d7e81c5ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logSecurity for forge-llm-core 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for forge_llm_core-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logA 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.