GoodMemGoodMem
ReferenceSdkRustTypes

PostProcessor

Rust struct goodmem::models::PostProcessor: declaration, fields or variants, and implementations.

All types

Struct PostProcessor

goodmem::models::PostProcessor

Post-processor configuration for transforming retrieval results. Custom processors are discovered from installed extensions and must be referenced by their fully qualified factory class name. The built-in ChatPostProcessorFactory is resolved directly without loading installed extension JARs. When executable extensions are disabled at server startup, only the built-in ChatPostProcessorFactory is available; custom processors are rejected with HTTP 412 before streaming starts. See ChatPostProcessor reference (<https://docs.goodmem.ai/docs/reference/post-processors/chat-post-processor/>) for the built-in ChatPostProcessor configuration.

pub struct PostProcessor {
    pub name: String,
    pub config: Option<BTreeMap<String, serde_json::Value>>,
}

Fields

name

pub name: String

Fully qualified factory class name of the post-processor to apply. Wire name: name.

config

pub config: Option<BTreeMap<String, serde_json::Value>>

Configuration parameters for the post-processor. Fields depend on the selected processor; see the linked documentation for the built-in ChatPostProcessor schema. Wire name: config.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for PostProcessor
  • impl std::fmt::Debug for PostProcessor

On this page