mirror of
https://github.com/openai/codex.git
synced 2026-05-19 18:52:57 +00:00
23 lines
505 B
Rust
23 lines
505 B
Rust
use super::ContextualUserFragment;
|
|
|
|
#[derive(Debug, Clone, PartialEq)]
|
|
pub(crate) struct PluginInstructions {
|
|
text: String,
|
|
}
|
|
|
|
impl PluginInstructions {
|
|
pub(crate) fn new(text: impl Into<String>) -> Self {
|
|
Self { text: text.into() }
|
|
}
|
|
}
|
|
|
|
impl ContextualUserFragment for PluginInstructions {
|
|
const ROLE: &'static str = "developer";
|
|
const START_MARKER: &'static str = "";
|
|
const END_MARKER: &'static str = "";
|
|
|
|
fn body(&self) -> String {
|
|
self.text.clone()
|
|
}
|
|
}
|