File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments