Skip to content

Conversation

@phartenfeller
Copy link
Member

No description provided.

@phartenfeller phartenfeller merged commit 75f801f into development Feb 4, 2026
2 checks passed
@phartenfeller phartenfeller deleted the multi-agent-workflows branch February 4, 2026 14:30
-- For now, parallel executes sequentially (DBMS_PARALLEL_EXECUTE requires more setup)
-- TODO: Implement true parallel execution
uc_ai_logger.log_warn('Parallel workflow executing sequentially (parallel not yet implemented)', l_scope);
return execute_sequential_workflow(p_agent, p_input_params, p_session_id, p_exec_id);

Check warning

Code scanning / dbLinter

Always make the RETURN statement the last statement of your function. Warning

RETURN is not the last statement in execute_workflow_agent.
);

-- Check if agent wants to handoff
if l_result.has('handoff_decision') then

Check warning

Code scanning / dbLinter

Always use EXIT WHEN instead of an IF statement to exit from a loop. Warning

EXIT without condition in if statement.
if l_result.has('handoff_decision') then
l_handoff_decision := l_result.get_object('handoff_decision');

if not l_handoff_decision.get_boolean('should_handoff') then

Check warning

Code scanning / dbLinter

Always use EXIT WHEN instead of an IF statement to exit from a loop. Warning

EXIT without condition in if statement.
l_handoff_decision := l_result.get_object('handoff_decision');

if not l_handoff_decision.get_boolean('should_handoff') then
exit handoff_loop;

Check warning

Code scanning / dbLinter

Never use unconditional CONTINUE or EXIT in a loop. Warning

Unconditional EXIT statement in loop.

l_handoff_count := l_handoff_count + 1;
else
exit handoff_loop;

Check warning

Code scanning / dbLinter

Never use unconditional CONTINUE or EXIT in a loop. Warning

Unconditional EXIT statement in loop.
return l_result;

else
return p_history;

Check warning

Code scanning / dbLinter

Always make the RETURN statement the last statement of your function. Warning

RETURN is not the last statement in manage_history.
) return sys_refcursor
as
l_scope uc_ai_logger.scope := gc_scope_prefix || 'get_execution_history';
l_exec_history_cur sys_refcursor;

Check warning

Code scanning / dbLinter

Always follow naming conventions for cursor variables. Warning

Cursor variable l_exec_history_cur does not match '(?i)^c_[a-z0-9$#_]+$'.
-- Types
-- ============================================================================

type t_validation_result is record (

Check warning

Code scanning / dbLinter

Always follow naming conventions for record type definitions. Warning

Record type definition t_validation_result does not match '(?i)^r_[a-z0-9$#_]+_type$'.
l_status varchar2(50 char);
l_exec_count number;
l_workflow_def clob;
l_agent_data json;

Check warning

Code scanning / dbLinter

Avoid defining variables that are not used. Warning test

Unused variable l_agent_data.
<<step_loop>>
for i in 0 .. l_steps.get_size - 1 loop
declare
l_step json_object_t := treat(l_steps.get(i) as json_object_t);

Check notice

Code scanning / dbLinter

Avoid initializing variables using functions in the declaration section.

Function call in declare section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant