feat(DATAGO-114389): PR 6: Integration, Examples & Tests #713
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR 6: Integration, Examples & Tests
Overview
This PR adds backend integration (gateway event forwarding), example workflow configurations, and test infrastructure. After this PR, the backend is fully functional and ready for frontend visualization.
Branch Information
pr/workflows-6-integrationpr/workflows-5c-advanced-nodesFiles Changed
Backend Integration
src/solace_agent_mesh/gateway/http_sse/component.pyGateway modifications for workflow event forwarding:
workflow_execution_starteventsworkflow_node_execution_starteventsworkflow_node_execution_resulteventsworkflow_map_progresseventsExample Workflows
examples/agents/all_node_types_workflow.yaml(~1,150 lines)Comprehensive example demonstrating all node types with supporting agents:
examples/agents/jira_bug_triage_workflow.yaml(~570 lines)Real-world example for bug triage workflow:
Unit Tests
tests/unit/workflow/(~1,770 lines total)Behavior-focused unit tests for pure functions:
test_template_resolution.pytest_conditional_evaluation.pytest_dag_logic.pytest_workflow_models.pytest_utils.pytest_agent_caller.pyIntegration Tests
tests/integration/scenarios_programmatic/test_workflow_errors.py(~2,000 lines)Programmatic integration tests for error scenarios and edge cases:
tests/integration/scenarios_declarative/test_data/workflows/*.yaml(~550 lines)Declarative test workflow definitions:
test_simple_two_node_workflow.yamltest_workflow_with_structured_input.yamltest_conditional_workflow_true_branch.yamltest_conditional_workflow_false_branch.yamltest_map_workflow.yamltest_loop_workflow.yamltest_switch_workflow_create_case.yamltest_switch_workflow_default_case.yamlKey Concepts
Event Flow
Example Workflow Structure