MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createFunctionResponsePart

Function createFunctionResponsePart

packages/core/src/core/coreToolScheduler.ts:136–148  ·  view source on GitHub ↗

* Formats tool output for a Anus FunctionResponse.

(
  callId: string,
  toolName: string,
  output: string,
)

Source from the content-addressed store, hash-verified

134 * Formats tool output for a Anus FunctionResponse.
135 */
136function createFunctionResponsePart(
137 callId: string,
138 toolName: string,
139 output: string,
140): Part {
141 return {
142 functionResponse: {
143 id: callId,
144 name: toolName,
145 response: { output },
146 },
147 };
148}
149
150export function convertToFunctionResponse(
151 toolName: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected