Skip to content

Commit c371fc2

Browse files
committed
feat: add basic agent section
1 parent a6caeae commit c371fc2

File tree

3 files changed

+41
-9
lines changed

3 files changed

+41
-9
lines changed

docs/agents/basic.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Understanding Agents
2+
3+
In the context of AI and chatbots, agents are "intelligent" entities designed to perform tasks autonomously or semi-autonomously. They leverage tools and function calling to enhance their capabilities, allowing them to interact with users and perform complex operations efficiently.
4+
5+
## What are Agents?
6+
7+
Agents can be thought of as specialized programs that respond to user inputs or environmental stimuli. They possess certain characteristics:
8+
9+
- **Autonomy**: Agents can operate without direct human intervention, making decisions based on predefined logic or learned behaviors.
10+
- **Reactivity**: They can respond to changes in their environment, allowing them to adapt their behavior based on real-time information.
11+
- **Proactivity**: Some agents can take initiative, anticipating user needs or system requirements and acting accordingly.
12+
13+
## Tools and Function Calling
14+
15+
Agents utilize tools and function calling mechanisms to perform specific tasks. These tools can be thought of as functions or APIs that agents can invoke to achieve their objectives. Here are some key concepts:
16+
17+
### Tools
18+
19+
- **Definition**: Tools are pre-defined functions or APIs that agents can access to carry out specific operations. They provide agents with the ability to interact with external systems, databases, or services.
20+
- **Examples**: Common tools include APIs for fetching data, processing transactions, sending notifications, and more. In chatbot scenarios, tools might also include integrations with platforms like Google Calendar for scheduling or payment gateways for processing transactions.
21+
22+
### Function Calling
23+
24+
- **Definition**: Function calling refers to the mechanism by which agents invoke tools to perform tasks. This can involve sending requests, handling responses, and processing the results.
25+
- **Process**:
26+
1. **Identify**: The agent identifies a need or task that requires external assistance.
27+
2. **Invoke**: The agent calls the appropriate function/tool to fulfill the request.
28+
3. **Receive Response**: The agent waits for a response from the tool, which may include data or confirmation of the completed task.
29+
4. **Act**: Based on the response, the agent takes further actions, such as updating a user or executing additional tasks.
30+
31+
## Conclusion
32+
33+
Agents, equipped with tools and the ability to call functions, provide a powerful means of enhancing user interaction and automating processes. By leveraging these capabilities, agents can deliver more responsive and intelligent services, ultimately improving the overall user experience.

docs/agents/index.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

mkdocs.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ markdown_extensions:
119119

120120
# Page tree
121121
nav:
122-
- Index: index.md
122+
- Introduction: index.md
123123
- Our first bot:
124124
- Create a bot: bot/create-bot.md
125125
- Cloning the template: bot/cloning.md
@@ -129,9 +129,12 @@ nav:
129129
- Create the model register: chatbot/register.md
130130
- Running a basic chatbot: chatbot/basic.md
131131
- Adding Memory : chatbot/memory.md
132-
- Data Augmentation:
133-
- Data Augmentation: rag/index.md
132+
- Enhanced Context with Data:
133+
- Basic Data Augmentation: rag/basic.md
134+
- Retrieval-Augmented Generation: rag/rag.md
135+
- Dynamic Data Augmentation with Tools: rag/tools.md
134136
- Agents:
135-
- Agents: agents/index.md
137+
- Agents: agents/basic.md
136138
- Full code: full-code.md
137-
139+
140+

0 commit comments

Comments
 (0)