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

Enabled use of @agent (and skills) via dev API calls #2161

Merged
merged 2 commits into from
Aug 22, 2024

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
TuanBC pushed a commit to TuanBC/anything-llm that referenced this pull request Aug 26, 2024
…#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
1 participant