Package org.machanism.machai.ai.tools


package org.machanism.machai.ai.tools
Host-side function tooling for integrating controlled local capabilities with a Genai provider.

This package contains the service-provider interface and concrete tool installers used to expose selected host functionality to AI provider implementations. The tools in this package focus on capabilities that are commonly needed during assisted development workflows, such as command execution, HTTP access, and package-level tool discovery and registration.

Package responsibilities

  • Define the FunctionTools SPI used by tool installers.
  • Discover and apply tool installers through FunctionToolsLoader.
  • Provide host-managed command execution with validation and bounded output capture.
  • Provide HTTP and REST access helpers for web content retrieval and API invocation.
  • Support security-related checks and utility types used by installed tools.

Key types

Usage notes

Tool implementations are executed within the host application rather than by the model itself. As a result, callers should ensure that working directories, network access, configuration values, and security policies are supplied and enforced by the surrounding runtime. Paths are expected to be resolved relative to a host-provided project directory, and configuration placeholders may be resolved through an injected configurator.