mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-06 02:48:22 +00:00
refactor(agent): convert build methods to async
This commit is contained in:
parent
2ff75fd580
commit
396f9c7e6b
1 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ class AgenticRetrieveOp(ReactAgentOp):
|
|||
},
|
||||
)
|
||||
|
||||
def build_tool_op_dict(self) -> dict:
|
||||
async def build_tool_op_dict(self) -> dict:
|
||||
"""Collect available tool operators from the execution context."""
|
||||
from reme_ai.context.file_tool import GrepOp, ReadFileOp
|
||||
|
||||
|
|
@ -98,7 +98,7 @@ class AgenticRetrieveOp(ReactAgentOp):
|
|||
|
||||
return tool_op_dict
|
||||
|
||||
def build_messages(self) -> List[Message]:
|
||||
async def build_messages(self) -> List[Message]:
|
||||
"""Build the initial message history for the LLM."""
|
||||
return self.context.messages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue