Function prompt_graph_core::graph_definition::create_prompt_node
source · pub fn create_prompt_node(
name: String,
query_defs: Vec<Option<String>>,
template: String,
model: String,
output_tables: Vec<String>
) -> Result<Item>
Expand description
Returns a node that, when triggered, performs an API call to a given language model endpoint, using the template parameter as the prompt input to the language model, and returns the result to the graph as a String type labeled “promptResult”