-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:Add API endpoints for managing tracer sessions, organizations, and queues #142
Conversation
WalkthroughThe changes in this pull request introduce new API endpoints for managing tracer sessions, organizations, and annotation queues within the LangSmith platform. Key updates include the addition of methods for creating, updating, and deleting tracer sessions and organizations, as well as managing annotation queues and their associated runs. The modifications enhance the overall functionality and management capabilities of these components. Changes
Possibly related PRs
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (6)
src/libs/LangSmith/Generated/LangSmith.DatasetsClient.DatasetHandler.g.cs
is excluded by!**/generated/**
src/libs/LangSmith/Generated/LangSmith.DatasetsClient.StreamDatasetHandler.g.cs
is excluded by!**/generated/**
src/libs/LangSmith/Generated/LangSmith.IDatasetsClient.DatasetHandler.g.cs
is excluded by!**/generated/**
src/libs/LangSmith/Generated/LangSmith.IDatasetsClient.StreamDatasetHandler.g.cs
is excluded by!**/generated/**
src/libs/LangSmith/Generated/LangSmith.Models.OrganizationConfig.g.cs
is excluded by!**/generated/**
src/libs/LangSmith/Generated/LangSmith.Models.PlaygroundRunOverDatasetRequestSchema.g.cs
is excluded by!**/generated/**
📒 Files selected for processing (1)
src/libs/LangSmith/openapi.yaml
(2 hunks)
🔇 Additional comments (1)
src/libs/LangSmith/openapi.yaml (1)
16013-16016
: Verify the feature flag implementation
The new feature flag enable_custom_experiment_names
is well-defined. However, we should ensure proper implementation across the codebase.
✅ Verification successful
Feature flag implementation is properly integrated
The feature flag enable_custom_experiment_names
is correctly implemented:
- It's properly defined in the OpenAPI specification with appropriate default value
- The C# model has been correctly generated with the feature flag as a nullable boolean property
- The flag is positioned logically in the schema alongside other feature flags
- It's related to the
experiment_name
field in theExperimentResultsUpload
schema, which suggests proper integration with the experiment naming functionality
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for references to the new feature flag to ensure proper implementation
# Search for any references to the feature flag in the codebase
rg -l "enable_custom_experiment_names"
# Check for any conditional logic related to experiment names
ast-grep --pattern 'experiment_name'
Length of output: 304
Script:
#!/bin/bash
# Let's examine the context around the experiment_name references and the generated C# model
# Check the context around experiment_name in the OpenAPI spec
rg -A 5 -B 5 "experiment_name" src/libs/LangSmith/openapi.yaml
# Check the generated C# model for the feature flag implementation
cat src/libs/LangSmith/Generated/LangSmith.Models.OrganizationConfig.g.cs
Length of output: 11247
@@ -16447,6 +16451,7 @@ components: | |||
- manifest | |||
- secrets | |||
- options | |||
- project_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Document the new required fields
The addition of project_name
and dataset_id
as required fields may impact existing API clients. Please ensure these fields are properly documented with:
- Field descriptions
- Format requirements
- Example values
- manifest
- secrets
- options
- project_name
- dataset_id
type: object
properties:
+ project_name:
+ type: string
+ description: "The unique identifier of the project"
+ example: "my-project-123"
+ dataset_id:
+ type: string
+ description: "The unique identifier of the associated dataset"
+ example: "dataset-456"
Committable suggestion skipped: line range outside the PR's diff.
Summary by CodeRabbit