Working JS QuickStart for Completions and Poem/File Agent #134
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.
This pull request includes a new product information document for the TrailMaster X4 Tent and updates to the JavaScript quickstart project. The updates include dependency upgrades, code improvements for better readability and maintainability, and the addition of helper functions to streamline message handling.
New Product Information Document:
product_info_1.mdcontaining specifications, setup instructions, maintenance tips, warranty details, reviews, and FAQs for the TrailMaster X4 Tent.Dependency Updates:
package.jsonandpackage-lock.json:@azure/ai-agentsupgraded from1.0.0-beta.1to1.0.0-beta.2. [1] [2]@azure/ai-projectsupgraded from1.0.0-beta.6to1.0.0-beta.7. [1] [2]@azure/identityupgraded from^4.9.1to^4.10.0.openaiupgraded from4.99.0to4.100.0.Code Improvements:
runAgentsfunction by replacing inline loops for filtering assistant messages with a reusable helper functiongetAssistantMessage. [1] [2]chatCompletionfunction by adding a newline to the poem output header.runAgents.New Helper Function:
getAssistantMessageto streamline the process of extracting the assistant's message from message iterators.Minor Adjustments:
product_info_1.mdto ensure compatibility across environments.