API Reference#
Creates a state graph for processing datasets.
This function orchestrates the creation of a workflow for handling table data. It sets up nodes for reading files and analyzing data based on provided parameters. The graph dynamically routes based on the presence of file attachments in the input state.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
llm
|
Runnable
|
The primary language model for processing user input. |
required |
pybox_manager
|
BasePyBoxManager
|
A python code sandbox delegator, used to execute the data analysis code generated by llm. |
required |
session_id
|
str | None
|
An optional session identifier used to associate with |
None
|
workdir
|
Path | None
|
The working directory for |
None
|
error_trace_cleanup
|
bool
|
Flag to clean up error traces. Defaults to False. |
False
|
nlines
|
int | None
|
Number of lines to read for preview. Defaults to None. |
None
|
vlm
|
BaseLanguageModel | None
|
Optional vision language model for processing images. Defaults to None. |
None
|
safety_llm
|
Runnable | None
|
Model used for safety classification of inputs. Defaults to None. |
None
|
dataset_retriever
|
BaseRetriever | None
|
Component to retrieve datasets. Defaults to None. |
None
|
normalize_llm
|
BaseLanguageModel | None
|
Model for data normalization tasks. Defaults to None. |
None
|
locate
|
str | None
|
The locale of the user. Defaults to None. |
required |
checkpointer
|
BaseCheckpointSaver | None
|
Component for saving checkpoints. Defaults to None. |
None
|
verbose
|
bool
|
Flag to enable verbose logging. Defaults to False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
CompiledStateGraph |
CompiledStateGraph
|
A compiled state graph representing the table processing workflow. |