Propagation
Propagator
Bases: BaseModel
flowchart TD
src.tradingagents.graph.propagation.Propagator[Propagator]
click src.tradingagents.graph.propagation.Propagator href "" "src.tradingagents.graph.propagation.Propagator"
Methods:
| Name | Description |
|---|---|
create_initial_state |
Create the initial AgentState for the graph execution. |
get_graph_args |
Get arguments for the graph invocation. |
max_recur_limit
max_recur_limit: int = Field(
default=100,
title="Max Recursion Limit",
description="Maximum number of recursive calls allowed in the LangGraph execution",
)
create_initial_state
Create the initial AgentState for the graph execution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The name of the company or ticker symbol. |
required |
|
str
|
The trade date in YYYY-MM-DD format. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
AgentState |
AgentState
|
The initialized agent state. |
Source code in src/tradingagents/graph/propagation.py
get_graph_args
Get arguments for the graph invocation.
Note: LLM callbacks are handled separately via LLM constructor.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
list | None
|
Optional list of callback handlers for tool execution tracking. Defaults to None. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
dict[str, Any]: A dictionary containing stream mode and config arguments for graph execution. |