Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
328 B
Raw Blame
import type { SessionMessage } from 'claude-code'

/**
 * The message that carries a turn's tool results back, no text of its own.
 *
 * @returns the message
 */
export const toolResults = (): SessionMessage => ({
  role: 'user',
  text: '',
  toolUses: [],
  toolResults: [{ tool_use_id: 't', text: 'ok', isError: false }],
})