Skip to content

Commit 53546da

Browse files
committed
docs(arch): update arch files
1 parent 9a98487 commit 53546da

File tree

4 files changed

+61
-8
lines changed

4 files changed

+61
-8
lines changed

arch.drawio

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<mxfile host="65bd71144e" scale="2" border="0">
22
<diagram id="8_WlqVr0ZAdrVBBNUXE_" name="Page-1">
3-
<mxGraphModel dx="1430" dy="4081" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
3+
<mxGraphModel dx="1127" dy="3224" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
44
<root>
55
<mxCell id="0"/>
66
<mxCell id="1" parent="0"/>
@@ -98,13 +98,13 @@
9898
<mxGeometry x="767" y="90" width="120" height="24" as="geometry"/>
9999
</mxCell>
100100
<mxCell id="92" value="&lt;b&gt;plan&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
101-
<mxGeometry x="735.82" y="206" width="91" height="30" as="geometry"/>
101+
<mxGeometry x="709.82" y="208" width="91" height="30" as="geometry"/>
102102
</mxCell>
103103
<mxCell id="93" value="&lt;b&gt;process&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
104-
<mxGeometry x="862.64" y="206" width="91" height="30" as="geometry"/>
104+
<mxGeometry x="811.82" y="208" width="91" height="30" as="geometry"/>
105105
</mxCell>
106106
<mxCell id="94" value="&lt;b&gt;task&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
107-
<mxGeometry x="989.82" y="206" width="91" height="30" as="geometry"/>
107+
<mxGeometry x="913.82" y="208" width="91" height="30" as="geometry"/>
108108
</mxCell>
109109
<mxCell id="95" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#4B6464;strokeColor=none;" parent="1" vertex="1">
110110
<mxGeometry x="494.57" y="646" width="827.5" height="150" as="geometry"/>
@@ -119,10 +119,10 @@
119119
<mxGeometry x="862.82" y="706" width="91" height="30" as="geometry"/>
120120
</mxCell>
121121
<mxCell id="101" value="&lt;b&gt;cachex&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
122-
<mxGeometry x="796.82" y="371.75" width="91" height="30" as="geometry"/>
122+
<mxGeometry x="811.82" y="371.75" width="91" height="30" as="geometry"/>
123123
</mxCell>
124124
<mxCell id="102" value="&lt;b&gt;gptcache&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
125-
<mxGeometry x="928.82" y="372.25" width="91" height="30" as="geometry"/>
125+
<mxGeometry x="913.82" y="372.25" width="91" height="30" as="geometry"/>
126126
</mxCell>
127127
<mxCell id="103" value="&lt;b&gt;chroma&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
128128
<mxGeometry x="1030" y="521" width="91" height="30" as="geometry"/>
@@ -139,12 +139,15 @@
139139
<mxCell id="108" value="chat" style="text;html=1;strokeColor=#FFFFFF;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=1;fontStyle=0;fontColor=#FFFFFF;" parent="1" vertex="1">
140140
<mxGeometry x="351" y="757.5" width="81" height="24" as="geometry"/>
141141
</mxCell>
142-
<mxCell id="109" value="&lt;b&gt;long-term&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" vertex="1" parent="1">
142+
<mxCell id="109" value="&lt;b&gt;longterm&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
143143
<mxGeometry x="601.04" y="538" width="91" height="30" as="geometry"/>
144144
</mxCell>
145-
<mxCell id="110" value="&lt;b&gt;short-term&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" vertex="1" parent="1">
145+
<mxCell id="110" value="&lt;b&gt;shortterm&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" parent="1" vertex="1">
146146
<mxGeometry x="707.11" y="538" width="91" height="30" as="geometry"/>
147147
</mxCell>
148+
<mxCell id="111" value="&lt;b&gt;prompt&lt;/b&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontColor=#FFFFFF;" vertex="1" parent="1">
149+
<mxGeometry x="1015.82" y="208" width="91" height="30" as="geometry"/>
150+
</mxCell>
148151
</root>
149152
</mxGraphModel>
150153
</diagram>

arch.png

1.5 KB
Loading

prompt/prompt.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package prompt
2+
3+
import (
4+
"context"
5+
)
6+
7+
type Prompt interface {
8+
Init(context.Context) error
9+
Deinit(context.Context) error
10+
Run(context.Context) error
11+
}
12+
13+
type Config struct{}
14+
15+
type prompt struct {
16+
cfg *Config
17+
}
18+
19+
func New(_ context.Context, cfg *Config) Prompt {
20+
return &prompt{
21+
cfg: cfg,
22+
}
23+
}
24+
25+
func DefaultConfig() *Config {
26+
return &Config{}
27+
}
28+
29+
func (p *prompt) Init(ctx context.Context) error {
30+
return nil
31+
}
32+
33+
func (p *prompt) Deinit(ctx context.Context) error {
34+
return nil
35+
}
36+
37+
func (p *prompt) Run(ctx context.Context) error {
38+
return nil
39+
}

prompt/prompt_test.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package prompt
2+
3+
import (
4+
"testing"
5+
6+
"github.com/stretchr/testify/assert"
7+
)
8+
9+
func TestPrompt(t *testing.T) {
10+
assert.Equal(t, nil, nil)
11+
}

0 commit comments

Comments
 (0)