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
274 B
Raw Blame
import type { SessionMessage } from 'claude-code'

/**
 * A prompt the person typed, as the transcript holds it.
 *
 * @param text the prompt
 * @returns the message
 */
export const promptOf = (text: string): SessionMessage => ({
  role: 'user',
  text,
  toolUses: [],
})