- Resources
- Best Practices
Resources
Best Practices
Guidelines for optimal usage of the CoreThink API
1. Function Definitions
- Clear Descriptions: Write detailed descriptions for each function
- Precise Parameters: Define parameter types and descriptions accurately
- Required Fields: Clearly mark which parameters are required
2. Request Optimization
- Be Specific: Provide clear, specific requests to get better function selections
- Include Context: Give enough context for the AI to make informed decisions
- Validate Input: Ensure your function definitions are valid JSON
3. Security
- API Key Management: Store API keys securely and never expose them in client-side code
- Rate Limiting: Implement appropriate rate limiting in your applications
- Error Handling: Always implement proper error handling for API responses
4. Performance
- Function Organization: Group related functions logically
- Request Batching: Use multiple function calls in a single request when appropriate
- Caching: Cache function definitions when possible to reduce request size