Skip to content

Commit c47d6f5

Browse files
committed
docs
1 parent 4eead8e commit c47d6f5

File tree

1 file changed

+25
-24
lines changed

1 file changed

+25
-24
lines changed

docs/protocol.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -506,23 +506,24 @@ interface ChatContentReceivedParams {
506506
* Different types of content that can be received from the LLM
507507
*/
508508
type ChatContent =
509-
| TextContent
510-
| URLContent
511-
| ProgressContent
512-
| UsageContent
513-
| ReasonStartedContent
514-
| ReasonTextContent
515-
| ReasonFinishedContent
516-
| ToolCallPrepareContent
517-
| ToolCallRunContent
518-
| ToolCallRunningContent
519-
| ToolCalledContent
520-
| ToolCallRejectedContent;
509+
| ChatTextContent
510+
| ChatURLContent
511+
| ChatProgressContent
512+
| ChatUsageContent
513+
| ChatReasonStartedContent
514+
| ChatReasonTextContent
515+
| ChatReasonFinishedContent
516+
| ChatToolCallPrepareContent
517+
| ChatToolCallRunContent
518+
| ChatToolCallRunningContent
519+
| ChatToolCalledContent
520+
| ChatToolCallRejectedContent
521+
| ChatMetadataContent;
521522

522523
/**
523524
* Simple text message from the LLM
524525
*/
525-
interface TextContent {
526+
interface ChatTextContent {
526527
type: 'text';
527528
/**
528529
* The text content
@@ -534,7 +535,7 @@ interface TextContent {
534535
* Progress messages about the chat.
535536
* Usually to mark what eca is doing/waiting or tell it finished processing messages.
536537
*/
537-
interface ProgressContent {
538+
interface ChatProgressContent {
538539
type: 'progress';
539540

540541
/**
@@ -552,7 +553,7 @@ interface ProgressContent {
552553
* A reason started from the LLM
553554
*
554555
*/
555-
interface ReasonStartedContent {
556+
interface ChatReasonStartedContent {
556557
type: 'reasonStarted';
557558

558559
/**
@@ -565,7 +566,7 @@ interface ReasonStartedContent {
565566
* A reason text from the LLM
566567
*
567568
*/
568-
interface ReasonTextContent {
569+
interface ChatReasonTextContent {
569570
type: 'reasonText';
570571

571572
/**
@@ -583,7 +584,7 @@ interface ReasonTextContent {
583584
* A reason finished from the LLM
584585
*
585586
*/
586-
interface ReasonFinishedContent {
587+
interface ChatReasonFinishedContent {
587588
type: 'reasonFinished';
588589

589590
/**
@@ -600,7 +601,7 @@ interface ReasonFinishedContent {
600601
/**
601602
* URL content message from the LLM
602603
*/
603-
interface URLContent {
604+
interface ChatURLContent {
604605
type: 'url';
605606

606607
/**
@@ -617,7 +618,7 @@ interface URLContent {
617618
/**
618619
* Details about the chat's usage, like used tokens and costs.
619620
*/
620-
interface UsageContent {
621+
interface ChatUsageContent {
621622
type: 'usage';
622623

623624
/**
@@ -655,7 +656,7 @@ interface UsageContent {
655656
* This will be sent multiple times for same tool id for each time LLM outputs
656657
* a part of the arg, so clients should append the arguments to UI.
657658
*/
658-
interface ToolCallPrepareContent {
659+
interface ChatToolCallPrepareContent {
659660
type: 'toolCallPrepare';
660661

661662
origin: ToolCallOrigin;
@@ -691,7 +692,7 @@ interface ToolCallPrepareContent {
691692
/**
692693
* Tool call that LLM will run, sent once per id.
693694
*/
694-
interface ToolCallRunContent {
695+
interface ChatToolCallRunContent {
695696
type: 'toolCallRun';
696697

697698
origin: ToolCallOrigin;
@@ -732,7 +733,7 @@ interface ToolCallRunContent {
732733
/**
733734
* Tool call that server is running to report to LLM later, sent once per id.
734735
*/
735-
interface ToolCallRunningContent {
736+
interface ChatToolCallRunningContent {
736737
type: 'toolCallRunning';
737738

738739
origin: ToolCallOrigin;
@@ -768,7 +769,7 @@ interface ToolCallRunningContent {
768769
/**
769770
* Tool call result that LLM trigerred and was executed already, sent once per id.
770771
*/
771-
interface ToolCalledContent {
772+
interface ChatToolCalledContent {
772773
type: 'toolCalled';
773774

774775
origin: ToolCallOrigin;
@@ -829,7 +830,7 @@ interface ToolCalledContent {
829830
/**
830831
* Tool call rejected, sent once per id.
831832
*/
832-
interface ToolCallRejectedContent {
833+
interface ChatToolCallRejectedContent {
833834
type: 'toolCallRejected';
834835

835836
origin: ToolCallOrigin;

0 commit comments

Comments
 (0)