Class: MCPClient::RequestMetadata::HeldRequestMeta

Inherits:
Struct
  • Object
show all
Defined in:
lib/mcp_client/request_metadata.rb

Overview

The evaluation of the host's request_meta that one operation reserves for the request it leads to: the JSON-RPC method of that request, the evaluation once it has been made, and whether the request it was held for has already spent it.

A reservation is claimed by that one request and by nothing else. Everything else a transport sends while it is open -- a reconnect's handshake, the subscriptions/listen a reconnect re-opens, the notifications/cancelled for an abandoned request, a raw rpc_request or nested list a notification listener issues -- reads the host afresh and leaves the reservation for the request that holds it.

Instance Attribute Summary collapse

Instance Attribute Details

#evaluated ⇒ Object

Returns the value of attribute evaluated

Returns:

  • (Object) —

    the current value of evaluated



85
86
87
# File 'lib/mcp_client/request_metadata.rb', line 85

def evaluated
  @evaluated
end

#request_method ⇒ Object

Returns the value of attribute request_method

Returns:

  • (Object) —

    the current value of request_method



85
86
87
# File 'lib/mcp_client/request_metadata.rb', line 85

def request_method
  @request_method
end

#spent ⇒ Object

Returns the value of attribute spent

Returns:

  • (Object) —

    the current value of spent



85
86
87
# File 'lib/mcp_client/request_metadata.rb', line 85

def spent
  @spent
end

#value ⇒ Object

Returns the value of attribute value

Returns:

  • (Object) —

    the current value of value



85
86
87
# File 'lib/mcp_client/request_metadata.rb', line 85

def value
  @value
end