MCPcopy Create free account
hub / github.com/arctic-cli/interface / user

Function user

packages/arctic/test/session/message-v2.test.ts:7–27  ·  view source on GitHub ↗
(id: string, text: string)

Source from the content-addressed store, hash-verified

5const sessionID = "ses_test"
6
7function user(id: string, text: string): MessageV2.WithParts {
8 return {
9 info: {
10 id,
11 sessionID,
12 role: "user",
13 time: { created: 0 },
14 agent: "build",
15 model: { providerID: "anthropic", modelID: "claude-sonnet-4-20250514" },
16 },
17 parts: [
18 {
19 id: "p_" + id,
20 sessionID,
21 messageID: id,
22 type: "text",
23 text,
24 },
25 ],
26 }
27}
28
29function assistant(id: string, parentID: string, text: string): MessageV2.WithParts {
30 return {

Callers 1

message-v2.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected