anatools.lib.tools module

configure_logging()

Configures logging to output to both file and console.

get_anatools_client()

Initializes and returns a singleton anatools client.

get_workspace_id()

Gets the Workspace ID from the environment.

async run_service(service_id: str, params: dict) str

Runs a local service container using Docker.

Parameters
  • service_id – The ID of the service to run, used to find the Docker image.

  • params – A dictionary of parameters to pass to the service as a JSON string payload. The /ana/data directory is mounted to /data in the container.

Returns

A markdown-formatted string with the execution result or an error.