MCPcopy Index your code
hub / github.com/TanStack/ai / sendMessage

Function sendMessage

packages/ai-solid/src/use-chat.ts:192–194  ·  view source on GitHub ↗
(content: string | MultimodalContent)

Source from the content-addressed store, hash-verified

190 // or mutated options propagate without recreating the client.
191
192 const sendMessage = async (content: string | MultimodalContent) => {
193 await client().sendMessage(content)
194 }
195
196 const append = async (message: ModelMessage | UIMessage<TTools>) => {
197 await client().append(message)

Callers 1

handleSubmitFunction · 0.50

Calls 2

sendMessageMethod · 0.65
clientFunction · 0.50

Tested by

no test coverage detected