You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ai): Add form context and custom prompts support
- Add `formContext` parameter to AIFormProvider for global AI context
- Add `formContext` option to useForm AI configuration for form-level overrides
- Implement `systemPrompt` customization for Chrome AI provider
- Support placeholder substitution in custom prompts ({fieldName}, {currentValue}, {formContext}, {fields})
- Pass ChromeAIProvider config to constructor for accessing custom prompt templates
- Update API documentation with new formContext and systemPrompt parameters
- Add comprehensive examples for form context usage in PROVIDERS.md
- Document available placeholders and default prompt behavior
- Enable users to provide contextual information for better AI suggestions
systemPrompt: 'You are a professional recruiter. For field {fieldName} with value "{currentValue}", suggest a professional response. Context: {formContext}. Return only the value.'
0 commit comments