Skip to content

Commit e6a6e7f

Browse files
committed
protocol
1 parent 88cef45 commit e6a6e7f

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

docs/protocol.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ type ChatContent =
515515
| ChatReasonStartedContent
516516
| ChatReasonTextContent
517517
| ChatReasonFinishedContent
518+
| ChatHookActionStartedContent
519+
| ChatHookActionFinishedContent
518520
| ChatToolCallPrepareContent
519521
| ChatToolCallRunContent
520522
| ChatToolCallRunningContent
@@ -600,6 +602,67 @@ interface ChatReasonFinishedContent {
600602
totalTimeMs: number;
601603
}
602604

605+
/**
606+
* A hook action started to run
607+
*
608+
*/
609+
interface ChatHookActionStartedContent {
610+
type: 'hookActionStarted';
611+
612+
/**
613+
* The id of this hook
614+
*/
615+
id: string;
616+
617+
/**
618+
* The name of this hook
619+
*/
620+
name: string;
621+
622+
/**
623+
* The type of this hook action
624+
*/
625+
actionType: 'shell';
626+
}
627+
628+
/**
629+
* A hook action finished
630+
*
631+
*/
632+
interface ChatHookActionFinishedContent {
633+
type: 'hookActionFinished';
634+
635+
/**
636+
* The id of this hook
637+
*/
638+
id: string;
639+
640+
/**
641+
* The name of this hook
642+
*/
643+
name: string;
644+
645+
/**
646+
* The type of this hook action
647+
*/
648+
actionType: 'shell';
649+
650+
/**
651+
* The status code of this hook
652+
*/
653+
status: number;
654+
655+
/**
656+
* The output of this hook if any
657+
*/
658+
output?: string;
659+
660+
/**
661+
* The error of this hook if any
662+
*/
663+
error?: string;
664+
}
665+
603666
/**
604667
* URL content message from the LLM
605668
*/

0 commit comments

Comments
 (0)