diff --git a/en/.gitbook/assets/docs-1.png b/en/.gitbook/assets/docs-1.png new file mode 100644 index 0000000..1f09017 Binary files /dev/null and b/en/.gitbook/assets/docs-1.png differ diff --git a/en/.gitbook/assets/docs-10.png b/en/.gitbook/assets/docs-10.png new file mode 100644 index 0000000..b732e8e Binary files /dev/null and b/en/.gitbook/assets/docs-10.png differ diff --git a/en/.gitbook/assets/docs-2.png b/en/.gitbook/assets/docs-2.png new file mode 100644 index 0000000..291c5db Binary files /dev/null and b/en/.gitbook/assets/docs-2.png differ diff --git a/en/.gitbook/assets/docs-3.png b/en/.gitbook/assets/docs-3.png new file mode 100644 index 0000000..c313ff6 Binary files /dev/null and b/en/.gitbook/assets/docs-3.png differ diff --git a/en/.gitbook/assets/docs-4.png b/en/.gitbook/assets/docs-4.png new file mode 100644 index 0000000..0a87766 Binary files /dev/null and b/en/.gitbook/assets/docs-4.png differ diff --git a/en/.gitbook/assets/docs-5.png b/en/.gitbook/assets/docs-5.png new file mode 100644 index 0000000..83fe34a Binary files /dev/null and b/en/.gitbook/assets/docs-5.png differ diff --git a/en/.gitbook/assets/docs-6.png b/en/.gitbook/assets/docs-6.png new file mode 100644 index 0000000..54efcd5 Binary files /dev/null and b/en/.gitbook/assets/docs-6.png differ diff --git a/en/.gitbook/assets/docs-8.png b/en/.gitbook/assets/docs-8.png new file mode 100644 index 0000000..75ff145 Binary files /dev/null and b/en/.gitbook/assets/docs-8.png differ diff --git a/en/.gitbook/assets/docs-9.png b/en/.gitbook/assets/docs-9.png new file mode 100644 index 0000000..64181d5 Binary files /dev/null and b/en/.gitbook/assets/docs-9.png differ diff --git a/en/.gitbook/assets/sec-7.png b/en/.gitbook/assets/sec-7.png new file mode 100644 index 0000000..c471f6f Binary files /dev/null and b/en/.gitbook/assets/sec-7.png differ diff --git a/en/SUMMARY.md b/en/SUMMARY.md index 44e3a13..5dacd07 100644 --- a/en/SUMMARY.md +++ b/en/SUMMARY.md @@ -19,6 +19,7 @@ * [Quickstart](user-guide/creating-dify-apps/creating-an-application.md) * [Overview](user-guide/creating-dify-apps/overview.md) * [Setting Prompts](user-guide/creating-dify-apps/prompt-engineering/README.md) + * [Agent Assistant](user-guide/creating-dify-apps/prompt-engineering/agent-assistant.md) * [Chat App](user-guide/creating-dify-apps/prompt-engineering/conversation-application.md) * [Text Generator](user-guide/creating-dify-apps/prompt-engineering/text-generation-application.md) * [FAQ](user-guide/creating-dify-apps/llms-use-faq.md) diff --git a/en/user-guide/creating-dify-apps/prompt-engineering/agent-assistant.md b/en/user-guide/creating-dify-apps/prompt-engineering/agent-assistant.md new file mode 100644 index 0000000..c539531 --- /dev/null +++ b/en/user-guide/creating-dify-apps/prompt-engineering/agent-assistant.md @@ -0,0 +1,61 @@ +# Agent Assistant + +## Definition + +An Agent Assistant can leverage the reasoning abilities of large language models (LLMs). It independently sets goals, simplifies complex tasks, operates tools, and refines processes to complete tasks autonomously. + +## Usage Instructions + +To facilitate quick learning and use, application templates for the Agent Assistant are available in the 'Explore' section. You can integrate these templates into your workspace. The new Dify 'Studio' also allows the creation of a custom Agent Assistant to suit individual requirements. This assistant can assist in analyzing financial reports, composing reports, designing logos, and organizing travel plans. + +

Explore-Agent Assistant Application Template

+ +After entering 'Studio-Assistant', you can begin orchestrating by choosing the Agent Assistant. + +

Studio-Create Agent Assistant

+ +The task completion ability of the Agent Assistant depends on the inference capabilities of the model selected. We recommend using a more powerful model series like GPT-4 when employing Agent Assistant to achieve more stable task completion results. + +

Selecting the Reasoning Model for Agent Assistant

+ +You can write prompts for the Agent Assistant in 'Instructions'. To achieve optimal results, you can clearly define its task objectives, workflow, resources, and limitations in the instructions. + +

Orchestrating Prompts for Agent Assistant

+ +## Adding Tools for the Agent Assistant + +In the "Context" section, you can incorporate knowledge base tools that the Agent Assistant can utilize for information retrieval. This will assist in providing it with external background knowledge. + +In the "Tools" section, you are able to add tools that are required for use. These tools can enhance the capabilities of LLMs, such as internet searches, scientific computations, or image creation, thereby enriching the LLM's ability to interact with the real world. Dify offers two types of tools: **built-in tools and custom tools.** + +You have the option to directly use built-in tools in Dify, or you can easily import custom API tools (currently supporting OpenAPI/Swagger and OpenAI Plugin standards). + +

Adding Tools for the Assistant

+ +The tool allows you to create more powerful AI applications on Dify. For example, you can orchestrate suitable tools for Agent Assistant, enabling it to complete complex tasks through reasoning, step decomposition, and tool invocation. Additionally, the tool facilitates the integration of your application with other systems or services, allowing interaction with the external environment, such as code execution and access to exclusive information sources. + +## Agent Settings + +On Dify, two inference modes are provided for Agent Assistant: Function Calling and ReAct. Models like GPT-3.5 and GPT-4 that support Function Calling have demonstrated better and more stable performance. For model series that do not support Function Calling, we have implemented the ReAct inference framework to achieve similar effects. + +In the Agent settings, you can modify the iteration limit of the Agent. + +

Function Calling Mode

+ +

ReAct Mode

+ +## Configuring the Conversation Opener + +You can set up a conversation opener and initial questions for your Agent Assistant. The configured conversation opener will be displayed at the beginning of each user's first interaction, showcasing the types of tasks the Agent can perform, along with examples of questions that can be asked. + +

Configuring the Conversation Opener and Initial Questions

+ +## Debugging and Preview + +After orchestrating your Agent Assistant, you have the option to debug and preview it before publishing it as an application. This allows you to assess the effectiveness of the agent in completing tasks. + +

Debugging and Preview

+ +## Application Publish + +

Publishing the Application as a Webapp