Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(codersdk/toolsdk): ensure all tools include required fields of aisdk.Schema#17632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 1 commit intomainfromcj/toolsdk-required-fields
May 1, 2025

Conversation

johnstcn
Copy link
Member

No description provided.

@johnstcnjohnstcn self-assigned thisMay 1, 2025
Copy link
Contributor

@CopilotCopilotAI 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 validation tests for the AISDK Schema in all tools and ensures that each tool’s schema includes the required "Properties" and "Required" fields.

  • Added a new test (TestToolSchemaFields) in toolsdk_test.go to validate that all tools have non-nil Schema.Properties and Schema.Required, and that each required field has a corresponding property.
  • Updated toolsdk.go for the ListWorkspaces and DeleteTemplate tools to include or enforce the Required fields as part of the tool schema.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

FileDescription
codersdk/toolsdk/toolsdk_test.goAdded tests to verify that each tool contains the required Schema fields.
codersdk/toolsdk/toolsdk.goUpdated tool definitions to include the "Required" field in the schema.

@johnstcnjohnstcnenabled auto-merge (squash)May 1, 2025 12:16
@johnstcnjohnstcn merged commit4ac71e9 intomainMay 1, 2025
31 checks passed
@johnstcnjohnstcn deleted the cj/toolsdk-required-fields branchMay 1, 2025 12:19
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 1, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

Copilot code reviewCopilotCopilot left review comments

@ThomasK33ThomasK33ThomasK33 approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@johnstcn@ThomasK33

[8]ページ先頭

©2009-2025 Movatter.jp