mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
parent
d0d1d8edca
commit
9600ded922
6 changed files with 79 additions and 133 deletions
|
|
@ -81,7 +81,7 @@ interface AgentSession {
|
|||
followUp(text: string): Promise<void>;
|
||||
|
||||
// Subscribe to events (returns unsubscribe function)
|
||||
subscribe(listener: (event: AgentSessionEvent) => void | Promise<void>): () => void;
|
||||
subscribe(listener: (event: AgentSessionEvent) => void): () => void;
|
||||
|
||||
// Session info
|
||||
sessionFile: string | undefined;
|
||||
|
|
@ -191,7 +191,7 @@ interface PromptOptions {
|
|||
images?: ImageContent[];
|
||||
streamingBehavior?: "steer" | "followUp";
|
||||
source?: InputSource;
|
||||
preflightResult?: (success: boolean) => void | Promise<void>;
|
||||
preflightResult?: (success: boolean) => void;
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue