actionmcp 0.50.11 → 0.50.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a500e24390bf32c0e74cba14755f67257c91b69ba6ffe786e3b692efd82c87cc
4
- data.tar.gz: d122b12b45799b719f077d742a1a5edd85eac4cbe96e2a85259eb7673c858f36
3
+ metadata.gz: 732bb914bdf7c9e8f34b6b7fb214b7500a21824e76e6efeb7b22562da48565d5
4
+ data.tar.gz: 204ebc257364131621488ad53c11ea1ae3a8d12121d51ca564b189f6ad4d87c8
5
5
  SHA512:
6
- metadata.gz: f7878f2188781097208e5a703cdd6b3c6fcffa6cea0fef3db5e13538499bae935eebfc3ec6ffbbb77267f016023abe2c9b1e476b51b1d87910c81d4f44c5f4b7
7
- data.tar.gz: 72048e1f3c8d3062bbc17840c14d5abfbc04fe620710d5dde9d3f98ce44a866347b95884fa03fb402d2d2cab078d7f9d6e9eb49690d338f29484b64fcad3caa5
6
+ metadata.gz: 464cc4fcab209df9db74d1daa2a3a5e8a664bd020b050267140ad57f7dcfb80ca08ee24ac181824aa8f54c6cd5114d3e7db91997a34a67694c2e97bf1256769b
7
+ data.tar.gz: f6e238ec29853b2722f56a92cd63d3aac24b2a776a2246d0eaf4b190c78a4fdd6ec7681d1fe078bfdb119302c15a7446d05b609b4971ba02d3edb66003627f95
@@ -21,14 +21,14 @@ module ActionMCP
21
21
  # render(text: "Hello, world!")
22
22
  #
23
23
  def render(text: nil, audio: nil, image: nil, resource: nil, mime_type: nil, blob: nil)
24
- if text
24
+ if resource && mime_type
25
+ Content::Resource.new(resource, mime_type, text: text, blob: blob, annotations: nil)
26
+ elsif text
25
27
  Content::Text.new(text, annotations: nil)
26
28
  elsif audio && mime_type
27
29
  Content::Audio.new(audio, mime_type, annotations: nil)
28
30
  elsif image && mime_type
29
31
  Content::Image.new(image, mime_type, annotations: nil)
30
- elsif resource && mime_type
31
- Content::Resource.new(resource, mime_type, text: text, blob: blob, annotations: nil)
32
32
  else
33
33
  raise ArgumentError, "No content to render"
34
34
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "gem_version"
4
4
  module ActionMCP
5
- VERSION = "0.50.11"
5
+ VERSION = "0.50.12"
6
6
 
7
7
  class << self
8
8
  alias version gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.11
4
+ version: 0.50.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abdelkader Boudih