MCPcopy Index your code
hub / github.com/anomalyco/opencode / assistant

Function assistant

packages/core/test/session-runner-message.test.ts:18–26  ·  view source on GitHub ↗
(value: string, content: SessionMessage.Assistant["content"])

Source from the content-addressed store, hash-verified

16describe("toLLMMessages", () => {
17 test("omits empty assistant turns", () => {
18 const assistant = (value: string, content: SessionMessage.Assistant["content"]) =>
19 SessionMessage.Assistant.make({
20 id: id(value),
21 type: "assistant",
22 agent: "build",
23 model: { id: ModelV2.ID.make("model"), providerID: ProviderV2.ID.make("provider") },
24 content,
25 time: { created, completed: created },
26 })
27 const messages = toLLMMessages(
28 [
29 assistant("empty", []),

Callers 1

Calls 2

idFunction · 0.70
makeMethod · 0.45

Tested by

no test coverage detected