MCPcopy Index your code
hub / github.com/codeaashu/claude-code / send

Function send

web/lib/api/messages.ts:116–127  ·  view source on GitHub ↗
(conversationId, content, history, opts)

Source from the content-addressed store, hash-verified

114
115export const messageAPI: MessageAPI = {
116 async *send(conversationId, content, history, opts) {
117 const model = opts?.model ?? DEFAULT_MODEL;
118 const messages = [
119 ...toApiMessages(history),
120 { role: "user", content },
121 ];
122 yield* streamRequest(
123 conversationId,
124 { messages, model, stream: true, max_tokens: opts?.maxTokens },
125 opts
126 );
127 },
128
129 async *retry(conversationId, messagesUpToAssistant, opts) {
130 const model = opts?.model ?? DEFAULT_MODEL;

Callers

nothing calls this directly

Calls 2

toApiMessagesFunction · 0.85
streamRequestFunction · 0.85

Tested by

no test coverage detected