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.



363
364
365
366
367
368
369
# File 'lib/claude_agent_sdk/types.rb', line 363

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.



361
362
363
# File 'lib/claude_agent_sdk/types.rb', line 361

def description
  @description
end

#mime_typeObject

Returns the value of attribute mime_type.



361
362
363
# File 'lib/claude_agent_sdk/types.rb', line 361

def mime_type
  @mime_type
end

#nameObject

Returns the value of attribute name.



361
362
363
# File 'lib/claude_agent_sdk/types.rb', line 361

def name
  @name
end

#readerObject

Returns the value of attribute reader.



361
362
363
# File 'lib/claude_agent_sdk/types.rb', line 361

def reader
  @reader
end

#uriObject

Returns the value of attribute uri.



361
362
363
# File 'lib/claude_agent_sdk/types.rb', line 361

def uri
  @uri
end