struct

Autobot::Tools::ToolResult

Inherits Struct < Value < Object

Result of a tool execution with explicit success/error status

Constructors

access_denied(message : String) : ToolResult
Source
error(message : String) : ToolResult
Source
new(status : Status, content : String)
Source
success(content : String) : ToolResult
Source

Instance methods

access_denied?
Source
content
Source
error?
Source
status
Source
success?
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source

Nested types