stop using shared dir

This commit is contained in:
Joey Cardosi 2025-05-30 14:33:22 -04:00
commit 5cc3d9d526
No known key found for this signature in database
GPG key ID: 5F93AEDDAAE66774

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

@ -0,0 +1,19 @@
# typed: strict
# frozen_string_literal: true
module MCP
class Prompt
class Result
attr_reader :description, :messages
def initialize(description: nil, messages: [])
@description = description
@messages = messages
end
def to_h
{ description:, messages: messages.map(&:to_h) }.compact
end
end
end
end