• Validates the existence of all provided entity names across validation services.

    This function accepts enum objects for various entity types (swarms, agents, outlines, advisors, completions, computes, embeddings, MCPs, pipelines, policies, states, storages, tools) and validates that each entity name exists in its respective registry. Validation results are memoized for performance.

    If no arguments are provided (or specific entity types are omitted), the function automatically fetches and validates ALL registered entities from their respective validation services. This is useful for comprehensive validation of the entire setup.

    Use this before running operations to ensure all referenced entities are properly registered and configured.

    Parameters

    • Optionalargs: Partial<Args>

      Partial validation arguments containing entity name enums to validate. If empty or omitted, validates all registered entities.

    Returns void

    If any entity name is not found in its validation service

    // Validate ALL registered entities (swarms, agents, outlines, etc.)
    validate({});
    // Define your entity name enums
    enum SwarmName {
    MY_SWARM = "my-swarm"
    }

    enum AgentName {
    MY_AGENT = "my-agent"
    }

    // Validate specific entities
    validate({
    SwarmName,
    AgentName,
    });
    // Validate specific entity types
    validate({
    CompletionName: { CLAUDE_SONNET: "claude-sonnet-4-5" },
    EmbeddingName: { TEXT_EMBEDDING: "text-embedding-3-small" },
    });