spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / turn-diffs-of / tool-results.ts
13 lines · 328 BRaw
1import type { SessionMessage } from 'claude-code'
2
3/**
4 * The message that carries a turn's tool results back, no text of its own.
5 *
6 * @returns the message
7 */
8export const toolResults = (): SessionMessage => ({
9 role: 'user',
10 text: '',
11 toolUses: [],
12 toolResults: [{ tool_use_id: 't', text: 'ok', isError: false }],
13})