Class: CodexSDK::Items::McpToolCall

Inherits:
Data
  • Object
show all
Defined in:
lib/codex_sdk/items.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments

Returns:

  • (Object)

    the current value of arguments



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def arguments
  @arguments
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def id
  @id
end

#resultObject (readonly)

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def result
  @result
end

#serverObject (readonly)

Returns the value of attribute server

Returns:

  • (Object)

    the current value of server



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def server
  @server
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def status
  @status
end

#toolObject (readonly)

Returns the value of attribute tool

Returns:

  • (Object)

    the current value of tool



53
54
55
# File 'lib/codex_sdk/items.rb', line 53

def tool
  @tool
end

Class Method Details

.from_json(data) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
# File 'lib/codex_sdk/items.rb', line 54

def self.from_json(data)
  new(
    id: data["id"],
    server: data["server"].to_s,
    tool: data["tool"].to_s,
    arguments: data["arguments"],
    result: data["result"],
    error: data["error"],
    status: data["status"].to_s
  )
end