mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-27 11:22:03 +00:00
Merge pull request #29724 from bbednarski9/bbednarski/nmf-41B-nemoflow-plugin
feat(middleware): add adaptive middleware to hermes-agent, consumed by NeMo-Relay
This commit is contained in:
commit
d4a7bfd3aa
14 changed files with 2170 additions and 151 deletions
16
run_agent.py
16
run_agent.py
|
|
@ -4955,10 +4955,22 @@ class AIAgent:
|
|||
|
||||
def _invoke_tool(self, function_name: str, function_args: dict, effective_task_id: str,
|
||||
tool_call_id: Optional[str] = None, messages: list = None,
|
||||
pre_tool_block_checked: bool = False) -> str:
|
||||
pre_tool_block_checked: bool = False,
|
||||
skip_tool_request_middleware: bool = False,
|
||||
tool_request_middleware_trace: Optional[list[dict[str, Any]]] = None) -> str:
|
||||
"""Forwarder — see ``agent.agent_runtime_helpers.invoke_tool``."""
|
||||
from agent.agent_runtime_helpers import invoke_tool
|
||||
return invoke_tool(self, function_name, function_args, effective_task_id, tool_call_id, messages, pre_tool_block_checked)
|
||||
return invoke_tool(
|
||||
self,
|
||||
function_name,
|
||||
function_args,
|
||||
effective_task_id,
|
||||
tool_call_id,
|
||||
messages,
|
||||
pre_tool_block_checked,
|
||||
skip_tool_request_middleware,
|
||||
tool_request_middleware_trace,
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _wrap_verbose(label: str, text: str, indent: str = " ") -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue