Intent Router Agent¶
osa_tool.osa_agent.agents.intent_router.agent
¶
IntentRouterAgent
¶
Bases: BaseAgent
Agent responsible for intent and task scope detection.
The IntentRouterAgent: - determines the user's intent and task scope using an LLM - requests clarification if the intent confidence is low - updates the workflow state accordingly
run(state)
¶
Route the user's request to the appropriate workflow path.
This method: 1. Handles user clarification if the system is waiting for input 2. Uses an LLM to detect intent and task scope 3. Updates state status based on confidence score 4. Decides whether to continue analysis or wait for user input
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
state
|
OSAState
|
Current workflow state. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
OSAState |
OSAState
|
Updated state with detected intent and routing status. |