Internal Release 0.5.0
Bump protocol version to 2025-03-26 Provide fallback value for tool_name Make configuration per server Add support for tool annotations document tool annotations
This commit is contained in:
parent
2eca3681df
commit
7175d49108
1 changed files with 353 additions and 42 deletions
|
|
@ -6,12 +6,11 @@ module ModelContextProtocol
|
|||
class InstrumentationTest < ActiveSupport::TestCase
|
||||
class Subject
|
||||
include Instrumentation
|
||||
attr_reader :instrumentation_data_received
|
||||
attr_reader :instrumentation_data_received, :configuration
|
||||
|
||||
def initialize
|
||||
ModelContextProtocol.configure do |config|
|
||||
config.instrumentation_callback = ->(data) { @instrumentation_data_received = data }
|
||||
end
|
||||
@configuration = ModelContextProtocol::Configuration.new
|
||||
@configuration.instrumentation_callback = ->(data) { @instrumentation_data_received = data }
|
||||
end
|
||||
|
||||
def instrumented_method
|
||||
|
|
|
|||
Loading…
Reference in a new issue