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

Function assistantWithoutProvider

packages/opencode/test/acp/usage.test.ts:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30})
31
32const assistantWithoutProvider = (): UsageService.SessionMessage => ({
33 info: {
34 role: "assistant",
35 modelID: "claude-sonnet",
36 cost: 1,
37 tokens: {
38 input: 10,
39 output: 20,
40 reasoning: 0,
41 cache: { read: 0, write: 0 },
42 },
43 },
44})
45
46const model = (providerID: ProviderV2.ID, modelID: ModelV2.ID, context: number): Provider.Model => ({
47 id: modelID,

Callers 1

usage.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected