pub struct AgentPromptStrategy { /* private fields */ }Expand description
Predefined 4-block layout for general agents.
| Block | Order | Max Length |
|---|---|---|
| identity | 0 | 500 |
| instructions | 1 | 2000 |
| tools | 2 | 1000 |
| constraints | 3 | 500 |
Trait Implementations§
Source§impl Default for AgentPromptStrategy
impl Default for AgentPromptStrategy
Source§impl SystemPromptStrategy for AgentPromptStrategy
impl SystemPromptStrategy for AgentPromptStrategy
Source§fn block_defs(&self) -> &[PromptBlockDef]
fn block_defs(&self) -> &[PromptBlockDef]
Return block definitions (structure only, no content).
Auto Trait Implementations§
impl Freeze for AgentPromptStrategy
impl RefUnwindSafe for AgentPromptStrategy
impl Send for AgentPromptStrategy
impl Sync for AgentPromptStrategy
impl Unpin for AgentPromptStrategy
impl UnsafeUnpin for AgentPromptStrategy
impl UnwindSafe for AgentPromptStrategy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more