Commit f6d461d
committed
Add Context Manager to PER (opensearch-project#4379)
* add pre_llm hook to per agent
Signed-off-by: Mingshi Liu <[email protected]>
change context management passing from query parameters to payload
Signed-off-by: Mingshi Liu <[email protected]>
pass hook registery into PER
Signed-off-by: Mingshi Liu <[email protected]>
apply spotless
Signed-off-by: Mingshi Liu <[email protected]>
initiate context management api with hook implementation
Signed-off-by: Mingshi Liu <[email protected]>
* add comment
Signed-off-by: Mingshi Liu <[email protected]>
* format
Signed-off-by: Mingshi Liu <[email protected]>
* add validation
Signed-off-by: Mingshi Liu <[email protected]>
---------
Signed-off-by: Mingshi Liu <[email protected]>1 parent 483e8b9 commit f6d461d
File tree
15 files changed
+285
-563
lines changed- common/src
- main/java/org/opensearch/ml/common
- connector
- contextmanager
- input/execute/agent
- test/java/org/opensearch/ml/common/contextmanager
- ml-algorithms/src
- main/java/org/opensearch/ml/engine
- agents
- algorithms
- agent
- contextmanager
- test/java/org/opensearch/ml/engine/algorithms/agent
- plugin/src/main/java/org/opensearch/ml/rest
15 files changed
+285
-563
lines changedLines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 372 | | |
377 | 373 | | |
378 | 374 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
| |||
Lines changed: 0 additions & 266 deletions
This file was deleted.
0 commit comments