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:
@@ -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 & {
|
||||
|
||||
Reference in New Issue
Block a user