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

Function agentPart

packages/opencode/test/cli/run/session.shared.test.ts:84–93  ·  view source on GitHub ↗
(id: string, messageID: string, name: string, source?: AgentPart["source"])

Source from the content-addressed store, hash-verified

82}
83
84function agentPart(id: string, messageID: string, name: string, source?: AgentPart["source"]): AgentPart {
85 return {
86 id,
87 sessionID: "session-1",
88 messageID,
89 type: "agent",
90 name,
91 source,
92 }
93}
94
95function filePart(id: string, messageID: string, url: string, input: Partial<FilePart> = {}): FilePart {
96 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected