agents.chain.examples_simple¶
Simple examples of using ChainAgent.
from typing import Any, Dict Shows how easy it is to build chains.
Functions¶
Just list your nodes. |
|
Using ChainAgent class directly. |
|
Build step by step. |
|
Mix different node types. |
|
Complete RAG router - super simple. |
|
Custom edges for complex flows. |
Module Contents¶
- agents.chain.examples_simple.example_basic()¶
Just list your nodes.
- Return type:
Any
- agents.chain.examples_simple.example_direct()¶
Using ChainAgent class directly.
- Return type:
Any
- agents.chain.examples_simple.example_incremental()¶
Build step by step.
- Return type:
Any
- agents.chain.examples_simple.example_mixed()¶
Mix different node types.
- Return type:
Any
- agents.chain.examples_simple.example_rag_router()¶
Complete RAG router - super simple.
- Return type:
Any
- agents.chain.examples_simple.example_routing()¶
Custom edges for complex flows.
- Return type:
Any