MCPcopy Create free account
hub / github.com/AI45Lab/Code / register_program_with_catalog

Function register_program_with_catalog

core/src/tools/builtin/mod.rs:75–83  ·  view source on GitHub ↗

Register the programmatic tool calling wrapper with a custom catalog.

(
    registry: &Arc<ToolRegistry>,
    catalog: crate::program::ProgramCatalog,
)

Source from the content-addressed store, hash-verified

73
74/// Register the programmatic tool calling wrapper with a custom catalog.
75pub fn register_program_with_catalog(
76 registry: &Arc<ToolRegistry>,
77 catalog: crate::program::ProgramCatalog,
78) {
79 registry.register_builtin(Arc::new(crate::tools::ProgramTool::with_catalog(
80 Arc::clone(registry),
81 catalog,
82 )));
83}
84
85/// Register the task delegation tools (task, parallel_task).
86///

Callers 2

register_programFunction · 0.85

Calls 1

register_builtinMethod · 0.45

Tested by

no test coverage detected