GPT-5, GPT-5-mini support

Improvements to model name resolution
Improved instructions for multi-step workflows when continuation is available
Improved instructions for chat tool
Improved preferred model resolution, moved code from registry -> each provider
Updated tests
This commit is contained in:
Fahad
2025-08-08 08:51:34 +05:00
parent 9a4791cb06
commit 1a8ec2e12f
30 changed files with 792 additions and 483 deletions

View File

@@ -390,6 +390,23 @@ class WorkflowTool(BaseTool, BaseWorkflowMixin):
"""Get status for skipped expert analysis. Override for tool-specific status."""
return "skipped_by_tool_design"
def is_continuation_workflow(self, request) -> bool:
"""
Check if this is a continuation workflow that should skip multi-step investigation.
When continuation_id is provided, the workflow typically continues from a previous
conversation and should go directly to expert analysis rather than starting a new
multi-step investigation.
Args:
request: The workflow request object
Returns:
True if this is a continuation that should skip multi-step workflow
"""
continuation_id = self.get_request_continuation_id(request)
return bool(continuation_id)
# Abstract methods that must be implemented by specific workflow tools
# (These are inherited from BaseWorkflowMixin and must be implemented)