Skip to content

Conversation

@DanWahlin
Copy link
Contributor

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:

  • Added a detailed markdown file product_info_1.md containing specifications, setup instructions, maintenance tips, warranty details, reviews, and FAQs for the TrailMaster X4 Tent.

Dependency Updates:

  • Updated dependencies in package.json and package-lock.json:
    • @azure/ai-agents upgraded from 1.0.0-beta.1 to 1.0.0-beta.2. [1] [2]
    • @azure/ai-projects upgraded from 1.0.0-beta.6 to 1.0.0-beta.7. [1] [2]
    • @azure/identity upgraded from ^4.9.1 to ^4.10.0.
    • openai upgraded from 4.99.0 to 4.100.0.

Code Improvements:

  • Simplified the runAgents function by replacing inline loops for filtering assistant messages with a reusable helper function getAssistantMessage. [1] [2]
  • Improved logging and readability in the chatCompletion function by adding a newline to the poem output header.
  • Added a listener to log data read from the file stream during file uploads in runAgents.

New Helper Function:

  • Added getAssistantMessage to streamline the process of extracting the assistant's message from message iterators.

Minor Adjustments:

  • Updated file path resolution for product_info_1.md to ensure compatibility across environments.

@sdgilley sdgilley merged commit 0d59081 into azure-ai-foundry:main May 17, 2025
1 of 3 checks passed
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