Repository navigation
feat: store prompt in agent runner step result - #1456
Merged
Merged
Conversation
Store the expanded prompt in the step result so it can be accessed via steps[N].prompt in subsequent steps and expressions.
There was a problem hiding this comment.
Pull request overview
Stores the expanded agent prompt into each agent step’s recorded result so the prompt is accessible from the step results (e.g., steps[N].prompt), and updates the agent runner unit test to assert this behavior.
Changes:
- Add an
agentStorePromptKeyconstant and recordparsed.Promptinto the step result map during agent runner execution. - Extend
TestAgentRunnerRunto assert the prompt is present and correct in the operator store’s latest step result.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| agent.go | Records the expanded prompt alongside the agent response in the step result store. |
| agent_test.go | Adds assertions verifying the stored prompt value is present and correct. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This comment has been minimized.
This comment has been minimized.
Contributor
BenchmarkManyRunbooks-4
Metadata
BenchmarkOpenAPI3-4
Metadata
BenchmarkSingleRunbook-4
Metadata
Reported by octocov |
This comment has been minimized.
This comment has been minimized.
Contributor
Code Metrics Report
Details | | main (9bee5f8) | #1456 (5293900) | +/- |
|---------------------|----------------|-----------------|------|
| Coverage | 59.8% | 59.8% | 0.0% |
| Files | 85 | 85 | 0 |
| Lines | 9832 | 9832 | 0 |
| Covered | 5886 | 5886 | 0 |
+ | Code to Test Ratio | 1:0.8 | 1:0.8 | +0.0 |
| Code | 18453 | 18455 | +2 |
+ | Test | 15351 | 15358 | +7 |
+ | Test Execution Time | 7m45s | 7m43s | -2s |Code coverage of files in pull request scope (85.0% → 85.0%)
Reported by octocov |
Merged
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
steps[N].prompt