mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 17:57:49 +02:00
fix(js): Add afterSeconds run arg
This commit is contained in:
@@ -677,6 +677,7 @@ export class RunsClient extends BaseClient {
|
||||
multitask_strategy: payload?.multitaskStrategy,
|
||||
on_completion: payload?.onCompletion,
|
||||
on_disconnect: payload?.onDisconnect,
|
||||
after_seconds: payload?.afterSeconds,
|
||||
};
|
||||
|
||||
const endpoint =
|
||||
@@ -755,6 +756,7 @@ export class RunsClient extends BaseClient {
|
||||
webhook: payload?.webhook,
|
||||
checkpoint_id: payload?.checkpointId,
|
||||
multitask_strategy: payload?.multitaskStrategy,
|
||||
after_seconds: payload?.afterSeconds,
|
||||
};
|
||||
return this.fetch<Run>(`/threads/${threadId}/runs`, {
|
||||
method: "POST",
|
||||
@@ -823,6 +825,7 @@ export class RunsClient extends BaseClient {
|
||||
multitask_strategy: payload?.multitaskStrategy,
|
||||
on_completion: payload?.onCompletion,
|
||||
on_disconnect: payload?.onDisconnect,
|
||||
after_seconds: payload?.afterSeconds,
|
||||
};
|
||||
const endpoint =
|
||||
threadId == null ? `/runs/wait` : `/threads/${threadId}/runs/wait`;
|
||||
|
||||
@@ -84,6 +84,12 @@ interface RunsInvokePayload {
|
||||
* - "continue": Continue the run.
|
||||
*/
|
||||
onDisconnect?: DisconnectMode;
|
||||
|
||||
/**
|
||||
* The number of seconds to wait before starting the run.
|
||||
* Use to schedule future runs.
|
||||
*/
|
||||
afterSeconds?: number;
|
||||
}
|
||||
|
||||
export interface RunsStreamPayload extends RunsInvokePayload {
|
||||
|
||||
Reference in New Issue
Block a user