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