Forge documentation
Library referencePython

forge.generate

Python generate package; imports are explicit from this package.

Python generate package; imports are explicit from this package.

Package contract

FieldValue
Languagepython
Source version0.1.0
Manifestforge-py/pyproject.toml
Source files4
EvidenceSource reference; registry publication and runtime conformance are separate checks

Import boundary

import forge.generate

Use a source checkout or your verified private registry. Manifest coordinates identify the package; they do not establish that a public registry release exists.

Source reference

Download package reference JSON. Each original source file and generated declaration artifact has its own SHA-256 digest. Function bodies and constant values are omitted from downloads. These are source declaration inventories, not compiler-resolved rustdoc, TypeDoc, DocC, or Dokka output. Private modules can contain public declarations that are not reachable through the package boundary; consult the entry point before importing.

object.py

Read declaration text · 2 declaration entries

async def generate_object(model: LanguageModel, messages: list[ModelMessage], schema: JsonSchema, *, options: GenerateOptions | None=None, system: str | None=None) -> tuple[Any, GenerateResult]

async def stream_object(model: LanguageModel, messages: list[ModelMessage], schema: JsonSchema, *, options: GenerateOptions | None=None, system: str | None=None) -> AsyncGenerator[str, None]

stream.py

Read declaration text · 1 declaration entries

async def stream_text(model: LanguageModel, messages: list[ModelMessage], *, tools: list[ToolDefinition] | None=None, options: GenerateOptions | None=None, system: str | None=None) -> AsyncGenerator[StreamChunk, None]

text.py

Read declaration text · 1 declaration entries

async def generate_text(model: LanguageModel, messages: list[ModelMessage], *, tools: list[ToolDefinition] | None=None, options: GenerateOptions | None=None, system: str | None=None) -> GenerateResult

Continue

On this page