rename lib/{model_context_protocol => mcp}

This commit is contained in:
Topher Bullock 2025-05-29 17:11:40 -04:00
commit 9d2447b351

19
lib/mcp/prompt/message.rb Normal file
View file

@ -0,0 +1,19 @@
# typed: strict
# frozen_string_literal: true
module MCP
class Prompt
class Message
attr_reader :role, :content
def initialize(role:, content:)
@role = role
@content = content
end
def to_h
{ role:, content: content.to_h }.compact
end
end
end
end