Class: CodexSDK::Items::McpToolCall
- Inherits:
-
Data
- Object
- Data
- CodexSDK::Items::McpToolCall
- Defined in:
- lib/codex_sdk/items.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tool ⇒ Object
readonly
Returns the value of attribute tool.
Class Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def arguments @arguments end |
#error ⇒ Object (readonly)
Returns the value of attribute error
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def id @id end |
#result ⇒ Object (readonly)
Returns the value of attribute result
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def result @result end |
#server ⇒ Object (readonly)
Returns the value of attribute server
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def server @server end |
#status ⇒ Object (readonly)
Returns the value of attribute status
53 54 55 |
# File 'lib/codex_sdk/items.rb', line 53 def status @status end |
#tool ⇒ Object (readonly)
Returns the value of attribute 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 |