summaryrefslogtreecommitdiffhomepage
path: root/lib/dispatch/adapter/message.rb
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
committerAdam Malczewski <[email protected]>2026-04-28 14:10:04 +0900
commit1ec2afaa21b8c3ef336982e80259b9bb79e3fb32 (patch)
tree7cf43fbd4efc6d6834744d800822255fd3d44d05 /lib/dispatch/adapter/message.rb
parente6c2f23b58a1e87088ee75632c74fee4f15f6a94 (diff)
downloaddispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.tar.gz
dispatch-adapter-copilot-1ec2afaa21b8c3ef336982e80259b9bb79e3fb32.zip
updatesdev
Diffstat (limited to 'lib/dispatch/adapter/message.rb')
-rw-r--r--lib/dispatch/adapter/message.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/dispatch/adapter/message.rb b/lib/dispatch/adapter/message.rb
deleted file mode 100644
index eb51c99..0000000
--- a/lib/dispatch/adapter/message.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# frozen_string_literal: true
-
-module Dispatch
- module Adapter
- Message = Struct.new(:role, :content, keyword_init: true)
-
- TextBlock = Struct.new(:type, :text, keyword_init: true) do
- def initialize(text:, type: "text")
- super(type:, text:)
- end
- end
-
- ImageBlock = Struct.new(:type, :source, :media_type, keyword_init: true) do
- def initialize(source:, media_type:, type: "image")
- super(type:, source:, media_type:)
- end
- end
-
- ToolUseBlock = Struct.new(:type, :id, :name, :arguments, keyword_init: true) do
- def initialize(id:, name:, arguments:, type: "tool_use")
- super(type:, id:, name:, arguments:)
- end
- end
-
- ToolResultBlock = Struct.new(:type, :tool_use_id, :content, :is_error, keyword_init: true) do
- def initialize(tool_use_id:, content:, is_error: false, type: "tool_result")
- super(type:, tool_use_id:, content:, is_error:)
- end
- end
- end
-end