mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-12 23:01:15 +00:00
feat(agent): add initialization method for SimpleReactOp
This commit is contained in:
parent
a729064e6c
commit
0e8fe5cedc
2 changed files with 17 additions and 0 deletions
|
|
@ -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
0
reme_ai/core/__init__.py
Normal file
Loading…
Add table
Reference in a new issue