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

Function toolArgsLine

packages/opencode/test/lib/llm-server.ts:117–130  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

115}
116
117function toolArgsLine(value: string) {
118 return chunk({
119 delta: {
120 tool_calls: [
121 {
122 index: 0,
123 function: {
124 arguments: value,
125 },
126 },
127 ],
128 },
129 })
130}
131
132function bytes(input: Iterable<unknown>) {
133 return Stream.fromIterable([...input].map(line)).pipe(Stream.encodeText)

Callers 2

toolMethod · 0.85
pendingToolMethod · 0.85

Calls 1

chunkFunction · 0.85

Tested by

no test coverage detected