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.



1886
1887
1888
1889
1890
1891
1892
# File 'lib/claude_agent_sdk/types.rb', line 1886

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.



1884
1885
1886
# File 'lib/claude_agent_sdk/types.rb', line 1884

def description
  @description
end

#mime_typeObject

Returns the value of attribute mime_type.



1884
1885
1886
# File 'lib/claude_agent_sdk/types.rb', line 1884

def mime_type
  @mime_type
end

#nameObject

Returns the value of attribute name.



1884
1885
1886
# File 'lib/claude_agent_sdk/types.rb', line 1884

def name
  @name
end

#readerObject

Returns the value of attribute reader.



1884
1885
1886
# File 'lib/claude_agent_sdk/types.rb', line 1884

def reader
  @reader
end

#uriObject

Returns the value of attribute uri.



1884
1885
1886
# File 'lib/claude_agent_sdk/types.rb', line 1884

def uri
  @uri
end