@zimtsui/typechat 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,11 @@
1
1
  {{#each declarations}}
2
- <verbatim:declaration name="{{this.name}}">
3
- <verbatim:description>{{this.description}}</verbatim:description>
2
+ <verbatim:declaration name="{{AssertXmlAttr this.name}}">
3
+ <verbatim:description mime-type="text/markdown"><![CDATA[{{{this.description}}}]]></verbatim:description>
4
4
  {{#each this.parameters}}
5
- <verbatim:parameter name="{{this.name}}" mime-type="{{XmlAttr this.mimeType}}" required="{{#if this.required}}true{{else}}false{{/if}}">
6
- <verbatim:description>{{this.description}}</verbatim:description>
5
+ <verbatim:parameter name="{{AssertXmlAttr this.name}}">
6
+ <verbatim:description mime-type="text/markdown"><![CDATA[{{{this.description}}}]]></verbatim:description>
7
+ <verbatim:mime-type>{{XmlBody this.mimeType}}</verbatim:mime-type>
8
+ <verbatim:required>{{#if this.required}}true{{else}}false{{/if}}</verbatim:required>
7
9
  </verbatim:parameter>
8
10
  {{/each}}
9
11
  </verbatim:declaration>
@@ -8,15 +8,19 @@ XML Verbatim Channel is designed to avoid escaping in structured output of large
8
8
 
9
9
  ## Declaration
10
10
 
11
- The system or the user is expected to declare all available XML Verbatim Channels in the form of
11
+ The LLM system/user message is expected to declare all available XML Verbatim Channels in the form of
12
12
 
13
13
  <verbatim:declaration name="NAME_OF_CHANNEL">
14
14
  <verbatim:description>DESCRIPTION_OF_CHANNEL</verbatim:description>
15
- <verbatim:parameter name="NAME_OF_PARAMETER_1" mime-type="MIME_TYPE_OF_PARAMETER" required="WHETHER_PARAMETER_IS_REQUIRED">
15
+ <verbatim:parameter name="NAME_OF_PARAMETER_1">
16
16
  <verbatim:description>DESCRIPTION_OF_PARAMETER</verbatim:description>
17
+ <verbatim:mime-type>MIME_TYPE_OF_PARAMETER</verbatim:mime-type>
18
+ <verbatim:required>WHETHER_PARAMETER_IS_REQUIRED</verbatim:required>
17
19
  </verbatim:parameter>
18
- <verbatim:parameter name="NAME_OF_PARAMETER_2" mime-type="MIME_TYPE_OF_PARAMETER" required="WHETHER_PARAMETER_IS_REQUIRED">
20
+ <verbatim:parameter name="NAME_OF_PARAMETER_2">
19
21
  <verbatim:description>DESCRIPTION_OF_PARAMETER</verbatim:description>
22
+ <verbatim:mime-type>MIME_TYPE_OF_PARAMETER</verbatim:mime-type>
23
+ <verbatim:required>WHETHER_PARAMETER_IS_REQUIRED</verbatim:required>
20
24
  </verbatim:parameter>
21
25
  </verbatim:declaration>
22
26
 
@@ -29,19 +33,26 @@ You can make a request through a channel in the form of
29
33
  <verbatim:parameter name="NAME_OF_PARAMETER_2"><![CDATA[ARGUMENT_OF_PARAMETER]]></verbatim:parameter>
30
34
  </verbatim:request>
31
35
 
36
+ - The only attribute of <verbatim:request> is `name`. Additional attributes will be ignored.
37
+ - The only attribute of <verbatim:parameter> is `name`. Additional attributes will be ignored.
32
38
  - All arguments must be wrapped in CDATA.
33
- - Additional XML attributes are not allowed.
34
39
 
35
40
  ## Response
36
41
 
37
- The user message may contain the response of your request in the form of
42
+ The LLM system/user message may contain the responses of your request in the form of
38
43
 
39
- <verbatim:response name="NAME_OF_CHANNEL" mime-type="MIME_TYPE_OF_RESPONSE"><![CDATA[RESPONSE]]></verbatim:response>
44
+ <verbatim:response name="NAME_OF_CHANNEL"><![CDATA[RESPONSE]]></verbatim:response>
40
45
 
41
46
  Not all requests have a response.
42
47
 
43
48
  ## Quotation
44
49
 
45
- The user message may contain verbatim quotation in the form of
50
+ The LLM system/user message may contain verbatim quotations in the form of
46
51
 
47
- <verbatim:quotation mime-type="MIME_TYPE_OF_TEXT"><![CDATA[QUOTATION]]></verbatim:quotation>
52
+ <verbatim:quotation><![CDATA[QUOTATION]]></verbatim:quotation>
53
+
54
+ ## Meta Message
55
+
56
+ The LLM system/user message may contain meta messages from the agent loop infrastructure in the form of
57
+
58
+ <verbatim:meta></verbatim:meta>