Skip to content

Create a new ToolType to remove string literals #339

@jirispilka

Description

@jirispilka
/**
 * Tool type constants
 * Use these constants instead of string literals for better type safety and maintainability.
 */
export const ToolType = {
    INTERNAL: 'internal',
    ACTOR: 'actor',
    ACTOR_MCP: 'actor-mcp',
} as const;

/**
 * Type for tool type values.
 */
export type ToolType = typeof ToolType[keyof typeof ToolType];

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-aiIssues owned by the AI team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions