diff --git a/docs/docs/cloud/reference/api/openapi.json b/docs/docs/cloud/reference/api/openapi.json index 90ab47431..bd1f326a4 100644 --- a/docs/docs/cloud/reference/api/openapi.json +++ b/docs/docs/cloud/reference/api/openapi.json @@ -2601,8 +2601,7 @@ "description": "Configuration to use for the graph. Useful when graph is configurable and you want to update the assistant's configuration." }, "metadata": { - "type": "object", - "title": "Metadata", + "type": "object", "title": "Metadata", "description": "Metadata to merge with existing assistant metadata." }, "name": { @@ -2708,6 +2707,13 @@ "title": "Schedule", "description": "The cron schedule to execute this job on." }, + "end_time": { + "type": "string", + "format": "date-time", + "title": "End Time", + "description": "The end date to stop running the cron." + }, + "assistant_id": { "anyOf": [ { @@ -2814,6 +2820,18 @@ "description": "The number of results to skip.", "default": 0, "minimum": 0 + }, + "sort_by": { + "type": "string", + "enum": ["cron_id", "assistant_id", "thread_id", "next_run_date", "end_time", "created_at", "updated_at"], + "title": "Sort By", + "description": "The field to sort by." + }, + "sort_order": { + "type": "string", + "enum": ["asc", "desc"], + "title": "Sort Order", + "description": "The order to sort by." } }, "type": "object", diff --git a/libs/sdk-js/src/schema.ts b/libs/sdk-js/src/schema.ts index 7ce1d097d..877cc7a18 100644 --- a/libs/sdk-js/src/schema.ts +++ b/libs/sdk-js/src/schema.ts @@ -178,6 +178,9 @@ export interface Cron { /** The ID of the cron */ cron_id: string; + /** The ID of the assistant */ + assistant_id: string; + /** The ID of the thread */ thread_id: Optional; @@ -195,6 +198,15 @@ export interface Cron { /** The run payload to use for creating new run. */ payload: Record; + + /** The user ID of the cron */ + user_id: Optional; + + /** The next run date of the cron */ + next_run_date: Optional; + + /** The metadata of the cron */ + metadata: Record; } export type DefaultValues = Record[] | Record; diff --git a/libs/sdk-py/langgraph_sdk/schema.py b/libs/sdk-py/langgraph_sdk/schema.py index 0f15e6a1c..9ad1c5b8b 100644 --- a/libs/sdk-py/langgraph_sdk/schema.py +++ b/libs/sdk-py/langgraph_sdk/schema.py @@ -319,6 +319,8 @@ class Cron(TypedDict): cron_id: str """The ID of the cron.""" + assistant_id: str + """The ID of the assistant.""" thread_id: str | None """The ID of the thread.""" end_time: datetime | None @@ -331,6 +333,12 @@ class Cron(TypedDict): """The last time the cron was updated.""" payload: dict """The run payload to use for creating new run.""" + user_id: str | None + """The user ID of the cron.""" + next_run_date: datetime | None + """The next run date of the cron.""" + metadata: dict + """The metadata of the cron.""" class RunCreate(TypedDict):