MCPcopy Index your code
hub / github.com/AI45Lab/Code / success

Method success

core/src/tools/mod.rs:179–188  ·  view source on GitHub ↗
(name: &str, output: String)

Source from the content-addressed store, hash-verified

177
178impl ToolResult {
179 pub fn success(name: &str, output: String) -> Self {
180 Self {
181 name: name.to_string(),
182 output,
183 exit_code: 0,
184 metadata: None,
185 images: Vec::new(),
186 error_kind: None,
187 }
188 }
189
190 pub fn error(name: &str, message: String) -> Self {
191 Self {

Callers 8

is_git_availableFunction · 0.45
is_git_repoFunction · 0.45
install_git_macosFunction · 0.45
install_git_linuxFunction · 0.45
install_git_windowsFunction · 0.45
download_with_curlFunction · 0.45
run_gitFunction · 0.45
run_git_commandMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected