refactor(agent): Agent modular refactoring (#1487)

This commit is contained in:
Fangyin Cheng
2024-05-07 09:45:26 +08:00
committed by GitHub
parent 2a418f91e8
commit 863b5404dd
86 changed files with 4513 additions and 967 deletions

View File

@@ -1,7 +1,7 @@
"""Resource plugin client API."""
import logging
import os
from typing import List, Optional, Union, cast
from typing import Any, Dict, List, Optional, Union, cast
from ..plugin.commands.command_manage import execute_command
from ..plugin.generator import PluginPromptGenerator
@@ -48,8 +48,8 @@ class ResourcePluginClient(ResourceClient):
async def execute_command(
self,
command_name: str,
arguments: Optional[dict],
plugin_generator: Optional[PluginPromptGenerator],
arguments: Dict[str, Any],
plugin_generator: PluginPromptGenerator,
):
"""Execute the command."""
if plugin_generator is None: