Record Class McpServerMessageContext
java.lang.Object
java.lang.Record
dev.langchain4j.mcp.client.McpServerMessageContext
- Record Components:
method- the JSON-RPC method of the message, for examplenotifications/resources/updatedid- the JSON-RPC ID of the message if it's a request, as the server sent it (aStringor aNumber),nullif it's a notificationparams- the parameters of the message, empty if it has none
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Objectid()Returns the value of theidrecord component.meta()The_metaof the message, which can carry, for example, the trace context of the server.method()Returns the value of themethodrecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
meta
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
-
id
-
params
-