pub struct HarnessSideTools {Show 14 fields
pub find: Option<FindToolConfig>,
pub run_command: Option<RunCommandToolConfig>,
pub subagents: Option<SubagentsConfig>,
pub user_questions: Option<UserQuestionsConfig>,
pub file_edit: Option<FileEditToolConfig>,
pub view_file: Option<ViewFileToolConfig>,
pub write_to_file: Option<WriteToFileToolConfig>,
pub grep_search: Option<GrepSearchToolConfig>,
pub list_dir: Option<ListDirToolConfig>,
pub permissions: Option<PermissionsConfig>,
pub generate_image: Option<GenerateImageToolConfig>,
pub search_web: Option<SearchWebToolConfig>,
pub read_url_content: Option<ReadUrlContentToolConfig>,
pub tool_search_config: Option<ToolSearchConfig>,
}Expand description
antigravity.localharness.HarnessSideTools
Fields§
§find: Option<FindToolConfig>§run_command: Option<RunCommandToolConfig>§subagents: Option<SubagentsConfig>§user_questions: Option<UserQuestionsConfig>§file_edit: Option<FileEditToolConfig>§view_file: Option<ViewFileToolConfig>§write_to_file: Option<WriteToFileToolConfig>§grep_search: Option<GrepSearchToolConfig>§list_dir: Option<ListDirToolConfig>§permissions: Option<PermissionsConfig>§generate_image: Option<GenerateImageToolConfig>§search_web: Option<SearchWebToolConfig>§read_url_content: Option<ReadUrlContentToolConfig>§tool_search_config: Option<ToolSearchConfig>Implementations§
Source§impl HarnessSideTools
impl HarnessSideTools
Sourcepub fn none() -> Self
pub fn none() -> Self
Nothing enabled — the agent can only talk.
This is what the harness does when the field is absent altogether, and it is rarely what you want: an agent with no tools answers questions about a workspace by explaining that it cannot read it.
Sourcepub fn read_only() -> Self
pub fn read_only() -> Self
Tools that only read state: list, search, find, view, and URL fetch.
This mirrors the default in the reference Python SDK, and is the default
for HarnessOptions. Nothing here writes to the
workspace or runs a command.
Sourcepub fn all() -> Self
pub fn all() -> Self
Everything the harness offers, including shell execution and file writes.
Only reach for this against a workspace you are willing to have modified.
Enabling user_questions also means the harness may block a turn waiting
on an answer — register a
Handlers::on_questions or the
default will cancel it.
Trait Implementations§
Source§impl Clone for HarnessSideTools
impl Clone for HarnessSideTools
Source§fn clone(&self) -> HarnessSideTools
fn clone(&self) -> HarnessSideTools
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more