2023-11-07 19:44:47 +08:00
|
|
|
from typing import List
|
2023-12-07 20:17:21 +08:00
|
|
|
from loguru import logger
|
|
|
|
import copy
|
2023-11-07 19:44:47 +08:00
|
|
|
from dev_opsgpt.connector.agents import BaseAgent
|
|
|
|
from .base_chain import BaseChain
|
|
|
|
|
2023-12-07 20:17:21 +08:00
|
|
|
from dev_opsgpt.connector.agents import BaseAgent, CheckAgent
|
|
|
|
from dev_opsgpt.connector.schema import (
|
|
|
|
Memory, Role, Message, ActionStatus, ChainConfig,
|
|
|
|
load_role_configs
|
|
|
|
)
|
2023-11-07 19:44:47 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-07 20:17:21 +08:00
|
|
|
class ExecutorRefineChain(BaseChain):
|
2023-11-07 19:44:47 +08:00
|
|
|
|
|
|
|
def __init__(self, agents: List[BaseAgent], do_code_exec: bool = False) -> None:
|
|
|
|
super().__init__(agents, do_code_exec)
|