MCPcopy Create free account
hub / github.com/TanStack/ai / assistantText

Function assistantText

packages/ai-claude-code/tests/translate.test.ts:53–59  ·  view source on GitHub ↗
(text: string, messageId = 'msg-1')

Source from the content-addressed store, hash-verified

51}
52
53function assistantText(text: string, messageId = 'msg-1'): AgentSdkMessage {
54 return {
55 type: 'assistant',
56 message: { id: messageId, content: [{ type: 'text', text }] },
57 parent_tool_use_id: null,
58 }
59}
60
61const resultSuccess: AgentSdkMessage = {
62 type: 'result',

Callers 1

translate.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected