From 7a456c4599ae4e3e208e81efa923717f58e5ba96 Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Thu, 11 Jul 2024 15:44:50 -0700 Subject: [PATCH] docs: context API changes (#466) --- apps/docs/components/docs/parameters/context.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/docs/components/docs/parameters/context.tsx b/apps/docs/components/docs/parameters/context.tsx index b9c0cebbf..18eae7c69 100644 --- a/apps/docs/components/docs/parameters/context.tsx +++ b/apps/docs/components/docs/parameters/context.tsx @@ -9,6 +9,12 @@ export const AssistantActionsState: ParametersTableProps = { description: "Switch to a new thread.", required: true, }, + { + name: "getRuntime", + type: "() => AssistantRuntime", + description: "Get the current runtime.", + required: true, + }, ], }; @@ -194,10 +200,16 @@ export const ThreadActionsState: ParametersTableProps = { }, { name: "addToolResult", - type: "(toolCallId: string, result: any) => void", + type: "(options: AddToolResultOptions) => void", required: true, description: "A function to add a tool result.", }, + { + name: "getRuntime", + type: "() => AssistantRuntime", + description: "Get the current runtime.", + required: true, + }, ], };