{"modulePath":"github.com/weftbase/weft","version":"v0.25.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/weftbase/weft","name":"weft","synopsis":"Package weft is a modular framework for building AI agents in Go, designed the way the standard library is: small interfaces, context everywhere, functional options, wrapped errors, and zero required configuration.","isRedistributable":true},{"path":"github.com/weftbase/weft/anthropic","name":"anthropic","synopsis":"Package anthropic is the weft adapter for the Anthropic Messages API, wrapping the official anthropic-sdk-go.","isRedistributable":true},{"path":"github.com/weftbase/weft/anthropic/example","name":"main","synopsis":"Command example runs a two-step agent conversation against the real Anthropic API.","isRedistributable":true},{"path":"github.com/weftbase/weft/examples/approval","name":"main","synopsis":"Command approval shows the approval boundary end to end, offline: a tool marked RequireApproval parks its call, the run ends with the call on Pending, a person decides, and a second run resumes with the transcript plus the decision.","isRedistributable":true},{"path":"github.com/weftbase/weft/examples/getting-started","name":"main","synopsis":"Command getting-started runs a complete weft agent offline: a scripted model (from wefttest), one tool, and the full event stream.","isRedistributable":true},{"path":"github.com/weftbase/weft/google","name":"google","synopsis":"Package google is the weft adapter for the Gemini API via the official google.golang.org/genai SDK.","isRedistributable":true},{"path":"github.com/weftbase/weft/google/example","name":"main","synopsis":"Command example runs a two-step agent conversation against the real Gemini API.","isRedistributable":true},{"path":"github.com/weftbase/weft/internal/adapterkit","name":"adapterkit","synopsis":"Package adapterkit holds the helpers every first-party adapter needs but no vendor SDK touches: schema rendering, the terminal-error rule (with the context-overflow mapping and the marker table mw's retry classifier reads), and the FilePart exactly-one guard.","isRedistributable":true},{"path":"github.com/weftbase/weft/internal/cmd/genfacade","name":"main","synopsis":"Command genfacade writes a facade package (internal/facadegen): the framework's github.com/weftbase/weft, weft/mw, weft/wefttest and weft/wefttest/conformance re-export the core module's packages of the same name.","isRedistributable":true},{"path":"github.com/weftbase/weft/internal/facadegen","name":"facadegen","synopsis":"Package facadegen writes a facade package: one that re-exports another package's whole exported API under a new import path, so github.com/weftbase/weft (the framework) offers the loop that github.com/weftbase/weft/core (the slim module) implements, under the same names.","isRedistributable":true},{"path":"github.com/weftbase/weft/mcp","name":"mcp","synopsis":"Package mcp is the bridge between weft and the Model Context Protocol, both directions over the official Go SDK (github.com/modelcontextprotocol/go-sdk, aliased `sdk` in examples — this package keeps the name `mcp`):","isRedistributable":true},{"path":"github.com/weftbase/weft/mcp/examples/client","name":"main","synopsis":"Command client consumes MCP servers as weft tools: it connects two in-memory servers concurrently under one deadline, imports their tools with per-server prefixes, registers them on a scripted agent, runs it, and prints the manifest — the imported tools' raw schemas show in it.","isRedistributable":true},{"path":"github.com/weftbase/weft/mcp/examples/server","name":"main","synopsis":"Command server exposes a weft agent as an MCP server over stdio — the getting-started agent plus its lookup tool, both directions of §7 in one process:","isRedistributable":true},{"path":"github.com/weftbase/weft/mw","name":"mw","synopsis":"Package mw is the framework's import path for the reference middleware that github.com/weftbase/weft/core/mw implements: model middleware for weft.WrapModel (Retry, Fallback, Log, RepairJSON) and tool middleware for weft.WrapTools (Allow, Audit, MapErrors).","isRedistributable":true},{"path":"github.com/weftbase/weft/openai","name":"openai","synopsis":"Package openai is the weft adapter for the OpenAI Chat Completions API and OpenAI-compatible servers (gateways, local models), wrapping the official openai-go SDK.","isRedistributable":true},{"path":"github.com/weftbase/weft/openai/example","name":"main","synopsis":"Command example runs a two-step agent conversation against the real OpenAI API (or any OPENAI_BASE_URL server).","isRedistributable":true},{"path":"github.com/weftbase/weft/otel","name":"otel","synopsis":"Package otel wires weft's observability to one or more OpenTelemetry destinations at once — any OTLP endpoint, Datadog, Langfuse, your own exporters or a synchronous Sink — each with its own signals and content policy (ADR 0024, S2).","isRedistributable":true},{"path":"github.com/weftbase/weft/thread","name":"thread","synopsis":"Package thread gives weft sessions: a conversation as an append-only tree of entries, durable through a Storage backend, with turns, branching, compaction, approvals and delegation all built on that one tree.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/backend","name":"backend","synopsis":"Package backend is for authors of thread.Storage backends: it resolves the open options an application passes — thread.Salvage, thread.FsyncOnFlush, thread.NoLock, thread.OpenLogger — into the configuration a backend acts on.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/examples/refund-plan","name":"main","synopsis":"Command refund-plan demonstrates the orchestration ledger on a weft/thread session: a refund-support chat whose policy state lives in the session file as custom entries, so a process that dies mid-flow is replaced by one that resumes exactly where the file says — the last refund_plan entry.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/examples/session","name":"main","synopsis":"Command session walks one weft/thread session through its whole life: two turns, a label, a branch off the first answer, a fork of the branch, a manual compaction with preview, a close, and a reopen from disk — everything on a JSONL backend, everything offline through a scripted model, every id deterministic.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/internal/carry","name":"carry","synopsis":"Package carry builds the context a run continues on when it runs on behalf of another one — a resume over a parked boundary, a deferred steer's follow-up, an async pool child: cancellation and deadline from one context, and, for the keys that context does not carry, the values of the context the work began on.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/internal/ladder","name":"ladder","synopsis":"Package ladder holds the recovery ladder's one timing a test outside package thread needs to shorten (ADR 0032): how long the end of a turn waits for a handler the loop abandoned before it parks the call for a person as still running.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/internal/opencfg","name":"opencfg","synopsis":"Package opencfg holds the resolved form of thread's open options — the one piece of the option vocabulary that thread (which declares the options), its in-tree backends (Memory) and thread/backend (which publishes the resolution to backend authors) all need, kept here so that none of them has to import another to share it.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/internal/rules","name":"rules","synopsis":"Package rules holds the small rules every thread.Storage backend must answer identically: the List limit, the metadata and title filters, the paging cursor, and the line discipline of a session's bytes.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/jsonl","name":"jsonl","synopsis":"Package jsonl is the default durable thread.Storage: one directory, one \u003cid\u003e.jsonl file per session — the header line first, then one entry per line in append order (ADR 0011).","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/pool","name":"pool","synopsis":"Package pool provides bounded concurrent child runs for thread sessions (ADR 0022): a FIFO semaphore per Pool value, subagent tools whose children run as sessions of their own, linked to the parent session and call, and receipts recording every delegation's journey.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/sqlite","name":"sqlite","synopsis":"Package sqlite is the thread's second durable backend: every session in one SQLite file on the CGO-free modernc.org/sqlite driver (Crush's choice before it) with WAL and embedded migrations.","isRedistributable":true},{"path":"github.com/weftbase/weft/thread/threadtest","name":"threadtest","synopsis":"Package threadtest is the shared conformance table for thread.Storage backends — the executable form of ADR 0011 §5's promises.","isRedistributable":true},{"path":"github.com/weftbase/weft/version","name":"version","synopsis":"Package version is weft's one version string: the framework module's release tag, stamped into the otel resource and, by the platform (weftbase, which embeds a weft version and reports it), Studio's api/meta, the devtools panel bundle, the runtime's registration and the weftbase binary's version output.","isRedistributable":true},{"path":"github.com/weftbase/weft/wefttest","name":"wefttest","synopsis":"Package wefttest is the framework's import path for the offline test double that github.com/weftbase/weft/core/wefttest implements: a scripted, deterministic Model (Script, Say, ToolCalls, Fail, …), record-and-replay against a real provider, and helpers for events and golden files.","isRedistributable":true},{"path":"github.com/weftbase/weft/wefttest/conformance","name":"conformance","synopsis":"Package conformance is the framework's import path for the adapter conformance suite that github.com/weftbase/weft/core/wefttest/conformance implements: Run drives a Model through the behaviours every provider adapter must share.","isRedistributable":true}],"total":32}}
