Contributing to the Agent Optimizer SDK
The Agent Optimizer SDK is currently in public preview. Some features, including tests and benchmarks, might be broken or not working as expected. We’re actively working on improving stability and reliability.
This guide will help you get started with contributing to the Agent Optimizer SDK, our tool for optimizing prompts and improving model performance.
Before you start, please review our general Contribution Overview and the Contributor License Agreement (CLA).
Project Structure
The Agent Optimizer is located in the sdks/opik_optimizer
directory. Here’s an overview of the key components:
src/
: Main source codebenchmarks/
: Benchmarking tools and resultsnotebooks/
: Example notebooks and tutorialstests/
: Test filesdocs/
: Additional documentationscripts/
: Utility scriptssetup.py
: Package configurationrequirements.txt
: Python dependencies
Setup
Development Workflow
Testing
We use pytest for testing. When adding new features:
Benchmarking
The benchmarking tools are still in development. Results may vary and some features might not work as expected.
The optimizer includes benchmarking tools to measure performance improvements:
Documentation
When adding new features or making changes:
Code Style
We follow PEP 8 guidelines. Before submitting a PR:
Pull Request Process
Your PR should:
- Have a clear description of the changes
- Include tests for new functionality
- Pass all CI checks
- Follow the project’s coding standards
- Include benchmark results if applicable
Notebooks and Examples
The notebooks/
directory contains examples and tutorials. When adding new features:
Need Help?
If you need help or have questions:
- Open an issue on GitHub
- Join our Comet Chat community
- Check the existing documentation and notebooks
Remember to review our Contributor License Agreement (CLA) before contributing.