agents.chain.chain_examples

Examples of using the flexible ChainAgent.

from typing import Any, Dict Shows different ways to create chains from various node types.

Functions

example_engines_as_nodes()

Show how engines can be used directly as nodes.

example_incremental_building()

Build a chain step by step.

example_mapped_flow()

Create a complex flow using mapping syntax.

example_nested_chains()

Create chains that contain other chains.

example_rag_router_simplified()

Create a RAG router using the simplified ChainAgent approach.

example_sequential_mixed()

Create a chain from different node types.

Module Contents

agents.chain.chain_examples.example_engines_as_nodes()

Show how engines can be used directly as nodes.

Return type:

Any

agents.chain.chain_examples.example_incremental_building()

Build a chain step by step.

Return type:

Any

agents.chain.chain_examples.example_mapped_flow()

Create a complex flow using mapping syntax.

Return type:

Any

agents.chain.chain_examples.example_nested_chains()

Create chains that contain other chains.

Return type:

Any

agents.chain.chain_examples.example_rag_router_simplified()

Create a RAG router using the simplified ChainAgent approach.

Return type:

Any

agents.chain.chain_examples.example_sequential_mixed()

Create a chain from different node types.

Return type:

Any