toolNameValidation.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * Tool name validation utilities according to SEP: Specify Format for Tool Names
  3. *
  4. * Tool names SHOULD be between 1 and 128 characters in length (inclusive).
  5. * Tool names are case-sensitive.
  6. * Allowed characters: uppercase and lowercase ASCII letters (A-Z, a-z), digits
  7. * (0-9), underscore (_), dash (-), and dot (.).
  8. * Tool names SHOULD NOT contain spaces, commas, or other special characters.
  9. */
  10. /**
  11. * Validates a tool name according to the SEP specification
  12. * @param name - The tool name to validate
  13. * @returns An object containing validation result and any warnings
  14. */
  15. export declare function validateToolName(name: string): {
  16. isValid: boolean;
  17. warnings: string[];
  18. };
  19. /**
  20. * Issues warnings for non-conforming tool names
  21. * @param name - The tool name that triggered the warnings
  22. * @param warnings - Array of warning messages
  23. */
  24. export declare function issueToolNameWarning(name: string, warnings: string[]): void;
  25. /**
  26. * Validates a tool name and issues warnings for non-conforming names
  27. * @param name - The tool name to validate
  28. * @returns true if the name is valid, false otherwise
  29. */
  30. export declare function validateAndWarnToolName(name: string): boolean;
  31. //# sourceMappingURL=toolNameValidation.d.ts.map