Complete Migration
This commit is contained in:
22
README.md
22
README.md
@@ -65,7 +65,7 @@ export MODAIC_TOKEN='your-modaic-token'
|
||||
### Basic Agent Usage
|
||||
|
||||
```python
|
||||
from tweet_optimizer_agent import TweetOptimizerAgent, TweetOptimizerConfig
|
||||
from agent.index import TweetOptimizerAgent, TweetOptimizerConfig
|
||||
|
||||
# Create agent with default settings
|
||||
config = TweetOptimizerConfig()
|
||||
@@ -84,12 +84,6 @@ print(f"Score: {results['best_score']:.2f}")
|
||||
print(f"Iterations: {results['iterations_run']}")
|
||||
```
|
||||
|
||||
### Full Optimization Process
|
||||
|
||||
```python
|
||||
|
||||
```
|
||||
|
||||
### Custom Configuration
|
||||
|
||||
```python
|
||||
@@ -124,13 +118,13 @@ agent.push_to_hub(
|
||||
|
||||
#### TweetOptimizerConfig
|
||||
|
||||
| Parameter | Type | Default | Description |
|
||||
|------------------|-----------|----------------------------------------|---------------------------------------------|
|
||||
| `lm` | str | `"openrouter/google/gemini-2.5-flash"` | Language model to use |
|
||||
| `eval_lm` | str | `"openrouter/openai/gpt-5"` | Evaluator language model to use |
|
||||
| `categories` | List[str] | Default evaluation categories | Custom evaluation criteria |
|
||||
| `max_iterations` | int | 10 | Maximum optimization iterations |
|
||||
| `patience` | int | 5 | Stop after N iterations without improvement |
|
||||
|Parameter |Type |Default |Description |
|
||||
|----------------|-----------|----------------------------------------|---------------------------------------------|
|
||||
| lm | str | `"openrouter/google/gemini-2.5-flash"` | Language model to use |
|
||||
| eval_lm | str | `"openrouter/openai/gpt-5"` | Evaluator language model to use |
|
||||
| categories | List[str] | Default evaluation categories | Custom evaluation criteria |
|
||||
| max_iterations | int | 10 | Maximum optimization iterations |
|
||||
| patience | int | 5 | Stop after N iterations without improvement |
|
||||
|
||||
### Default Categories
|
||||
|
||||
|
||||
Reference in New Issue
Block a user