Nest TODO State in session data (#4361)
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
@@ -279,6 +279,14 @@ export type ExtensionConfig = {
|
||||
type: 'inline_python';
|
||||
};
|
||||
|
||||
/**
|
||||
* Extension data containing all extension states
|
||||
* Keys are in format "extension_name.version" (e.g., "todo.v0")
|
||||
*/
|
||||
export type ExtensionData = {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
|
||||
export type ExtensionEntry = ExtensionConfig & {
|
||||
type?: 'ExtensionEntry';
|
||||
} & {
|
||||
@@ -682,6 +690,7 @@ export type SessionMetadata = {
|
||||
* A short description of the session, typically 3 words or less
|
||||
*/
|
||||
description: string;
|
||||
extension_data?: ExtensionData;
|
||||
/**
|
||||
* The number of input tokens used in the session. Retrieved from the provider's last usage.
|
||||
*/
|
||||
@@ -698,10 +707,6 @@ export type SessionMetadata = {
|
||||
* ID of the schedule that triggered this session, if any
|
||||
*/
|
||||
schedule_id?: string | null;
|
||||
/**
|
||||
* Session-scoped TODO list content
|
||||
*/
|
||||
todo_content?: string | null;
|
||||
/**
|
||||
* The total number of tokens used in the session. Retrieved from the provider's last usage.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user