Commit 0feb307 1 parent 078155a commit 0feb307 Copy full SHA for 0feb307
File tree 5 files changed +101
-24
lines changed
5 files changed +101
-24
lines changed Original file line number Diff line number Diff line change
1
+ ``` mermaid
2
+
3
+ classDiagram
4
+ class Agent {
5
+ +memory: MemoryStore
6
+ +container: Container
7
+ +model: LanguageModelV1
8
+ +inputs: Record<string, Input>
9
+ +outputs: Record<string, Output>
10
+ +actions: Action[]
11
+ +experts: Record<string, Expert>
12
+ +start()
13
+ +stop()
14
+ +run()
15
+ +send()
16
+ +evaluator()
17
+ }
18
+
19
+ class Context {
20
+ +type: string
21
+ +schema: ZodSchema
22
+ +key: function
23
+ +setup?: function
24
+ +create?: function
25
+ +render?: function
26
+ }
27
+
28
+ class WorkingMemory {
29
+ +inputs: InputRef[]
30
+ +outputs: OutputRef[]
31
+ +thoughts: Thought[]
32
+ +calls: ActionCall[]
33
+ +results: ActionResult[]
34
+ }
35
+
36
+ class Extension {
37
+ +name: string
38
+ +services?: Service[]
39
+ +contexts?: Context[]
40
+ +inputs?: Input[]
41
+ +outputs?: Output[]
42
+ +actions?: Action[]
43
+ +install?: function
44
+ }
45
+
46
+ class Container {
47
+ +register()
48
+ +singleton()
49
+ +instance()
50
+ +resolve()
51
+ +alias()
52
+ }
53
+
54
+ class Action {
55
+ +name: string
56
+ +schema: ZodSchema
57
+ +handler: function
58
+ +memory?: Memory
59
+ +install?: function
60
+ }
61
+
62
+ class Input {
63
+ +type: string
64
+ +schema: ZodSchema
65
+ +handler?: function
66
+ +subscribe?: function
67
+ +format?: function
68
+ }
69
+
70
+ class Output {
71
+ +type: string
72
+ +schema: ZodSchema
73
+ +handler: function
74
+ +format?: function
75
+ }
76
+
77
+ class IChain {
78
+ +chainId: string
79
+ +read()
80
+ +write()
81
+ }
82
+
83
+ Agent --> Container : uses
84
+ Agent --> WorkingMemory : manages
85
+ Agent --> Context : handles
86
+ Agent --> Action : executes
87
+ Agent --> Input : processes
88
+ Agent --> Output : produces
89
+
90
+ Extension --> Input : provides
91
+ Extension --> Output : provides
92
+ Extension --> Action : provides
93
+ Extension --> Context : provides
94
+
95
+ Context --> WorkingMemory : manages
96
+
97
+ IChain <|-- EvmChain : implements
98
+ IChain <|-- SolanaChain : implements
99
+ IChain <|-- StarknetChain : implements
100
+ IChain <|-- SuiChain : implements
101
+ ```
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments