Agent Workflow Configuration for Tool-Free Function Expansion
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing technologies require complex modifications or new tool building to expand the functions of intelligent agents based on large language models, leading to inefficient function expansion.
Innovation Solution
A method and apparatus for configuring functions by instantiating task nodes in a target workflow to create a workflow instance, which is then added to a tool list for the agent, allowing the agent to implement new functions without modifying existing tools.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If a new tool is built or existing tool is modified to implement a new function, then the agent can implement the new function, but the device complexity increases
Solution Approach 1:
The patent segments the function implementation into two independent parts: (1) a predefined tool with fixed capabilities, and (2) a configurable workflow that orchestrates multiple tool invocations. The workflow is divided into task nodes that can be independently configured through a YAML file, separating the tool definition from the function composition logic. This allows new functions to be created by configuring workflows rather than modifying tools.
Solution Approach 2:
The patent creates a universal workflow configuration system that can orchestrate any combination of existing tools to implement diverse functions. The workflow engine provides a multi-functional platform that handles task parsing, node execution, and result aggregation uniformly regardless of the specific function being implemented. This universal configuration mechanism eliminates the need for tool-specific modification code.
2Adaptability or versatility
If a new tool is built or existing tool is modified to implement a new function, then the agent can implement the new function, but the loss of time increases
Solution Approach 1:
The patent performs preliminary actions by pre-defining tools with standardized interfaces and pre-configuring workflow templates with common task patterns. The YAML configuration files are prepared in advance with default settings that can be quickly adjusted. This preliminary setup eliminates the need for time-consuming tool modification and ad-hoc configuration during function expansion.
Solution Approach 2:
The patent uses copying by allowing new workflows to be created by duplicating and adapting existing workflow configurations. The YAML-based configuration enables easy copying of task node definitions, parameters, and execution logic from existing workflows. This copying mechanism significantly reduces the time required to create new function implementations compared to building from scratch or modifying tools.
3Adaptability or versatility
If tools are modified or new tools are built to expand agent functions, then the agent gains new capabilities, but the ease of operation decreases
Solution Approach 1:
The patent implements self-service by enabling users to configure new agent functions independently through YAML configuration files without requiring access to or modification of tool source code. The workflow engine automatically parses the configuration, validates the syntax, and generates the necessary execution logic. This self-service configuration approach empowers users to expand agent functions without needing to understand the underlying tool implementation details.
Solution Approach 2:
The patent introduces a YAML configuration file as an intermediary layer between the user and the tool execution system. This intermediary configuration format provides a user-friendly interface for defining workflows while the workflow engine handles the complex translation into executable code. The intermediary layer abstracts away the complexity of tool integration and provides a standardized, easy-to-operate configuration mechanism.
Data Source
AI summary
The present disclosure relates to the technical field of computers and discloses a function configuration method, a task handling method, a device, and a medium. The function configuration method includes: obtaining a configuration instruction, in which the configuration instruction is used for instantiating a task node in a target workflow to obtain a target node instance, the target workflow is used for implementing a target function; constructing a first workflow instance of the target workflow based on the target node instance; and adding the first workflow instance to a tool list, in which the tool list is used for characterizing a workflow instance corresponding to a function of a target agent, and the target agent is constructed based on the tool list. The present disclosure can solve the problem of complex expansion of the functions of an agent.


