Skip to main content

PersonaQuotesConfig

Struct PersonaQuotesConfig 

Source
pub struct PersonaQuotesConfig {
    pub persona: String,
    pub enabled: bool,
    pub poll_interval_seconds: u64,
    pub interval_jitter_pct: u32,
    pub active_hours: Option<ActiveHoursConfig>,
    pub source_user_ids: Vec<String>,
    pub candidates_per_draft: usize,
    pub seen_store: String,
    pub seen_store_path: Option<String>,
    pub max_age_hours: i64,
    pub max_candidates_per_tick: usize,
    pub writer_provider: Option<AgentProviderConfig>,
}
Expand description

Per-persona quote-tweet configuration.

When present, the daemon registers a PersonaQuoteScheduler that fires DaemonCommand::PersonaQuote on the configured cadence. The handler polls each source_user_ids entry via X v2 /2/users/{id}/tweets, filters by max_age_hours + not-yet-quoted, drafts an opinionated-but-charitable quote-tweet via the quote_writer agent, sends to Telegram for review, posts the chosen draft via POST /2/tweets with quote_tweet_id.

Configured under [[daemon.persona_quotes]] blocks.

Fields§

§persona: String

Persona registry name (e.g. "heartbit-ghost:x").

§enabled: bool

Whether this quoter is enabled.

§poll_interval_seconds: u64

Polling interval, in seconds. Default 5400 (90 min — medium per brainstorm). Recommended ≥60. NOTE: this is NOT enforced at config load — the value is consumed as-is by the (cross-crate) scheduler loop.

§interval_jitter_pct: u32

Randomness applied to each poll_interval_seconds tick, as a percentage (050). Default 25 = ±25%. Same anti-pattern rationale as interval_jitter_pct on persona_posts.

§active_hours: Option<ActiveHoursConfig>

Optional "HH:MM-HH:MM" window during which quote-polls run. Outside this window, the scheduler tick is a no-op.

§source_user_ids: Vec<String>

X user IDs (numeric strings) of accounts to poll. Curated list. Required — must contain at least one entry.

§candidates_per_draft: usize

Number of candidate quote-tweets to draft per chosen source tweet (1..=3). Default 3. Bounded tighter than the proactive post pipeline (1..=10) because quote-tweets are higher-stakes (you’re commenting on someone else’s content) and 3 candidates hits the cost/quality knee.

§seen_store: String

Backend for the “already quoted” dedup store: "in_memory" or "jsonl". Default "in_memory".

§seen_store_path: Option<String>

Path to the JSONL store file (only used when seen_store == "jsonl"). Tilde expansion at construction time.

§max_age_hours: i64

Maximum age in hours of a source tweet for it to be quote-able. Default 12 — beyond that the discourse has moved on. Set to 0 to disable the age filter.

§max_candidates_per_tick: usize

Maximum number of quote-tweets to draft+review per scheduler tick. Default 1 — pick the best candidate from sources and stop. Set higher to draft multiple quote-tweets per tick (one Telegram review per draft).

§writer_provider: Option<AgentProviderConfig>

Optional override LLM provider for the quote_writer + critic. None falls back to the global [provider]. Same shape as persona_posts.writer_provider.

Trait Implementations§

Source§

impl Clone for PersonaQuotesConfig

Source§

fn clone(&self) -> PersonaQuotesConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for PersonaQuotesConfig

Source§

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

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

impl<'de> Deserialize<'de> for PersonaQuotesConfig

Source§

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

Deserialize this value from the given Serde deserializer. 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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: Sized + 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: Sized + 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> Same for T

Source§

type Output = T

Should always be Self
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