GT AI OS Community v2.0.33 - Add NVIDIA NIM and Nemotron agents
- Updated python_coding_microproject.csv to use NVIDIA NIM Kimi K2 - Updated kali_linux_shell_simulator.csv to use NVIDIA NIM Kimi K2 - Made more general-purpose (flexible targets, expanded tools) - Added nemotron-mini-agent.csv for fast local inference via Ollama - Added nemotron-agent.csv for advanced reasoning via Ollama - Added wiki page: Projects for NVIDIA NIMs and Nemotron
This commit is contained in:
53
packages/utils/dist/validation.d.ts
vendored
Normal file
53
packages/utils/dist/validation.d.ts
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import { TenantCreateRequest, ChatRequest, DocumentUploadRequest } from '@gt2/types';
|
||||
/**
|
||||
* Validate email format
|
||||
*/
|
||||
export declare function isValidEmail(email: string): boolean;
|
||||
/**
|
||||
* Validate domain name format
|
||||
*/
|
||||
export declare function isValidDomain(domain: string): boolean;
|
||||
/**
|
||||
* Validate password strength
|
||||
*/
|
||||
export declare function isValidPassword(password: string): {
|
||||
valid: boolean;
|
||||
errors: string[];
|
||||
};
|
||||
/**
|
||||
* Validate tenant creation request
|
||||
*/
|
||||
export declare function validateTenantCreateRequest(request: TenantCreateRequest): {
|
||||
valid: boolean;
|
||||
errors: string[];
|
||||
};
|
||||
/**
|
||||
* Validate chat request
|
||||
*/
|
||||
export declare function validateChatRequest(request: ChatRequest): {
|
||||
valid: boolean;
|
||||
errors: string[];
|
||||
};
|
||||
/**
|
||||
* Validate file upload request
|
||||
*/
|
||||
export declare function validateDocumentUpload(request: DocumentUploadRequest): {
|
||||
valid: boolean;
|
||||
errors: string[];
|
||||
};
|
||||
/**
|
||||
* Sanitize string input to prevent injection attacks
|
||||
*/
|
||||
export declare function sanitizeString(input: string): string;
|
||||
/**
|
||||
* Validate UUID format
|
||||
*/
|
||||
export declare function isValidUUID(uuid: string): boolean;
|
||||
/**
|
||||
* Validate pagination parameters
|
||||
*/
|
||||
export declare function validatePagination(page?: number, limit?: number): {
|
||||
page: number;
|
||||
limit: number;
|
||||
errors: string[];
|
||||
};
|
||||
Reference in New Issue
Block a user