File size: 557 Bytes
3929363
9f54862
4997b06
9f54862
 
 
3929363
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from multi_agent_sdlc.llm.config import load_model_config
from multi_agent_sdlc.llm.factory import create_chat_model
from multi_agent_sdlc.llm.models import MODEL_PROVIDER_CONFIG
from multi_agent_sdlc.tools.coder.registry import CODER_TOOLS


def create_coder_llm():
    model = load_model_config().coder

    base_coder_model = create_chat_model(
        model,
        provider=MODEL_PROVIDER_CONFIG.get(model),
    )

    return base_coder_model.bind_tools(
        CODER_TOOLS, tool_choice="required", strict=True
    ).with_retry(stop_after_attempt=3)