Skip to content

Conversation

noencke
Copy link
Contributor

@noencke noencke commented Sep 13, 2025

This also updates type generation to include node metadata for records and arrays.

@Copilot Copilot AI review requested due to automatic review settings September 13, 2025 00:26
@github-actions github-actions bot added the area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct label Sep 13, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a test case for record node support in the tree-agent package and enhances type generation to include metadata descriptions for record and array node types.

  • Adds a new test scenario that validates record node functionality through a user management use case
  • Updates type generation to apply metadata descriptions to record and array Zod schema types
  • Creates a new domain model for users to support the test case

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/framework/tree-agent/src/typeGeneration.ts Enhanced record and array type generation to include metadata descriptions
packages/framework/tree-agent/src/test/scenarios/addUsers.ts New test scenario for validating record node support with user data
packages/framework/tree-agent/src/test/scenarios/index.ts Export added for the new addUsers test scenario
packages/framework/tree-agent/src/test/integration.spec.ts Integration of the new addUsers test into the test suite
packages/framework/tree-agent/src/test/domains/users.ts New domain model defining User and Users schema classes
packages/framework/tree-agent/src/test/domains/index.ts Export added for the new Users domain model

@github-actions github-actions bot added the base: main PRs targeted against main branch label Sep 13, 2025
@noencke noencke requested review from taylorsw04 and removed request for taylorsw04 September 13, 2025 00:27
treeSchemaMap,
),
)
.describe(simpleNodeSchema.metadata?.description ?? "");
Copy link
Contributor

Choose a reason for hiding this comment

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

Does an empty description result in an empty comment from our TypeScript type generation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope :)

@noencke noencke merged commit 53541f4 into microsoft:main Sep 15, 2025
36 checks passed
@noencke noencke deleted the add-record-test branch September 15, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: framework Framework is a tag for issues involving the developer framework. Eg Aqueduct base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants