Class: Validator
Validation utility class
Table of contents
Constructors
Methods
Constructors
constructor
• new Validator(): Validator
Returns
Methods
validateAgentConfig
▸ validateAgentConfig(config): ValidationResult
Validate agent configuration
Parameters
| Name | Type |
|---|---|
config | Partial<AgentConfig> |
Returns
Defined in
packages/agents/src/utils/validation.ts:19
validateUserInput
▸ validateUserInput(input): ValidationResult
Validate user input string
Parameters
| Name | Type |
|---|---|
input | string |
Returns
Defined in
packages/agents/src/utils/validation.ts:83
validateProviderName
▸ validateProviderName(name): ValidationResult
Validate provider name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Defined in
packages/agents/src/utils/validation.ts:109
validateModelName
▸ validateModelName(name): ValidationResult
Validate model name
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Defined in
packages/agents/src/utils/validation.ts:129
validateApiKey
▸ validateApiKey(apiKey, provider?): ValidationResult
Validate API key format (basic check)
Parameters
| Name | Type |
|---|---|
apiKey | string |
provider? | string |