Documentation
¶
Overview ¶
Package langchain bridges an external "chain" — any streaming text generator, such as a LangChain-style runnable or a custom agent — into a jargo pipeline. The Processor takes the latest user message from the LLM context, invokes the chain, and streams its output downstream as an LLM response, so a chain can stand in for a jargo LLM service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
Chain is a streaming text generator. It receives the latest user input and streams the response token by token to emit until the response is complete. It is the integration point for an external framework: wrap a LangChain runnable, an HTTP agent, or any custom generator. A returned error is reported upstream as a pipeline error.
type Processor ¶
Processor runs a Chain in place of an LLM service. On each LLM context frame it extracts the latest user message, invokes the chain, and brackets the streamed tokens with the LLM response start/end frames so the rest of the pipeline — assistant aggregation, TTS — treats it exactly like an LLM.