MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makePausedResult

Function makePausedResult

packages/hosts/mcp/src/tool-server.test.ts:170–179  ·  view source on GitHub ↗
(
  id: string,
  request: FormElicitation | UrlElicitation,
)

Source from the content-addressed store, hash-verified

168
169/** Build a stub paused ExecutionResult with the given id and elicitation request. */
170const makePausedResult = (
171 id: string,
172 request: FormElicitation | UrlElicitation,
173): ExecutionResult => ({
174 status: "paused",
175 execution: {
176 id,
177 elicitationContext: { address: STUB_TOOL_ADDRESS, args: {}, request },
178 },
179});
180
181const toolFile = (input: {
182 readonly name?: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected