Class: MCPClient::RequestMetadata::HeldRequestMeta
- Inherits:
-
Struct
- Object
- Struct
- MCPClient::RequestMetadata::HeldRequestMeta
- 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
-
#evaluated ⇒ Object
Returns the value of attribute evaluated.
-
#request_method ⇒ Object
Returns the value of attribute request_method.
-
#spent ⇒ Object
Returns the value of attribute spent.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#evaluated ⇒ Object
Returns the value of attribute 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
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
85 86 87 |
# File 'lib/mcp_client/request_metadata.rb', line 85 def spent @spent end |
#value ⇒ Object
Returns the value of attribute value
85 86 87 |
# File 'lib/mcp_client/request_metadata.rb', line 85 def value @value end |