Class: Datadog::AIGuard::Evaluation::ToolCall

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/ai_guard/evaluation/tool_call.rb

Overview

Tool call class for AI Guard

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argumentsObject (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

#idObject (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_nameObject (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