[GH-ISSUE #1484] [DOCS]: How to use @agent in API mode ? #950

Closed
opened 2026-02-22 18:22:22 -05:00 by yindo · 1 comment
Owner

Originally created by @OxaD on GitHub (May 22, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1484

Description

Hi,

Maybe its's already in the documentation, or as an upcoming feature. But I couldn't find a way to use @agent through the API. I love AnythingLLM especially because of the agents. However, I don't know how to get results from a web search using the API for instance. Or other example, when asking the AI to look in a specific document (which works in agent mode).

Many thanks.

Originally created by @OxaD on GitHub (May 22, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1484 ### Description Hi, Maybe its's already in the documentation, or as an upcoming feature. But I couldn't find a way to use @agent through the API. I love AnythingLLM especially because of the agents. However, I don't know how to get results from a web search using the API for instance. Or other example, when asking the AI to look in a specific document (which works in agent mode). Many thanks.
yindo added the documentation label 2026-02-22 18:22:22 -05:00
yindo closed this issue 2026-02-22 18:22:22 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 22, 2024):

The @agent directive is not available in the API because there is no way to halt the worker since there is no "Stop generation" via the API to prevent runaway agents, which can occur with Open-source models, we don't have agents in the API yet.

They would be able to be used via a separate endpoint or body parameter so we can be sure you have the controls needed to prevent any kind of agent runaways!

@timothycarambat commented on GitHub (May 22, 2024): The `@agent` directive is not available in the API because there is no way to halt the worker since there is no "Stop generation" via the API to prevent runaway agents, which can occur with Open-source models, we don't have agents in the API yet. They would be able to be used via a separate endpoint or body parameter so we can be sure you have the controls needed to prevent any kind of agent runaways!
yindo changed title from [DOCS]: How to use @agent in API mode ? to [GH-ISSUE #1484] [DOCS]: How to use @agent in API mode ? 2026-06-05 14:38:07 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#950