rename lib/{model_context_protocol => mcp}
This commit is contained in:
parent
a09f4786b4
commit
9d2447b351
1 changed files with 62 additions and 63 deletions
|
|
@ -1,33 +0,0 @@
|
|||
# typed: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
module ModelContextProtocol
|
||||
module Content
|
||||
class Text
|
||||
attr_reader :text, :annotations
|
||||
|
||||
def initialize(text, annotations: nil)
|
||||
@text = text
|
||||
@annotations = annotations
|
||||
end
|
||||
|
||||
def to_h
|
||||
{ text:, annotations:, type: "text" }.compact
|
||||
end
|
||||
end
|
||||
|
||||
class Image
|
||||
attr_reader :data, :mime_type, :annotations
|
||||
|
||||
def initialize(data, mime_type, annotations: nil)
|
||||
@data = data
|
||||
@mime_type = mime_type
|
||||
@annotations = annotations
|
||||
end
|
||||
|
||||
def to_h
|
||||
{ data:, mime_type:, annotations:, type: "image" }.compact
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Reference in a new issue