feat(agents-api): Add some workflow tests #456
Merged
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.
Signed-off-by: Diwank Tomer [email protected]
Summary:
Added workflow tests and modified transition handling to update execution status in the agents API.
Key points:
UpdateExecutionRequest
import fromagents-api/agents_api/activities/task_steps/__init__.py
.print
withactivity.heartbeat
intransition_step
function inagents-api/agents_api/activities/task_steps/__init__.py
.create_execution_transition
inagents-api/agents_api/models/execution/create_execution_transition.py
to update execution status.transition_to_execution_status
mapping inagents-api/agents_api/models/execution/create_execution_transition.py
.task
totask: TaskSpecDef
inExecutionInput
class inagents-api/agents_api/common/protocol/tasks.py
.agents-api/tests/test_execution_queries.py
andagents-api/tests/test_task_routes.py
.Generated with ❤️ by ellipsis.dev