Add inline python extension (#3107)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Douwe Osinga
2025-07-28 02:48:02 +02:00
committed by GitHub
parent 322c1e1416
commit b18213cf01
14 changed files with 308 additions and 12 deletions
+22
View File
@@ -217,6 +217,28 @@ export type ExtensionConfig = {
*/
tools: Array<Tool>;
type: 'frontend';
} | {
/**
* The Python code to execute
*/
code: string;
/**
* Python package dependencies required by this extension
*/
dependencies?: Array<string> | null;
/**
* Description of what the extension does
*/
description?: string | null;
/**
* The name used to identify this extension
*/
name: string;
/**
* Timeout in seconds
*/
timeout?: number | null;
type: 'inline_python';
};
export type ExtensionEntry = ExtensionConfig & {