Resource
message-writer
Writer for streaming prompt messages.
resource message-writer;F check-write
check-write: func() -> result<u32, stream-error>;Check readiness for writing. Returns the number of messages that can be written without blocking.
F write
write: func(message: prompt-message) -> result<_, stream-error>;Write a message to the stream.
F close
close: func(options: option<get-prompt-result-options>) -> result<_, stream-error>;Close the message stream.
F send-messages
send-messages: func(id: id, output: output-stream, messages: list<prompt-message>, options: option<get-prompt-result-options>) -> result<_, stream-error>;Send a complete list of messages and close the output stream.
F open
open: func(id: id, output: output-stream) -> result<message-writer, stream-error>;Start the message stream.