Class: ClaudeAgentSDK::SdkMcpResource

Inherits:
Object
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

SDK MCP Resource definition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri:, name:, description: nil, mime_type: nil, reader:) ⇒ SdkMcpResource

Returns a new instance of SdkMcpResource.



1916
1917
1918
1919
1920
1921
1922
# File 'lib/claude_agent_sdk/types.rb', line 1916

def initialize(uri:, name:, description: nil, mime_type: nil, reader:)
  @uri = uri
  @name = name
  @description = description
  @mime_type = mime_type
  @reader = reader
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



1914
1915
1916
# File 'lib/claude_agent_sdk/types.rb', line 1914

def description
  @description
end

#mime_typeObject

Returns the value of attribute mime_type.



1914
1915
1916
# File 'lib/claude_agent_sdk/types.rb', line 1914

def mime_type
  @mime_type
end

#nameObject

Returns the value of attribute name.



1914
1915
1916
# File 'lib/claude_agent_sdk/types.rb', line 1914

def name
  @name
end

#readerObject

Returns the value of attribute reader.



1914
1915
1916
# File 'lib/claude_agent_sdk/types.rb', line 1914

def reader
  @reader
end

#uriObject

Returns the value of attribute uri.



1914
1915
1916
# File 'lib/claude_agent_sdk/types.rb', line 1914

def uri
  @uri
end