θΏ™ζ˜―indexlocζδΎ›ηš„ζœεŠ‘οΌŒδΈθ¦θΎ“ε…₯任何密码
Skip to content

Conversation

@timothycarambat
Copy link
Member

Pull Request Type

  • ✨ feat
  • πŸ› fix
  • ♻️ refactor
  • πŸ’„ style
  • πŸ”¨ chore
  • πŸ“ docs

Relevant Issues

resolves #2145

What is in this change?

  • Enable use of stateless @agent via REST API for workspace /chat and /stream-chat
  • Calls are now "one-off" since a REST session cannot exist. If you want to call a tool, start the prompt with @agent.
  • LLM Agent provider must still be set for workspace being chatted with as you would in the normal UI
  • Supports all tools available in the main app.

Additional Information

  • Minor refactor of AgentHandler so methods can be utilized in extended EphemeralAgengHandler call

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

@timothycarambat timothycarambat merged commit 2de9e49 into master Aug 22, 2024
@timothycarambat timothycarambat deleted the 2145-agents-via-dev-api branch August 22, 2024 20:12
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
…#2161)

* Use `@agent` via dev API

* Move EphemeralEventListener to same file as agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT]: @agent support in chat API

2 participants