workflows
workflows ¶
ScriptAnalysisError ¶
ScriptAnalysisError(
message: str | None = None,
exception: Exception | None = None,
entity_id: str | None = None,
entity_name: str | None = None,
function_name: str | None = None,
parent_class: str | None = None,
status: int | None = None,
domo_instance: str | None = None,
is_warning: bool = False,
additional_context: dict[str, Any] | None = None,
)
Bases: DomoError
The script analyzer graph failed while analysing a script.
Raised with the original exception chained as __cause__, so a failure in any
graph node reaches the caller instead of being replaced by a different result.
Source code in src/crew_dcs/base/exceptions.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
analyze_python_script ¶
analyze_python_script(script: str) -> dict[str, Any]
Analyze a Python script and return Magic ETL tile recommendations.
Runs the LangGraph pipeline (code analysis, pattern matching, recommendations). There is no fallback: a failure in the graph is raised, not replaced by a different result shape.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
script
|
str
|
Python source text to analyse. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The final graph state, including |
dict[str, Any]
|
|
Raises:
| Type | Description |
|---|---|
ScriptAnalysisError
|
If the graph raises while analysing the script. |
Source code in src/crew_dcs/integrations/agents/script_analyzer/workflows.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | |