Make step and tool result contracts explicit#2422
Open
chubes4 wants to merge 1 commit into
Open
Conversation
Contributor
Homeboy Results —
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Step::execute()output in the explicitStepExecutionResultcontract before the engine routes it.resultpayloads back intodatain Data Machine tool/runtime result paths.result-first tool payloads.Closes #2410.
Closes #2412.
Tests
php tests/step-base-explicit-result-smoke.php && php tests/step-execution-result-contract-smoke.php && php tests/tool-executor-ability-native-smoke.php && php tests/tool-result-consumer-contract-smoke.php && php tests/ability-result-wp-error-smoke.phpvendor/bin/phpcs inc/Core/Steps/Step.php inc/Core/AbilityResult.php inc/Engine/AI/Tools/Execution/ToolExecutionCore.php inc/Engine/AI/Tools/ToolResultFinder.php inc/Engine/AI/ConversationManager.php inc/Engine/AI/DataMachineCompletionAssertions.php inc/Engine/AI/conversation-loop.php tests/step-base-explicit-result-smoke.php tests/tool-executor-ability-native-smoke.php tests/tool-result-consumer-contract-smoke.php tests/ability-result-wp-error-smoke.php tests/Unit/Core/Steps/AI/AIStepTest.php tests/Unit/Core/Steps/Upsert/UpsertStepTest.php tests/Unit/Engine/AI/Tools/ToolResultFinderTest.phphomeboy test --path "/Users/chubes/Developer/data-machine@fix-result-step-contracts-2410-2412" --changed-since HEAD~1(1222 passed, 3 skipped)AI assistance