Docs.rs
  • langchain-rust-1.0.5
    • langchain-rust 1.0.5
    • Docs.rs crate page
    • MIT
    • Links
    • Documentation
    • Repository
    • crates.io
    • Source
    • Owners
    • Abraxas-365
    • Dependencies
      • async-openai ^0.18.3 normal
      • async-trait ^0.1.71 normal
      • futures ^0.3 normal
      • handlebars ^4.4.0 normal
      • html-escape ^0.2.13 normal
      • log ^0.4.19 normal
      • mockito ^1.3.0 normal
      • pgvector ^0.3.2 normal
      • regex ^1.9.3 normal
      • reqwest ^0.11 normal
      • reqwest-eventsource ^0.5.0 normal
      • rusoto_core ^0.46.0 normal
      • rusoto_s3 ^0.46.0 normal
      • rusoto_textract ^0.46.0 normal
      • scraper ^0.12 normal
      • serde ^1.0 normal
      • serde_json ^1.0 normal
      • sqlx ^0.7.3 normal
      • tiktoken-rs ^0.5.8 normal
      • tokio ^1 normal
      • uuid ^1.7.0 normal
      • testcontainers ^0.11 dev
      • tokio-test ^0.4.0 dev
    • Versions
    • 1.4% of the crate is documented
  • This release has been yanked, go to latest version
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

langchain_rust1.0.5

FormatPrompter

Required Methods

  • format_prompt
  • get_input_variables

Implementors

In langchain_rust::prompt

?
Change settings

Trait langchain_rust::prompt::FormatPrompter

source ·
pub trait FormatPrompter: Send + Sync {
    // Required methods
    fn format_prompt(
        &self,
        input_variables: PromptArgs
    ) -> Result<PromptValue, Box<dyn Error>>;
    fn get_input_variables(&self) -> Vec<String>;
}

Required Methods§

source

fn format_prompt( &self, input_variables: PromptArgs ) -> Result<PromptValue, Box<dyn Error>>

source

fn get_input_variables(&self) -> Vec<String>

Implementors§

source§

impl FormatPrompter for AIMessagePromptTemplate

source§

impl FormatPrompter for HumanMessagePromptTemplate

source§

impl FormatPrompter for MessageFormatterStruct

source§

impl FormatPrompter for SystemMessagePromptTemplate