Skip to content

BruteCLI

BruteCLI::Providers::ShellResponse

module BruteCLI::Providers
class ShellResponse
end
end

Synthetic completion response returned by Brute::Providers::Shell.

When command is present, the response contains a single assistant message with a “shell” tool call. The agent loop picks it up and executes Brute::Tools::Shell through the normal pipeline.

When command is nil (tool results round-trip), the response contains an empty assistant message with no tool calls, causing the agent loop to exit.

Class Methods

self.new

new(command: nil, model: "bash", tools: [])

Not documented.

Instance Methods

#choices

choices()

Not documented.

#content

content()

Not documented.

#content!

content!()

Not documented.

#input_tokens

input_tokens()

Not documented.

#messages

messages()

Not documented.

Also aliased as: choices

#model

model()

Not documented.

#output_tokens

output_tokens()

Not documented.

#reasoning_content

reasoning_content()

Not documented.

#reasoning_tokens

reasoning_tokens()

Not documented.

#total_tokens

total_tokens()

Not documented.

#usage

usage()

Not documented.

Defined in

  • lib/brute_cli/providers/shell_response.rb