MCPcopy Create free account
hub / github.com/Noumena-Network/code / createToolResultStopMessage

Function createToolResultStopMessage

src/utils/messages.ts:623–632  ·  view source on GitHub ↗
(
  toolUseID: string,
)

Source from the content-addressed store, hash-verified

621}
622
623export function createToolResultStopMessage(
624 toolUseID: string,
625): ToolResultBlockParam {
626 return {
627 type: 'tool_result',
628 content: CANCEL_MESSAGE,
629 is_error: true,
630 tool_use_id: toolUseID,
631 }
632}
633
634export function extractTag(html: string, tagName: string): string | null {
635 if (!html.trim() || !tagName.trim()) {

Callers 2

runToolUseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected