pub struct TemplatesArgs {Show 15 fields
pub action: String,
pub name: Option<String>,
pub content: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub domain: Option<String>,
pub output_format: Option<String>,
pub variables_def: Option<Vec<ContextTemplateVariableArg>>,
pub variables: Option<HashMap<String, String>>,
pub name_pattern: Option<String>,
pub limit: Option<u32>,
pub version: Option<u32>,
pub query: Option<String>,
pub namespaces: Option<Vec<String>>,
pub format: Option<String>,
}Expand description
Arguments for the consolidated subcog_templates tool.
Supports all context template operations via the action field:
save: Save or update a context templatelist: List templates with optional filteringget: Get a template by namerender: Render a template with memoriesdelete: Delete a template
Fields§
§action: StringOperation to perform: save, list, get, render, delete.
name: Option<String>Template name (required for save/get/render/delete).
content: Option<String>Template content with {{variable}} placeholders (for save).
description: Option<String>Human-readable description of the template (for save).
Tags for categorization and search (for save/list).
domain: Option<String>Storage scope: “project” (default), “user”, or “org”.
output_format: Option<String>Default output format: “markdown” (default), “json”, or “xml” (for save).
variables_def: Option<Vec<ContextTemplateVariableArg>>Explicit variable definitions with metadata (for save).
variables: Option<HashMap<String, String>>Custom variable values (for render).
name_pattern: Option<String>Filter by name pattern (for list).
limit: Option<u32>Maximum results (for list) or memories (for render).
version: Option<u32>Specific version (for get/render/delete).
query: Option<String>Query string for memory search (for render).
namespaces: Option<Vec<String>>Namespaces to filter memories (for render).
format: Option<String>Output format override (for render).
Trait Implementations§
Source§impl Debug for TemplatesArgs
impl Debug for TemplatesArgs
Source§impl<'de> Deserialize<'de> for TemplatesArgs
impl<'de> Deserialize<'de> for TemplatesArgs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TemplatesArgs
impl RefUnwindSafe for TemplatesArgs
impl Send for TemplatesArgs
impl Sync for TemplatesArgs
impl Unpin for TemplatesArgs
impl UnwindSafe for TemplatesArgs
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].