Example: Multi-Task Agent¶
Build an advanced agent handling multiple tasks simultaneously.
Overview¶
Create an agent that: - Classifies text AND predicts sentiment score - Extracts entities while categorizing - Handles multiple outputs
Configuration¶
agent:
type: multi_task
tasks:
- name: classification
type: classification
target: category
- name: sentiment
type: regression
target: sentiment_score
Training¶
Multi-task learning helps agents learn shared representations.
Benefits: - Better generalization - Faster learning with limited data - More robust predictions