Class: Datadog::AIGuard::Evaluation::ToolCall
- Inherits:
-
Object
- Object
- Datadog::AIGuard::Evaluation::ToolCall
- Defined in:
- lib/datadog/ai_guard/evaluation/tool_call.rb
Overview
Tool call class for AI Guard
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#tool_name ⇒ Object
readonly
Returns the value of attribute tool_name.
Instance Method Summary collapse
-
#initialize(tool_name, id:, arguments:) ⇒ ToolCall
constructor
A new instance of ToolCall.
Constructor Details
#initialize(tool_name, id:, arguments:) ⇒ ToolCall
Returns a new instance of ToolCall.
10 11 12 13 14 |
# File 'lib/datadog/ai_guard/evaluation/tool_call.rb', line 10 def initialize(tool_name, id:, arguments:) @tool_name = tool_name @id = id @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
8 9 10 |
# File 'lib/datadog/ai_guard/evaluation/tool_call.rb', line 8 def arguments @arguments end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/datadog/ai_guard/evaluation/tool_call.rb', line 8 def id @id end |
#tool_name ⇒ Object (readonly)
Returns the value of attribute tool_name.
8 9 10 |
# File 'lib/datadog/ai_guard/evaluation/tool_call.rb', line 8 def tool_name @tool_name end |