Module graph_definition

Source

Structs§

DefinitionGraph

Enums§

SourceNodeType

Functions§

create_code_node
Takes in executable code and returns a node that executes said code when triggered This executable code can take the format of:
create_component_node
Returns a node that can implement logic from another graph definition This is useful for reusing logic across multiple graphs The graph definition to transclude is specified by either
create_custom_node
Returns a custom node that executes a given function When registering a custom node in the SDK, you provide an in-language function and tell chidori to register that function under the given “type_name”. This function executed is then executed in the graph when referenced by this “type_name” parameter
create_entrypoint_queryDeprecated
create_loader_node
Returns a node that can read bytes from a given source
create_node_parameter
Takes in common node parameters and returns a fulfilled node type (a dsl::Item type)
create_observation_node
Returns a node that, when triggered, echoes back its input for easier querying
create_op_map
Returns a Map type node, which maps a Path (key) to a given String (value)
create_prompt_node
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”
create_vector_memory_node
Returns a node that can perform some READ/WRITE/DELETE operation on a specified Vector database, using the specified configuration options (options like the embedding_model to use and collection_name namespace to query within)