Skip to main content

UpdateTemplateRequest

Struct UpdateTemplateRequest 

Source
pub struct UpdateTemplateRequest {
Show 24 fields pub author: Option<String>, pub consolidation_llm_batch_size: Option<NonZeroU64>, pub consolidation_source_facts_max_tokens: Option<i64>, pub consolidation_source_facts_max_tokens_per_observation: Option<i64>, pub description: Option<String>, pub directive_seeds: Option<Vec<DirectiveSeed>>, pub disposition_empathy: Option<NonZeroU64>, pub disposition_literalism: Option<NonZeroU64>, pub disposition_skepticism: Option<NonZeroU64>, pub enable_observations: Option<bool>, pub entities_allow_free_form: Option<bool>, pub entity_labels: Option<Vec<EntityLabel>>, pub mental_model_seeds: Option<Vec<MentalModelSeed>>, pub min_hindclaw_version: Option<String>, pub min_hindsight_version: Option<String>, pub observations_mission: Option<String>, pub reflect_mission: Option<String>, pub retain_chunk_size: Option<NonZeroU64>, pub retain_custom_instructions: Option<String>, pub retain_default_strategy: Option<String>, pub retain_extraction_mode: Option<String>, pub retain_mission: Option<String>, pub retain_strategies: Option<Map<String, Value>>, pub tags: Option<Vec<String>>,
}
Expand description

Request to update an existing template. All fields optional.

Note: cross-field validation (e.g. custom mode requires custom instructions) cannot be fully checked here because this is a partial update. The endpoint must merge with the existing record and validate the final state.

JSON schema
{
 "title": "UpdateTemplateRequest",
 "description": "Request to update an existing template. All fields optional.\n\nNote: cross-field validation (e.g. custom mode requires custom instructions)\ncannot be fully checked here because this is a partial update. The endpoint\nmust merge with the existing record and validate the final state.",
 "type": "object",
 "properties": {
   "author": {
     "title": "Author",
     "type": [
       "string",
       "null"
     ]
   },
   "consolidation_llm_batch_size": {
     "title": "Consolidation Llm Batch Size",
     "type": [
       "integer",
       "null"
     ],
     "exclusiveMinimum": 0.0
   },
   "consolidation_source_facts_max_tokens": {
     "title": "Consolidation Source Facts Max Tokens",
     "type": [
       "integer",
       "null"
     ]
   },
   "consolidation_source_facts_max_tokens_per_observation": {
     "title": "Consolidation Source Facts Max Tokens Per Observation",
     "type": [
       "integer",
       "null"
     ]
   },
   "description": {
     "title": "Description",
     "type": [
       "string",
       "null"
     ]
   },
   "directive_seeds": {
     "title": "Directive Seeds",
     "type": [
       "array",
       "null"
     ],
     "items": {
       "$ref": "#/components/schemas/DirectiveSeed"
     }
   },
   "disposition_empathy": {
     "title": "Disposition Empathy",
     "type": [
       "integer",
       "null"
     ],
     "maximum": 5.0,
     "minimum": 1.0
   },
   "disposition_literalism": {
     "title": "Disposition Literalism",
     "type": [
       "integer",
       "null"
     ],
     "maximum": 5.0,
     "minimum": 1.0
   },
   "disposition_skepticism": {
     "title": "Disposition Skepticism",
     "type": [
       "integer",
       "null"
     ],
     "maximum": 5.0,
     "minimum": 1.0
   },
   "enable_observations": {
     "title": "Enable Observations",
     "type": [
       "boolean",
       "null"
     ]
   },
   "entities_allow_free_form": {
     "title": "Entities Allow Free Form",
     "type": [
       "boolean",
       "null"
     ]
   },
   "entity_labels": {
     "title": "Entity Labels",
     "type": [
       "array",
       "null"
     ],
     "items": {
       "$ref": "#/components/schemas/EntityLabel"
     }
   },
   "mental_model_seeds": {
     "title": "Mental Model Seeds",
     "type": [
       "array",
       "null"
     ],
     "items": {
       "$ref": "#/components/schemas/MentalModelSeed"
     }
   },
   "min_hindclaw_version": {
     "title": "Min Hindclaw Version",
     "type": [
       "string",
       "null"
     ]
   },
   "min_hindsight_version": {
     "title": "Min Hindsight Version",
     "type": [
       "string",
       "null"
     ]
   },
   "observations_mission": {
     "title": "Observations Mission",
     "type": [
       "string",
       "null"
     ]
   },
   "reflect_mission": {
     "title": "Reflect Mission",
     "type": [
       "string",
       "null"
     ]
   },
   "retain_chunk_size": {
     "title": "Retain Chunk Size",
     "type": [
       "integer",
       "null"
     ],
     "exclusiveMinimum": 0.0
   },
   "retain_custom_instructions": {
     "title": "Retain Custom Instructions",
     "type": [
       "string",
       "null"
     ]
   },
   "retain_default_strategy": {
     "title": "Retain Default Strategy",
     "type": [
       "string",
       "null"
     ]
   },
   "retain_extraction_mode": {
     "title": "Retain Extraction Mode",
     "type": [
       "string",
       "null"
     ]
   },
   "retain_mission": {
     "title": "Retain Mission",
     "type": [
       "string",
       "null"
     ]
   },
   "retain_strategies": {
     "title": "Retain Strategies",
     "type": [
       "object",
       "null"
     ],
     "additionalProperties": true
   },
   "tags": {
     "title": "Tags",
     "type": [
       "array",
       "null"
     ],
     "items": {
       "type": "string"
     }
   }
 },
 "additionalProperties": false
}

Fields§

§author: Option<String>§consolidation_llm_batch_size: Option<NonZeroU64>§consolidation_source_facts_max_tokens: Option<i64>§consolidation_source_facts_max_tokens_per_observation: Option<i64>§description: Option<String>§directive_seeds: Option<Vec<DirectiveSeed>>§disposition_empathy: Option<NonZeroU64>§disposition_literalism: Option<NonZeroU64>§disposition_skepticism: Option<NonZeroU64>§enable_observations: Option<bool>§entities_allow_free_form: Option<bool>§entity_labels: Option<Vec<EntityLabel>>§mental_model_seeds: Option<Vec<MentalModelSeed>>§min_hindclaw_version: Option<String>§min_hindsight_version: Option<String>§observations_mission: Option<String>§reflect_mission: Option<String>§retain_chunk_size: Option<NonZeroU64>§retain_custom_instructions: Option<String>§retain_default_strategy: Option<String>§retain_extraction_mode: Option<String>§retain_mission: Option<String>§retain_strategies: Option<Map<String, Value>>§tags: Option<Vec<String>>

Trait Implementations§

Source§

impl Clone for UpdateTemplateRequest

Source§

fn clone(&self) -> UpdateTemplateRequest

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UpdateTemplateRequest

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UpdateTemplateRequest

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for UpdateTemplateRequest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&UpdateTemplateRequest> for UpdateTemplateRequest

Source§

fn from(value: &UpdateTemplateRequest) -> Self

Converts to this type from the input type.
Source§

impl Serialize for UpdateTemplateRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,