diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-15 05:58:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-15 05:58:45 +0800 |
| commit | 38e594505bd9095a3c3618b186a29c6eb63972a5 (patch) | |
| tree | 1acc6b46d4ef1bef94e197dd0488c228b5bd888f /src/config/input.rs | |
| parent | 6dc332930bf2e6d31c937d87e7ac7ae14c53b7c6 (diff) | |
| download | aichat-38e594505bd9095a3c3618b186a29c6eb63972a5.tar.gz | |
feat: shell commands support revision (#413)
Diffstat (limited to 'src/config/input.rs')
| -rw-r--r-- | src/config/input.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config/input.rs b/src/config/input.rs index bb2a9fb..eaa567a 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -94,6 +94,14 @@ impl Input { self.data_urls.clone() } + pub fn text(&self) -> String { + self.text.clone() + } + + pub fn set_text(&mut self, text: String) { + self.text = text; + } + pub fn role(&self) -> Option<&Role> { self.context.role.as_ref() } |
