File size: 506 Bytes
a64d26e
 
 
 
 
c47ca30
a64d26e
 
 
 
 
 
 
 
 
 
 
c47ca30
a64d26e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import logging

from langgraph.prebuilt import create_react_agent

from .tools import get_tools
from src.agents.portfolio.tools import get_user_portfolio_tool

logger = logging.getLogger(__name__)


class DcaAgent:
    """Agent orchestrating DCA consultations and workflow confirmation."""

    def __init__(self, llm):
        self.llm = llm
        self.agent = create_react_agent(
            model=llm,
            tools=get_tools() + [get_user_portfolio_tool],
            name="dca_agent",
        )