Skip to content

Conversation

mocayo
Copy link
Collaborator

@mocayo mocayo commented Sep 1, 2025

feat/parts: Add multi-part support and update dependencies

What does this PR do?

This pull request introduces updates and features related to multi-part capabilities, along with dependency upgrades and examples for better functionality and usability.


Key Changes:

  1. Bump CozeLoop-AI version to 0.0.7 (94f5558)

    • Updates the CozeLoop-AI library to the latest version to include new features and fixes.
  2. Add Multi-Part Example (fdfc2f6)

    • Introduces a new with-multi-part example showcasing how to handle multi-part functionality.
  3. Multi-Part Variables in Prompt (300fa93)

    • Enables support for multi-part variables in CozeLoop-AI prompt generation.
  4. Upgrade zod dependency (14b255b)

    • Updates zod for improved validation and runtime schema enhancements.

Why are these changes important?

  • Improved Functionality: Multi-part support adds flexibility in use cases where complex prompts or dynamic variables are required.
  • Better Examples: A new example (with-multi-part) serves as a helpful reference for developers to implement multi-part prompts.
  • Dependency Upgrades: Keeping libraries up-to-date ensures compatibility, security, and access to the latest features.

Copy link

codecov bot commented Sep 1, 2025

Codecov Report

❌ Patch coverage is 80.80808% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/cozeloop-ai/src/prompt/utils.ts 84.61% 10 Missing ⚠️
packages/cozeloop-ai/src/prompt/hub.ts 0.00% 9 Missing ⚠️
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   87.00%   88.41%   +1.40%     
==========================================
  Files          57       56       -1     
  Lines        3001     3046      +45     
  Branches      638      666      +28     
==========================================
+ Hits         2611     2693      +82     
+ Misses        387      350      -37     
  Partials        3        3              
Components Coverage Δ
@cozeloop/ai 91.18% <80.80%> (+2.05%) ⬆️
@cozeloop/langchain 82.76% <ø> (ø)
Files with missing lines Coverage Δ
packages/cozeloop-ai/src/api/api-client/utils.ts 88.39% <100.00%> (+33.03%) ⬆️
packages/cozeloop-ai/src/prompt/index.ts 100.00% <ø> (ø)
packages/cozeloop-ai/src/prompt/trace.ts 100.00% <100.00%> (ø)
packages/cozeloop-ai/src/tracer/types/index.ts 100.00% <100.00%> (ø)
packages/cozeloop-ai/src/prompt/hub.ts 45.97% <0.00%> (+1.53%) ⬆️
packages/cozeloop-ai/src/prompt/utils.ts 91.33% <84.61%> (-4.79%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mocayo mocayo merged commit 9d33364 into main Sep 2, 2025
12 checks passed
@mocayo mocayo deleted the feat/parts branch September 2, 2025 03:25
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