MCPcopy Create free account

hub / github.com/GizClaw/flowcraft / functions

Functions13,468 in github.com/GizClaw/flowcraft

↓ 992 callersMethodNew
(provider, apiKey, baseURL string, opts ...STTProviderOption)
voice/stt/stt.go:77
↓ 642 callersMethodUnlock
Unlock releases the per-key lock for key. Calling Unlock without a matching prior Lock panics (mirrors sync.Mutex). Safe to call Unlock(K1) and Unlock
sdk/internal/syncx/keyedmutex.go:76
↓ 573 callersMethodLock
Lock blocks until the caller holds the per-key lock for key. Two Lock(K) calls with the same key serialise; Lock(K1) and Lock(K2) for distinct keys ne
sdk/internal/syncx/keyedmutex.go:57
↓ 492 callersMethodAdd
Add inserts one pre-built Entry verbatim and returns the assigned entry ID. Two ingest modes: - e.ID == "" (content-addressable): the ID is derived
sdk/recall/memory.go:64
↓ 473 callersMethodContains
Contains reports whether word is in the set. The check is case-insensitive — callers can pass raw surface forms.
memory/text/stopword/set.go:28
↓ 439 callersMethodRun
(ctx context.Context, state *State)
sdk/retrieval/pipeline/pipeline.go:55
↓ 378 callersMethodString
()
sdk/llm/resolver.go:189
↓ 361 callersMethodContains
Contains checks if a path contains a substring — intended for tests.
sdk/workspace/mem.go:252
↓ 343 callersMethodContent
Content returns the concatenated text of all text parts.
sdk/model/message.go:173
↓ 319 callersMethodErr
()
sdk/llm/llm.go:130
↓ 310 callersMethodClose
Close shuts down the bus. After Close returns, every subscription channel will be closed and subsequent Publish / Subscribe calls return ErrBusClosed.
sdk/event/bus.go:50
↓ 258 callersMethodUnlock
Unlock releases the per-key lock for key. Calling Unlock without a matching prior Lock panics (mirrors sync.Mutex). Safe to call Unlock(K1) and Unlock
memory/internal/syncx/keyedmutex.go:76
↓ 248 callersMethodLoad
Load returns messages suited for the next LLM call. Implementations MAY compress, summarize, or window the underlying transcript. budget is a hint; i
sdk/history/history.go:22
↓ 247 callersMethodClose
Close releases backend resources.
memory/recall/internal/port/store.go:141
↓ 243 callersMethodLock
Lock blocks until the caller holds the per-key lock for key. Two Lock(K) calls with the same key serialise; Lock(K1) and Lock(K2) for distinct keys ne
memory/internal/syncx/keyedmutex.go:57
↓ 232 callersMethodError
()
sdk/errdefs/http_test.go:17
↓ 224 callersMethodSave
Save extracts facts from msgs and writes them synchronously.
sdk/recall/memory.go:37
↓ 197 callersMethodUpsert
(ctx context.Context, namespace string, docs []Doc)
sdk/retrieval/index.go:10
↓ 186 callersMethodSearch
(ctx context.Context, namespace string, req SearchRequest)
sdk/retrieval/index.go:12
↓ 185 callersMethodWrite
(ctx context.Context, path string, data []byte)
sdk/workspace/workspace.go:21
↓ 167 callersMethodExec
(ctx context.Context, name, source string, env *Env)
sdk/script/script.go:39
↓ 167 callersMethodRun
(ctx context.Context, job SideEffectJob)
memory/recall/internal/port/side_effect_outbox.go:90
↓ 157 callersMethodGenerate
(ctx context.Context, messages []Message, opts ...GenerateOption)
sdk/llm/llm.go:119
↓ 152 callersMethodCleanup
(opts CleanupOptions)
sdk/graph/runner/internal/executor/checkpoint.go:70
↓ 151 callersFunctionNew
New constructs a v2 Memory. The defaults wire a fully in-memory stack so callers can exercise the write path without external dependencies; production
memory/recall/memory.go:180
↓ 136 callersMethodIsZero
IsZero reports whether no time bounds were supplied.
memory/recall/internal/domain/query.go:14
↓ 136 callersMethodWait
Wait blocks until the run reaches a terminal state, then returns the agent.Result and any error returned by agent.Run. Wait honours ctx cancellation:
vessel/handle.go:77
↓ 126 callersMethodClose
Close releases signaling resources (HTTP connections, etc.).
voice/webrtc/signaling.go:25
↓ 124 callersMethodReplace
(ctx context.Context, datasetID, docName string, chunks []DerivedChunk)
sdk/knowledge/repo.go:44
↓ 123 callersFunctionasMap
asMap is the unchecked downcast we apply when State is structured (Sierra's initial_state.json is rigorously typed; this helper exists only to keep ca
eval/taubench/sierra_common.go:77
↓ 122 callersMethodDone
Done returns the underlying done channel for callers that want to integrate Handle completion into a larger select{}. The channel is closed when the r
vessel/handle.go:94
↓ 120 callersMethodDone
Done transitions a claimed card to done status with a result payload. Publishes EventTaskCompleted to Bus() for task-typed cards.
sdk/kanban/board.go:248
↓ 120 callersMethodNext
()
sdk/llm/llm.go:128
↓ 116 callersMethodSet
Set stores a dependency under the given key. Overwrites any existing value for the same key.
sdk/engine/deps.go:33
↓ 113 callersMethodError
()
voice/provider/error.go:24
↓ 107 callersMethodGet
(ctx context.Context, scope domain.Scope, factID string)
memory/recall/internal/port/ingest.go:137
↓ 107 callersMethodRead
()
voice/audio/stream.go:17
↓ 106 callersMethodIsZero
IsZero reports whether the spec carries no caps, no defaults, and no limits. Used by the resolver to skip the wrap step entirely.
sdk/llm/spec.go:36
↓ 104 callersMethodSkip
(ctx context.Context, state S)
memory/recall/internal/pipeline/pipeline.go:73
↓ 95 callersMethodDo
Do is the low-level escape hatch when a test needs full control of headers / status / streaming. It dials the daemon's unix socket, sets the default a
tests/e2e/vesseld/helpers/api.go:43
↓ 94 callersMethodDecode
Decode decodes a single compressed packet into PCM16LE samples.
voice/webrtc/codec.go:20
↓ 89 callersMethodClose
Close stops async workers and the TTL sweeper; safe to call more than once.
sdk/recall/memory.go:76
↓ 86 callersMethodPartitionKey
PartitionKey is the canonical store / projection / async-queue partition ("rt-1/u:alice" / "rt-1/global"). AgentID is intentionally excluded — per doc
memory/recall/internal/domain/canonical.go:11
↓ 84 callersMethodGet
(ctx context.Context, id JobID)
sdk/recall/jobs.go:83
↓ 84 callersMethodSetVar
(key string, value any)
sdk/script/bindings/bridge_board.go:26
↓ 83 callersFunctionconformanceScope
()
memory/recall/recalltest/helpers.go:10
↓ 82 callersMethodError
()
memory/recall/ops/types.go:203
↓ 82 callersMethodPut
(ctx context.Context, layer DerivedLayer)
sdk/knowledge/repo.go:127
↓ 80 callersMethodList
List returns scope-local facts matching the query, ordered by ObservedAt ascending.
memory/recall/internal/port/store.go:57
↓ 80 callersMethodRegister
Register adds a tool to the registry with the default scope (ScopeAgent).
sdk/tool/registry.go:104
↓ 79 callersMethodShutdown
Shutdown stops accepting new work and waits for in-flight per- conversation queues to drain. After Shutdown is observed, Append/Compact/Archive return
sdk/history/history.go:91
↓ 76 callersMethodType
()
sdk/graph/core.go:43
↓ 75 callersMethodGetVar
(key string)
sdk/script/bindings/bridge_board.go:25
↓ 74 callersMethodName
Name is used for logs / metrics and to distinguish multiple projections registered against the same Memory.
sdk/recall/projection.go:51
↓ 73 callersMethodExecute
(ctx context.Context, arguments string)
sdk/tool/tool.go:14
↓ 72 callersMethodResolve
(ctx context.Context, model string)
sdk/llm/resolver.go:125
↓ 72 callersMethodStart
(ctx context.Context, id JobID, now time.Time)
sdk/recall/jobs.go:79
↓ 71 callersMethodProject
Project conveys "these entries currently exist (alive, not tombstoned/expired) in the primary index, under scope". Semantics are ADDITIVE: the projec
sdk/recall/projection.go:68
↓ 71 callersFunctionWithTemporalStore
WithTemporalStore installs the canonical TemporalFact store. The default is an in-memory store suitable for tests and local development. Production d
memory/recall/store.go:47
↓ 70 callersMethodError
()
sdk/script/bindings/bridge_shell_test.go:37
↓ 66 callersMethodAppend
Append attaches refs to factID within scope. Implementations must be idempotent on (scope, factID, refs[i].ID).
memory/recall/internal/port/store.go:123
↓ 66 callersMethodAppendChannelMessage
(name string, msg model.Message)
sdk/script/bindings/bridge_board.go:30
↓ 64 callersMethodSetVar
---------- Vars ---------- SetVar sets a board-level variable. Concurrent-safe.
sdk/engine/board.go:78
↓ 62 callersMethodProduce
Produce creates a new Card in Pending status and notifies matching watchers.
sdk/kanban/board.go:164
↓ 62 callersFunctionschemaString
--- tiny schema helpers --- These return JSON-Schema fragments. They live here (not sierra_common.go) so each tool's registration call stays readable
eval/taubench/sierra_retail.go:833
↓ 61 callersMethodSend
Send injects a text message into the session, skipping STT. If the session is currently responding or playing, it triggers a barge-in. Returns false i
voice/session.go:192
↓ 60 callersFunctionDefaultDAGConfig
DefaultDAGConfig returns a DAGConfig with sensible defaults.
memory/history/compactor.go:876
↓ 60 callersFunctionDefaultDAGConfig
DefaultDAGConfig returns a DAGConfig with sensible defaults.
sdk/history/compactor.go:876
↓ 59 callersMethodHeader
Header returns the header value or "" when absent.
sdk/event/envelope.go:159
↓ 59 callersMethodString
String returns the raw prefix name.
memory/retrieval/namespace/prefix.go:42
↓ 59 callersMethodValidation
()
sdk/errdefs/errors.go:42
↓ 58 callersMethodIsDir
()
sdk/workspace/mem.go:289
↓ 57 callersMethodClose
Close performs a multi-phase shutdown: 1. Take the write lock, mark closed, snapshot subscribers, release lock. New Publish / Subscribe calls now fai
sdk/event/memory.go:524
↓ 57 callersMethodDelete
Delete removes facts by ID within a scope. Missing IDs are ignored so callers can issue idempotent forgets.
memory/recall/internal/port/store.go:93
↓ 57 callersMethodExists
(ctx context.Context, path string)
sdk/workspace/workspace.go:37
↓ 55 callersMethodStop
Stop is the impatient counterpart to Drain. It transitions to PhaseStopping, cancels the Captain's root context (which propagates ctx cancellation to
vessel/captain.go:615
↓ 54 callersFunctionargString
Sierra τ-bench tool ports — common helpers Sierra's Python tools (sierra-research/tau-bench, commit 59a200c6, dated 2026-03-18) all follow the same w
eval/taubench/sierra_common.go:36
↓ 54 callersFunctionnewScope
()
sdk/recall/memory_test.go:37
↓ 52 callersMethodExecuteBoard
(ctx ExecutionContext, board *Board)
sdk/graph/core.go:44
↓ 52 callersMethodRead
(ctx context.Context, path string)
sdk/workspace/workspace.go:20
↓ 51 callersMethodRecall
Recall runs the configured retrieval pipeline against the scope-derived namespace.
sdk/recall/memory.go:68
↓ 51 callersMethodSend
Send writes a value into the pipe. Returns false if the pipe has been interrupted (context cancelled). Blocks if the buffer is full.
voice/audio/stream.go:78
↓ 51 callersMethodStat
(ctx context.Context, path string)
sdk/workspace/workspace.go:38
↓ 50 callersMethodLen
Len returns the number of cards.
sdk/kanban/board.go:421
↓ 50 callersMethodMustWrite
MustWrite panics on error — intended for tests.
sdk/workspace/mem.go:245
↓ 50 callersFunctionNewMemWorkspace
()
sdk/workspace/mem.go:29
↓ 50 callersMethodOpen
Open returns the per-run workspace for runID. Implementations must return the same instance for the same runID within their process lifetime; this is
vessel/session.go:41
↓ 50 callersMethodSearch
(ctx context.Context, q ChunkQuery)
sdk/knowledge/repo.go:49
↓ 50 callersMethodString
String returns the raw prefix name.
sdk/retrieval/namespace/prefix.go:42
↓ 50 callersFunctionemit
emit is the core logging function. It creates an OTel LogRecord, injects trace_id/span_id from ctx when available, and emits it through the global Log
sdk/telemetry/logger.go:36
↓ 49 callersMethodClone
()
sdk/engine/board.go:37
↓ 49 callersMethodString
()
cmd/claw/cli/auto.go:1056
↓ 48 callersMethodLaunch
Launch transitions the Captain from PhasePending into PhaseRunning, subscribes every Sidecar agent to the bus, and starts the probe loop (when Probes
vessel/captain.go:305
↓ 48 callersFunctionNewInMemoryStore
NewInMemoryStore creates a new in-memory message store with optional limits.
memory/history/store.go:88
↓ 48 callersFunctionNewInMemoryStore
NewInMemoryStore creates a new in-memory message store with optional limits.
sdk/history/store.go:88
↓ 48 callersMethodReadFile
(string)
sdk/graph/node/scriptnode/register_test.go:35
↓ 47 callersMethodBuild
(deps Deps)
memory/recall/internal/lens/lens.go:14
↓ 47 callersMethodGetVar
GetVar retrieves a board-level variable.
sdk/engine/board.go:92
↓ 47 callersMethodSupports
Supports reports whether the model supports the given capability.
sdk/llm/capability.go:69
↓ 47 callersMethodURL
URL returns the base URL the LLMProfile config should use as `base_url` (a.k.a. `baseURL` in YAML).
tests/e2e/vesseld/helpers/mockopenai.go:152
next →1–100 of 13,468, ranked by callers