sdk

module
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT

Directories

Path Synopsis
Package agent is the application-layer surface for FlowCraft agents.
Package agent is the application-layer surface for FlowCraft agents.
agenttest
Package agenttest provides reusable contract-test machinery for the interfaces declared in sdk/agent — agent.Decider and agent.Observer today, more if the agent package grows.
Package agenttest provides reusable contract-test machinery for the interfaces declared in sdk/agent — agent.Decider and agent.Observer today, more if the agent package grows.
Package engine defines the foundational primitives shared by every local execution engine in FlowCraft (e.g.
Package engine defines the foundational primitives shared by every local execution engine in FlowCraft (e.g.
depname
Package depname enumerates the conventional string identifiers engines use when declaring [engine.Capabilities.RequiredDepNames] and when looking values up in [engine.Dependencies].
Package depname enumerates the conventional string identifiers engines use when declaring [engine.Capabilities.RequiredDepNames] and when looking values up in [engine.Dependencies].
enginetest
Package enginetest provides reusable contract-test machinery for the interfaces declared in sdk/engine — engine.Engine and engine.Host today, more if the engine package grows.
Package enginetest provides reusable contract-test machinery for the interfaces declared in sdk/engine — engine.Engine and engine.Host today, more if the engine package grows.
Package errdefs provides behavior-based error classification.
Package errdefs provides behavior-based error classification.
Package event provides a subject-routed publish/subscribe bus for Envelopes, plus an in-memory implementation suitable for single-process fan-out.
Package event provides a subject-routed publish/subscribe bus for Envelopes, plus an in-memory implementation suitable for single-process fan-out.
Package graph implements the core graph engine for FlowCraft.
Package graph implements the core graph engine for FlowCraft.
node
Package node hosts the runtime-side primitives shared by every concrete graph node implementation: the per-type Builder registry (Factory) and the port declarations consumed by jsnode.
Package node hosts the runtime-side primitives shared by every concrete graph node implementation: the per-type Builder registry (Factory) and the port declarations consumed by jsnode.
node/knowledgenode
Package knowledgenode implements the "knowledge" graph node and exposes a Register helper for binding it into a node.Factory.
Package knowledgenode implements the "knowledge" graph node and exposes a Register helper for binding it into a node.Factory.
node/llmnode
Package llmnode implements the Go-native "llm" graph node and exposes a Register helper for binding it into a node.Factory.
Package llmnode implements the Go-native "llm" graph node and exposes a Register helper for binding it into a node.Factory.
node/scripts
Package scripts embeds all built-in JS node scripts via embed.FS.
Package scripts embeds all built-in JS node scripts via embed.FS.
runner
Package runner is the assembly + lifecycle layer on top of graph/executor.
Package runner is the assembly + lifecycle layer on top of graph/executor.
runner/internal/executor
Package executor provides the graph execution engine.
Package executor provides the graph execution engine.
variable
Package variable provides a typed variable system for the graph engine.
Package variable provides a typed variable system for the graph engine.
Package history manages conversation transcripts: append messages, load them back fitted to a model's context window, and (optionally) compact older turns into hierarchical summaries to keep that window finite.
Package history manages conversation transcripts: append messages, load them back fitted to a model's context window, and (optionally) compact older turns into hierarchical summaries to keep that window finite.
Package knowledge implements the layered knowledge base: document storage, chunking, tokenization, and BM25 / vector / hybrid retrieval over three context layers (L0 abstract, L1 overview, L2 chunk detail).
Package knowledge implements the layered knowledge base: document storage, chunking, tokenization, and BM25 / vector / hybrid retrieval over three context layers (L0 abstract, L1 overview, L2 chunk detail).
backend/fs
Package fs implements knowledge.DocumentRepo, knowledge.ChunkRepo and knowledge.LayerRepo on top of any workspace.Workspace.
Package fs implements knowledge.DocumentRepo, knowledge.ChunkRepo and knowledge.LayerRepo on top of any workspace.Workspace.
backend/retrieval
Package retrieval implements knowledge.ChunkRepo and knowledge.LayerRepo on top of any retrieval.Index.
Package retrieval implements knowledge.ChunkRepo and knowledge.LayerRepo on top of any retrieval.Index.
factory
Package factory wires the canonical knowledge.Service stacks.
Package factory wires the canonical knowledge.Service stacks.
Package llm is FlowCraft's provider-agnostic LLM facade.
Package llm is FlowCraft's provider-agnostic LLM facade.
Package model defines the shared data types used across the SDK: multi-modal messages, tool calling protocol, and token usage tracking.
Package model defines the shared data types used across the SDK: multi-modal messages, tool calling protocol, and token usage tracking.
Package recall implements long-term agent memory on top of the unified retrieval layer.
Package recall implements long-term agent memory on top of the unified retrieval layer.
Package retrieval defines the unified indexing and retrieval API.
Package retrieval defines the unified indexing and retrieval API.
contract
Package contract provides a backend-agnostic test suite that any retrieval.Index implementation MUST pass.
Package contract provides a backend-agnostic test suite that any retrieval.Index implementation MUST pass.
journal
Package journal provides an optional append-only audit log over retrieval.Index.
Package journal provides an optional append-only audit log over retrieval.Index.
memory
Package memory provides MemoryIndex, the zero-dependency in-process retrieval.Index implementation.
Package memory provides MemoryIndex, the zero-dependency in-process retrieval.Index implementation.
pipeline
Package pipeline composes pluggable retrieval Stages over a retrieval.Index .
Package pipeline composes pluggable retrieval Stages over a retrieval.Index .
scoring
Package scoring exposes the small kernel of pure functions that retrieval backends and fusion stages share — vector similarity and rank-fusion algorithms — so they can be reused without reaching into a backend's package-private guts or constructing a pipeline stage just to invoke the algorithm.
Package scoring exposes the small kernel of pure functions that retrieval backends and fusion stages share — vector similarity and rank-fusion algorithms — so they can be reused without reaching into a backend's package-private guts or constructing a pipeline stage just to invoke the algorithm.
Package script defines a language-agnostic script execution interface.
Package script defines a language-agnostic script execution interface.
bindings
Package bindings assembles host capabilities into a script.Env for any script.Runtime implementation (jsrt, luart, etc.).
Package bindings assembles host capabilities into a script.Env for any script.Runtime implementation (jsrt, luart, etc.).
jsrt
Package jsrt provides a goja-based JavaScript implementation of script.Runtime.
Package jsrt provides a goja-based JavaScript implementation of script.Runtime.
luart
Package luart provides a pure-Go Lua 5.1 implementation of script.Runtime using github.com/yuin/gopher-lua (no CGO).
Package luart provides a pure-Go Lua 5.1 implementation of script.Runtime using github.com/yuin/gopher-lua (no CGO).
Package telemetry provides OpenTelemetry initialization and global accessor functions for traces, metrics, and logs.
Package telemetry provides OpenTelemetry initialization and global accessor functions for traces, metrics, and logs.
Package textsearch provides lightweight BM25 text search primitives: tokenizers (ASCII + CJK), Porter stemming, corpus statistics, and scoring.
Package textsearch provides lightweight BM25 text search primitives: tokenizers (ASCII + CJK), Porter stemming, corpus statistics, and scoring.
Package tool provides the tool system for LLM function-calling: Tool interface, Registry, concurrent execution, and schema building.
Package tool provides the tool system for LLM function-calling: Tool interface, Registry, concurrent execution, and schema building.
builtin/askuser
Package askuser exposes the built-in `ask_user` LLM tool — a human-in-the-loop bridge that lets the model explicitly hand a question back to the operator via engine.Host.AskUser.
Package askuser exposes the built-in `ask_user` LLM tool — a human-in-the-loop bridge that lets the model explicitly hand a question back to the operator via engine.Host.AskUser.
tooltest
Package tooltest provides a generic contract test suite for tool.Tool implementations.
Package tooltest provides a generic contract test suite for tool.Tool implementations.
Package workspace provides a file-system sandbox abstraction.
Package workspace provides a file-system sandbox abstraction.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL