# Agent

An **Agent Assistant** can leverage the advanced reasoning abilities of large language models (LLMs) to perform tasks autonomously. Think about an AI Agent like a <mark style="color:blue;">Smart robot helper</mark>. This robot doesn't just do what you tell it—it can also figure out what needs to be done, break down big jobs into smaller tasks, and use different tools to get things done. Plus, it gets better and smarter the more it works with you.

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 Rnet ‘Studio’ also allows the creation of a custom Agent Assistant to suit individual requirements. This assistant can assist in analysing financial reports, composing reports, designing logos, and organising travel plans.

<figure><img src="https://1309580823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJtmXqCN1gltZjmVMGdA%2Fuploads%2FQ2ZSwK7a7r8w9CD8chVm%2FScreenshot%202024-08-29%20at%201.09.00%20AM.png?alt=media&#x26;token=fcd8d43b-104f-4580-85fd-2daa892bb4bc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1309580823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJtmXqCN1gltZjmVMGdA%2Fuploads%2FOlJcut4m8ZlYO6hRgFpp%2FScreenshot%202024-08-29%20at%201.11.29%20AM.png?alt=media&#x26;token=1e94d477-a78f-4b1e-93b4-c434f94d1f8b" alt=""><figcaption></figcaption></figure>

**Orchestrating Prompts for the Agent Assistant:** In the “Instructions” section, you can define the task objectives, workflow, resources, and limitations for the Agent Assistant. This ensures optimal results by providing clear guidelines for the agent’s actions.

**Adding Tools for the Agent Assistant:** In the “Context” section, you can integrate knowledge base tools that aid in information retrieval, enhancing the agent’s background knowledge. The “Tools” section allows for the addition of tools that expand the capabilities of Language Learning Models (LLMs), such as internet searches, scientific computations, or image creation. Rnet supports both **built-in and custom tools** including custom API tools compatible with OpenAPI/Swagger and OpenAI Plugin standards.

<figure><img src="https://1309580823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJtmXqCN1gltZjmVMGdA%2Fuploads%2FmXCyZx6xmqrhOOYNtqqp%2FScreenshot%202024-08-29%20at%2010.23.28%20PM.png?alt=media&#x26;token=a0c39cc8-d161-4163-acb9-2d5f2fdf3260" alt=""><figcaption><p>Adding Tools for the Assistant</p></figcaption></figure>

Tools enable the creation of more robust AI applications on Rnet. They allow the Agent Assistant to perform complex tasks through reasoning, step decomposition, and tool invocation. Additionally, these tools facilitate the integration of applications with external systems or services, allowing for activities like code execution and access to exclusive information sources.

**Agent Settings:** Rnet provides two inference modes for the Agent Assistant: Function Calling and ReAct. Models supporting Function Calling, such as GPT-3.5 and GPT-4, offer better and more stable performance. For models not supporting Function Calling, the ReAct inference framework is used to achieve similar results. The Agent settings also allow for modification of the agent’s iteration limit.

<figure><img src="https://1309580823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJtmXqCN1gltZjmVMGdA%2Fuploads%2F7nVtAj9yFpb9fbZK2SEB%2FScreenshot%202024-08-29%20at%2010.29.15%20PM.png?alt=media&#x26;token=d717edd4-1728-45fd-9fed-da5b624d80d8" alt=""><figcaption></figcaption></figure>

**Configuring the Conversation Opener:** You can set up a conversation opener and initial questions for your Agent Assistant. This feature displays at the start of a user’s first interaction, highlighting the types of tasks the agent can perform and providing example questions.

<figure><img src="https://1309580823-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJtmXqCN1gltZjmVMGdA%2Fuploads%2FDsROebOFf9hcpl10D3yO%2FScreenshot%202024-08-29%20at%2010.31.58%20PM.png?alt=media&#x26;token=cd300c6b-40e3-4ec9-a21d-2d8aeb52ea7a" alt=""><figcaption></figcaption></figure>

**Debugging and Preview:** Before publishing the Agent Assistant as an application, you can debug and preview it. This step allows you to test the agent’s effectiveness in completing tasks and make necessary adjustments.

**Application Publish:** After debugging your application, click the **“**&#x50;ublish” button in the top right corner to create a standalone AI application. In addition to experiencing the application via a public URL, you can also perform secondary development based on APIs, embed it into websites, and more.
