CreateMessageResult

mcp.schema.result.CreateMessageResult
See theCreateMessageResult companion object
final case class CreateMessageResult(model: String, stopReason: Option[StopReason], role: Role, content: Content) extends Result, SamplingMessage

The client's response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.

Attributes

Companion
object
Source
CreateMessageResult.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product