MCPcopy
hub / github.com/sipeed/picoclaw / Assemble

Method Assemble

pkg/agent/context_manager.go:18–18  ·  view source on GitHub ↗

Assemble builds budget-aware context from the ContextManager's own storage. Called before BuildMessages. Returns assembled messages ready for LLM.

(ctx context.Context, req *AssembleRequest)

Source from the content-addressed store, hash-verified

16 // Assemble builds budget-aware context from the ContextManager's own storage.
17 // Called before BuildMessages. Returns assembled messages ready for LLM.
18 Assemble(ctx context.Context, req *AssembleRequest) (*AssembleResponse, error)
19
20 // Compact compresses conversation history.
21 // Called after turn completes (may be async internally) and on context overflow (sync).

Implementers 4

seahorseContextManagerpkg/agent/context_seahorse.go
legacyContextManagerpkg/agent/context_legacy.go
noopContextManagerpkg/agent/context_manager_test.go
trackingContextManagerpkg/agent/context_manager_test.go

Calls

no outgoing calls