MCPcopy Create free account
hub / github.com/anomalyco/opencode / assistant

Function assistant

packages/opencode/test/cli/run/stream.transport.test.ts:87–100  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

85}
86
87function assistant(id: string) {
88 return {
89 id: `evt-${id}`,
90 type: "message.updated",
91 properties: {
92 sessionID: "session-1",
93 info: assistantMessage({
94 sessionID: "session-1",
95 id,
96 parts: [],
97 }).info,
98 },
99 } satisfies SdkEvent
100}
101
102const StreamClosed = undefined as never
103

Callers 1

Calls 1

assistantMessageFunction · 0.70

Tested by

no test coverage detected