Skip to content

Conversation

@ashishrp-aws
Copy link
Contributor

Problem

Execute bash tool is added but is not hooked to the Q Agentic chat yet.

Solution

Adding execute bash tool setup in Q Agentic chat loop.


  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishrp-aws ashishrp-aws requested review from a team as code owners March 26, 2025 08:31
@github-actions
Copy link

  • This pull request implements a feat or fix, so it must include a changelog entry (unless the fix is for an unreleased feature). Review the changelog guidelines.
    • Note: beta or "experiment" features that have active users should announce fixes in the changelog.
    • If this is not a feature or fix, use an appropriate type from the title guidelines. For example, telemetry-only changes should use the telemetry type.

const lines = result.output.content.split('\n')
const hasFileA = lines.some((line) => line.includes('- ') && line.includes('fileA.txt'))
const hasSubfolder = lines.some((line) => line.includes('d ') && line.includes('subfolder'))
const hasFileA = lines.some((line: string | string[]) => line.includes('- ') && line.includes('fileA.txt'))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, why did you need to change the type here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once i updated output type in tool shared file to accomodate to json type output...this threw failures.

}
} catch (error) {
// Log the error but don't let it crash the process
throw new Error('Error handling output chunk')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For debugging you might want to log the chunk

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will add in followup

@mr-lee mr-lee merged commit 8a75883 into aws:feature/agentic-chat Mar 26, 2025
20 of 22 checks passed
@ashishrp-aws ashishrp-aws deleted the feature/agentic-chat branch March 26, 2025 14:50
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.

2 participants