feat(agent): add initialization method for SimpleReactOp

This commit is contained in:
jinli.yl 2025-12-11 10:41:24 +08:00
parent a729064e6c
commit 0e8fe5cedc
2 changed files with 17 additions and 0 deletions

View file

@ -25,6 +25,23 @@ class SimpleReactOp(ReactSearchOp):
- Maximum step limits for preventing infinite loops
"""
def __init__(
self,
llm: str = "default",
max_steps: int = 20,
tool_call_interval: float = 1.0,
add_think_tool: bool = False,
**kwargs,
):
"""Initialize the agent runtime configuration."""
super().__init__(
llm=llm,
max_steps=max_steps,
tool_call_interval=tool_call_interval,
add_think_tool=add_think_tool,
**kwargs,
)
async def main():
"""Main function to demonstrate SimpleReactOp usage.

0
reme_ai/core/__init__.py Normal file
View file