Sign in

    vectie/moonfish/prompt does not have a README file

    PromptMessage

    pub(all) struct PromptMessage {
    role : PromptRole
    content : String
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    PromptPacket

    pub(all) struct PromptPacket {
    stage :
    ModelStage

    schema_id : String
    messages : Array[PromptMessage]
    sections : Array[PromptSection]
    required_tools : Array[String]
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    PromptPacket::text

    fn PromptPacket::text(self : PromptPacket) -> String

    PromptRole

    pub(all) enum PromptRole {
    System
    User
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    PromptSection

    pub(all) struct PromptSection {
    title : String
    body : String
    } derive(Eq, ToJson,
    Debug
    ,
    FromJson
    )

    assemble_stage1_prompt

    fn assemble_stage1_prompt(input : Stage1PromptInput) -> PromptPacket

    assemble_stage2_prompt

    fn assemble_stage2_prompt(input : Stage2PromptInput) -> PromptPacket

    decision_summary

    prompt_message

    fn prompt_message(role : PromptRole, content : String) -> PromptMessage

    prompt_packet

    fn prompt_packet(stage :
    ModelStage
    , schema_id : String, sections : Array[PromptSection], required_tools : Array[String]) -> PromptPacket

    prompt_section

    fn prompt_section(title : String, body : String) -> PromptSection

    render_sections

    fn render_sections(sections : Array[PromptSection]) -> String