Build reusable bot framework
This commit is contained in:
16
ai/ai_config.json
Normal file
16
ai/ai_config.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"model": "qwen/qwen3-next-80b-a3b-thinking:nitro",
|
||||
"max_tokens": 2048,
|
||||
"json_mode": false,
|
||||
"prompts": {
|
||||
"command_parser": {
|
||||
"system": "You route user messages to one available command module. Return only a JSON object. Never invent a module name.",
|
||||
"user_template": "Available modules:\n{module_context}\n\nConversation context:\n{history_context}\n\nUser message: \"{user_input}\"\nCurrent UTC time: {current_time}\nUser timezone: {timezone}\n\nReturn exactly one JSON object with interaction_type, confidence from 0 to 1, and needs_clarification when the module is unclear."
|
||||
}
|
||||
},
|
||||
"validation": {
|
||||
"max_retries": 3,
|
||||
"timeout_seconds": 15,
|
||||
"confidence_threshold": 0.8
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user