Function adaptToolsToMap

  • Converts any supported tool input into a named tool map.

    Later helpers such as agent() / agency() use this to safely merge tool inputs that may arrive as records, Map registries, or prompt-only schemas. The returned map always contains executable ITool instances keyed by tool name.

    Parameters

    Returns ToolDefinitionMap

    A name-keyed tool map. Returns {} when no tools are supplied.