Skip to main content

CreateTemplateRequest

Struct CreateTemplateRequest 

Source
pub struct CreateTemplateRequest {
Show 26 fields pub author: 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: String, pub directive_seeds: Vec<DirectiveSeed>, pub disposition_empathy: NonZeroU64, pub disposition_literalism: NonZeroU64, pub disposition_skepticism: NonZeroU64, pub enable_observations: bool, pub entities_allow_free_form: bool, pub entity_labels: Vec<EntityLabel>, pub id: Id, pub mental_model_seeds: Vec<MentalModelSeed>, pub min_hindclaw_version: String, pub min_hindsight_version: Option<String>, pub observations_mission: Option<String>, pub reflect_mission: String, pub retain_chunk_size: Option<NonZeroU64>, pub retain_custom_instructions: Option<String>, pub retain_default_strategy: Option<String>, pub retain_extraction_mode: String, pub retain_mission: String, pub retain_strategies: Map<String, Value>, pub scope: String, pub tags: Vec<String>,
}
Expand description

Request to create a custom template.

JSON schema
{
 "title": "CreateTemplateRequest",
 "description": "Request to create a custom template.",
 "type": "object",
 "required": [
   "id",
   "min_hindclaw_version",
   "reflect_mission",
   "retain_mission",
   "scope"
 ],
 "properties": {
   "author": {
     "title": "Author",
     "default": "",
     "type": "string"
   },
   "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",
     "default": "",
     "type": "string"
   },
   "directive_seeds": {
     "title": "Directive Seeds",
     "type": "array",
     "items": {
       "$ref": "#/components/schemas/DirectiveSeed"
     }
   },
   "disposition_empathy": {
     "title": "Disposition Empathy",
     "default": 3,
     "type": "integer",
     "maximum": 5.0,
     "minimum": 1.0
   },
   "disposition_literalism": {
     "title": "Disposition Literalism",
     "default": 3,
     "type": "integer",
     "maximum": 5.0,
     "minimum": 1.0
   },
   "disposition_skepticism": {
     "title": "Disposition Skepticism",
     "default": 3,
     "type": "integer",
     "maximum": 5.0,
     "minimum": 1.0
   },
   "enable_observations": {
     "title": "Enable Observations",
     "default": true,
     "type": "boolean"
   },
   "entities_allow_free_form": {
     "title": "Entities Allow Free Form",
     "default": true,
     "type": "boolean"
   },
   "entity_labels": {
     "title": "Entity Labels",
     "type": "array",
     "items": {
       "$ref": "#/components/schemas/EntityLabel"
     }
   },
   "id": {
     "title": "Id",
     "type": "string",
     "maxLength": 128,
     "minLength": 1
   },
   "mental_model_seeds": {
     "title": "Mental Model Seeds",
     "type": "array",
     "items": {
       "$ref": "#/components/schemas/MentalModelSeed"
     }
   },
   "min_hindclaw_version": {
     "title": "Min Hindclaw Version",
     "type": "string"
   },
   "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"
   },
   "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",
     "default": "concise",
     "type": "string"
   },
   "retain_mission": {
     "title": "Retain Mission",
     "type": "string"
   },
   "retain_strategies": {
     "title": "Retain Strategies",
     "type": "object",
     "additionalProperties": true
   },
   "scope": {
     "title": "Scope",
     "type": "string"
   },
   "tags": {
     "title": "Tags",
     "type": "array",
     "items": {
       "type": "string"
     }
   }
 },
 "additionalProperties": false
}

Fields§

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

Trait Implementations§

Source§

impl Clone for CreateTemplateRequest

Source§

fn clone(&self) -> CreateTemplateRequest

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 CreateTemplateRequest

Source§

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

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

impl<'de> Deserialize<'de> for CreateTemplateRequest

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<&CreateTemplateRequest> for CreateTemplateRequest

Source§

fn from(value: &CreateTemplateRequest) -> Self

Converts to this type from the input type.
Source§

impl Serialize for CreateTemplateRequest

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>,