โ† API reference
Subscription / aiml

chatMessageStream

Stream AI responses for a chat message in real-time. Emits chunks as they arrive. Requires chatsession:write permission.

Arguments

sessionIdChatSessionID!

Chat session ID to stream messages for

contentString!

Message content to send

Returns ChatSessionStreamChunk!

Scalar fields at a glance

sessionIdChatSessionID!
contentString
isCompleteBoolean!
messageIdChatMessageID
โ†— View the complete ChatSessionStreamChunk type

Explore in a view

AI and ML
View exact SDL
"""
Stream AI responses for a chat message in real-time. Emits chunks as they arrive. Requires chatsession:write permission.
"""
chatMessageStream(
  """Chat session ID to stream messages for"""
  sessionId: ChatSessionID!
  """Message content to send"""
  content: String!
): ChatSessionStreamChunk! @topic(names: ["aiml"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.