MCPcopy Create free account

hub / github.com/a-agmon/rs-graph-llm / functions

Functions194 in github.com/a-agmon/rs-graph-llm

Methodchat_history_len
Get the number of messages in the chat history.
graph-flow/src/context.rs:759
Methodclear_chat_history
Clear the chat history. # Examples ```rust use graph_flow::Context; # #[tokio::main] # async fn main() { let context = Context::new(); context.add_
graph-flow/src/context.rs:754
Functioncorrelation_id_middleware
Middleware to add correlation ID to all requests
insurance-claims-service/src/main.rs:83
Methoddefault
()
graph-flow/src/context.rs:895
Methoddefault
()
graph-flow/src/storage.rs:57
Methoddelete
(&self, id: &str)
graph-flow/src/storage_postgres.rs:120
Methoddelete
(&self, id: &str)
graph-flow/src/storage.rs:81
Methoddeserialize
(deserializer: D)
graph-flow/src/context.rs:921
Functionexecute_graph
( State(state): State<AppState>, Json(request): Json<ExecuteRequest>, )
insurance-claims-service/src/main.rs:179
Functionfanout_all_success_aggregates
()
graph-flow/src/fanout.rs:226
Functionfanout_failure_bubbles_up
()
graph-flow/src/fanout.rs:247
Methodfrom
Convert a [`SerializableMessage`] into a `rig::completion::Message`, moving the content instead of cloning it. Only available when the "rig" feature
graph-flow/src/context.rs:885
Methodget
(&self, id: &str)
graph-flow/src/storage_postgres.rs:92
Methodget
(&self, id: &str)
graph-flow/src/storage.rs:77
Functionget_session
( State(state): State<AppState>, Path(session_id): Path<String>, )
insurance-claims-service/src/main.rs:278
Functionget_session_status
( State(state): State<AppState>, Path(session_id): Path<String>, )
medical-document-service/src/service.rs:186
Methodget_task
Get a task by ID
graph-flow/src/graph.rs:348
Functionhealth_check
()
medical-document-service/src/service.rs:107
Functionhealth_check
()
recommendation-service/src/main.rs:48
Functionhealth_check
()
insurance-claims-service/src/main.rs:175
Methodid
(&self)
recommendation-service/src/tasks/answer_generation.rs:15
Methodid
(&self)
recommendation-service/src/tasks/validation.rs:15
Methodid
(&self)
recommendation-service/src/tasks/vector_search.rs:30
Methodid
Unique identifier for this task. By default, this returns the type name of the implementing struct. Override this method if you need a custom identif
graph-flow/src/task.rs:445
Methodid
(&self)
graph-flow/src/task.rs:524
Methodis_chat_history_empty
Check if the chat history is empty.
graph-flow/src/context.rs:764
Functionmain
()
medical-document-service/src/main.rs:7
Functionmain
()
medical-document-service/src/bin/test_research_search.rs:9
Functionmain
()
medical-document-service/src/bin/test_pdf_ocr.rs:9
Functionmain
()
recommendation-service/src/main.rs:178
Functionmain
()
insurance-claims-service/src/main.rs:104
Functionmain
()
examples/terminal_client.rs:24
Functionmain
()
examples/complex_example.rs:131
Functionmain
()
examples/fanout_basic.rs:53
Functionmain
()
examples/recommendation_flow.rs:389
Functionmain
()
examples/simple_example.rs:42
Methodmigrate
(pool: &Pool<Postgres>)
graph-flow/src/storage_postgres.rs:40
Methodmove_to_next
Create a TaskResult that moves to the next task (step-by-step execution). This is a convenience method equivalent to: ```rust # use graph_flow::{Task
graph-flow/src/task.rs:176
Methodmove_to_next_direct
Create a TaskResult that moves to the next task and executes it immediately. This is a convenience method equivalent to: ```rust # use graph_flow::{T
graph-flow/src/task.rs:192
Methodnew
()
recommendation-service/src/tasks/vector_search.rs:15
Methodnew
()
examples/recommendation_flow.rs:106
Methodnew
(id: impl Into<String>)
graph-flow/src/graph.rs:41
Methodnew
Create a new `FanOutTask` with an explicit id and a list of child tasks.
graph-flow/src/fanout.rs:82
Methodnew
Create a new TaskResult with the given response and next action. The task_id will be set automatically by the graph execution engine. # Examples ``
graph-flow/src/task.rs:130
Methodnew
Create a new message with the specified role and content. The timestamp is automatically set to the current UTC time.
graph-flow/src/context.rs:158
Methodnew
Create a new `FlowRunner` from an `Arc<Graph>` and any `SessionStorage` implementation. # Parameters `graph` - The workflow graph to execute `storag
graph-flow/src/runner.rs:257
Methodnew
()
graph-flow/src/storage.rs:63
Methodnew_from_task
Create a new session positioned at the given task. Note: `graph_id` is set to `"default"`; assign it explicitly if you store multiple graphs.
graph-flow/src/storage.rs:24
Methodnew_with_status
Create a new TaskResult with response, next action, and status message. The status message is used to describe the current state of the task. It's on
graph-flow/src/task.rs:156
Functionprovide_feedback
( State(state): State<AppState>, Path(session_id): Path<String>, Json(request): Json<HumanFeedback
medical-document-service/src/service.rs:276
Functionrecommend
( Query(params): Query<RecommendationRequest>, State(state): State<AppState>, )
recommendation-service/src/main.rs:62
Functionroot
()
medical-document-service/src/service.rs:93
Methodrun
(&self, context: Context)
medical-document-service/src/tasks/research_search.rs:15
Methodrun
(&self, context: Context)
medical-document-service/src/tasks/summary_integration.rs:12
Methodrun
(&self, context: Context)
medical-document-service/src/tasks/human_review.rs:10
Methodrun
(&self, context: Context)
recommendation-service/src/tasks/answer_generation.rs:19
Methodrun
(&self, context: Context)
recommendation-service/src/tasks/validation.rs:19
Methodrun
(&self, context: Context)
recommendation-service/src/tasks/vector_search.rs:34
Methodrun
(&self, context: Context)
recommendation-service/src/tasks/query_refinement.rs:15
Methodrun
(&self, context: Context)
insurance-claims-service/src/tasks/apartment_insurance_details.rs:62
Methodrun
(&self, context: Context)
insurance-claims-service/src/tasks/smart_claim_validator.rs:15
Methodrun
(&self, context: Context)
insurance-claims-service/src/tasks/insurance_type_classifier.rs:52
Methodrun
(&self, context: Context)
insurance-claims-service/src/tasks/car_insurance_details.rs:61
Methodrun
(&self, context: Context)
insurance-claims-service/src/tasks/initial_claim_query.rs:26
Methodrun
(&self, context: Context)
graph-flow/src/lib.rs:206
Methodrun
(&self, _context: Context)
graph-flow/src/task.rs:515
Methodsave
(&self, session: Session)
graph-flow/src/storage_postgres.rs:63
Methodserialize
(&self, serializer: S)
graph-flow/src/context.rs:902
Methodset_start_task
Set the starting task. Logs a warning and leaves the current start task unchanged if the given task id has not been added to the graph.
graph-flow/src/graph.rs:82
Functionstart_analysis
( State(state): State<AppState>, Json(request): Json<AnalyzeDocumentRequest>, )
medical-document-service/src/service.rs:114
Methodstart_task_id
Get the start task ID
graph-flow/src/graph.rs:343
Methodsystem
Create a new system message. # Examples ```rust use graph_flow::SerializableMessage; let msg = SerializableMessage::system("User logged in".to_stri
graph-flow/src/context.rs:201
Functiontest_basic_context_operations
()
graph-flow/src/context.rs:943
Functiontest_chat_history_max_messages
()
graph-flow/src/context.rs:973
Functiontest_chat_history_operations
()
graph-flow/src/context.rs:952
Functiontest_chat_history_serialization
()
graph-flow/src/context.rs:1039
Functiontest_context_serialization
()
graph-flow/src/context.rs:1008
Functiontest_custom_id_override
()
graph-flow/src/task.rs:540
Functiontest_default_id_implementation
()
graph-flow/src/task.rs:534
Functiontest_last_messages
()
graph-flow/src/context.rs:989
Functiontest_llm_vision_ocr
()
medical-document-service/src/tasks/pdf_extract.rs:256
Functiontest_pdf_llm_ocr_workflow
()
medical-document-service/src/tasks/pdf_extract.rs:286
Functiontest_rig_integration
()
graph-flow/src/context.rs:1054
Functiontest_serializable_message
()
graph-flow/src/context.rs:1026
Functiontest_simple_graph_execution
exercises the deprecated Graph::execute until it is removed
graph-flow/src/lib.rs:219
Functiontest_storage
()
graph-flow/src/lib.rs:239
Methodtry_set
Fallible version of [`Context::set`]. Returns `Err(GraphError::ContextError)` instead of panicking when the value cannot be serialized to JSON.
graph-flow/src/context.rs:499
Methoduser
Create a new user message. # Examples ```rust use graph_flow::SerializableMessage; let msg = SerializableMessage::user("Hello, world!".to_string())
graph-flow/src/context.rs:175
Methodwith_max_chat_messages
Create a new context with a maximum chat history size. When the chat history exceeds this size, older messages are automatically removed. # Examples
graph-flow/src/context.rs:428
Methodwith_max_execution_steps
Limit the number of chained `ContinueAndExecute` steps within a single `execute_session` call, guarding against infinite loops in cyclic graphs (defau
graph-flow/src/graph.rs:403
Methodwith_max_messages
Create a new chat history with a maximum message limit. When the limit is exceeded, older messages are automatically removed. # Examples ```rust us
graph-flow/src/context.rs:257
Methodwith_next_action
Override the `NextAction` returned by the `FanOutTask` (default: `Continue`).
graph-flow/src/fanout.rs:100
Methodwith_pool
Build the storage from a pre-configured pool (custom connection limits, timeouts, etc.) and run the schema migration.
graph-flow/src/storage_postgres.rs:35
Methodwith_task_timeout
Set the timeout applied to each task execution (default: 5 minutes).
graph-flow/src/graph.rs:395
← previous101–194 of 194, ranked by callers