Consolidate versioned source evidence across investigation results
This commit is contained in:
1 parent
8fe286e6c5
commit
0246feda61
10 files changed
+412
-28
No files matched your search
@@ -9,7 +9,7 @@ PROMPT_VERSION="investigation_v1"
|
||||
def output_schema(context=None):
|
||||
name = "investigation-project-output-v1.schema.json" if context and "x-project-bindings" in context["tool_schema"] else "investigation-output-v1.schema.json"
|
||||
schema=json.loads(files("viano_bug_analysis.schemas").joinpath(name).read_text())
|
||||
if context and context.get("prompt_version") in {"investigation_v2","investigation_project_v3","investigation_v3","investigation_project_v4","investigation_project_v5"}:
|
||||
if context and context.get("prompt_version") in {"investigation_v2","investigation_project_v3","investigation_v3","investigation_project_v4","investigation_project_v5","investigation_project_v6"}:
|
||||
schema["properties"]["next"]["oneOf"].extend(json.loads(files("viano_bug_analysis.schemas").joinpath("investigation-early-actions-v1.schema.json").read_text())["oneOf"])
|
||||
return schema
|
||||
|
||||
@@ -17,14 +17,18 @@ def output_schema(context=None):
|
||||
def build_prompt(context):
|
||||
schema=output_schema(context)
|
||||
version = "investigation_project_v1" if "x-project-bindings" in context["tool_schema"] else PROMPT_VERSION
|
||||
if context.get('prompt_version') in {'investigation_project_v2','investigation_project_v3','investigation_project_v4','investigation_project_v5'}:
|
||||
if context.get('prompt_version') in {'investigation_project_v2','investigation_project_v3','investigation_project_v4','investigation_project_v5','investigation_project_v6'}:
|
||||
from .investigation_view import working_view
|
||||
from .model_context import model_json
|
||||
version = context['prompt_version']
|
||||
visible = working_view(context)
|
||||
if version == 'investigation_project_v5':
|
||||
if version == 'investigation_project_v6':
|
||||
from .investigation_consolidation import consolidated_view
|
||||
visible = consolidated_view(context)
|
||||
elif version == 'investigation_project_v5':
|
||||
from .investigation_view import thin_view
|
||||
visible = thin_view(context)
|
||||
else:
|
||||
visible = working_view(context)
|
||||
encode = model_json
|
||||
else:
|
||||
visible = compact_context(context) if version != PROMPT_VERSION else context
|
||||
|
||||
Reference in new issue
Block a user