Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring #30454

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/source/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@
title: Notebooks with examples
- local: community
title: Community resources
- local: custom_tools
title: Custom Tools and Prompts
- local: troubleshooting
title: Troubleshoot
- local: hf_quantizer
Expand Down
495 changes: 495 additions & 0 deletions docs/source/en/agents.md

Large diffs are not rendered by default.

798 changes: 0 additions & 798 deletions docs/source/en/custom_tools.md

This file was deleted.

30 changes: 14 additions & 16 deletions docs/source/en/main_classes/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,28 @@ contains the API docs for the underlying classes.

## Agents

We provide three types of agents: [`HfAgent`] uses inference endpoints for opensource models, [`LocalAgent`] uses a model of your choice locally and [`OpenAiAgent`] uses OpenAI closed models.
We provide two types of agents, based on the main [`Agent`] class:
- [`CodeAgent`] acts in one shot, generating code to solve the task, then executes it at once.
- [`ReactAgent`] acts step by step, each step consisting of one thought, then one tool call and execution. It has two classes:
- [`ReactJSONAgent`] writes its tool calls in JSON.
- [`ReactCodeAgent`] writes its tool calls in Python code.

### HfAgent

[[autodoc]] HfAgent
### CodeAgent

### LocalAgent
[[autodoc]] CodeAgent

[[autodoc]] LocalAgent
### React agents

### OpenAiAgent
[[autodoc]] ReactAgent

[[autodoc]] OpenAiAgent
[[autodoc]] ReactJSONAgent

### AzureOpenAiAgent

[[autodoc]] AzureOpenAiAgent
[[autodoc]] ReactCodeAgent

### Agent

[[autodoc]] Agent
- chat
- run
- prepare_for_new_chat

## Tools

Expand Down Expand Up @@ -94,12 +92,12 @@ These types have three specific purposes:

### AgentText

[[autodoc]] transformers.tools.agent_types.AgentText
[[autodoc]] transformers.agents.agent_types.AgentText

### AgentImage

[[autodoc]] transformers.tools.agent_types.AgentImage
[[autodoc]] transformers.agents.agent_types.AgentImage

### AgentAudio

[[autodoc]] transformers.tools.agent_types.AgentAudio
[[autodoc]] transformers.agents.agent_types.AgentAudio
323 changes: 0 additions & 323 deletions docs/source/en/transformers_agents.md

This file was deleted.