CreateMessageRequest

mcp.schema.request.CreateMessageRequest
See theCreateMessageRequest companion object
final case class CreateMessageRequest(messages: List[SamplingMessage], modelPreferences: Option[ModelPreferences], systemPrompt: Option[String], includeContext: Option[ContextInclusionStrategy], temperature: Option[String], maxTokens: Int, stopSequences: Option[Int], metaData: Option[Json]) extends Request

A request from the server to sample an LLM via the client. The client has full discretion over which model to select. The client should also inform the user before beginning sampling, to allow them to inspect the request (human in the loop) and decide whether to approve it.

Attributes

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

Members list

Value members

Concrete methods

override def method: Method

Attributes

Definition Classes
Source
CreateMessageRequest.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product