-
Notifications
You must be signed in to change notification settings - Fork 96
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
fix: use go backend instead of python backend for example functions #1488
base: main
Are you sure you want to change the base?
Conversation
@@ -10,7 +10,7 @@ import { | |||
Example, | |||
ExampleCreate, | |||
ExampleUpdate, | |||
ExampleUpdateWithId, |
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.
Just checking - was this exported publicly?
Also good to preserve naming scheme:
ExampleUpdateWithoutId
preparedCreate.attachments !== undefined | ||
) { | ||
allAttachments[preparedCreate.id] = preparedCreate.attachments; | ||
let preparedCreateParams = |
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.
Is this equivalent to what was there before?
If so, why change?
@@ -2676,113 +2697,164 @@ export class Client implements LangSmithTracingClientInterface { | |||
return result["examples"] as ExampleSearch[]; | |||
} | |||
|
|||
public async createExample(update: ExampleCreate): Promise<Example>; |
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.
Why overload?
await raiseForStatus(response, "create example"); | ||
const result = await response.json(); | ||
return result as Example; | ||
return example; | ||
} | ||
|
||
public async createExamples(props: { |
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.
This one should be an overload:
public async createExamples(props: Example[]);
public async createExamples(props: ...<current signature>)
deprecate the old signatures |
No description provided.