Skip to content

Wrap the agent in a FastAPI Server and make it a standalone service #249

@Ar-temis

Description

@Ar-temis

What will be the goal

The agent and the backend have dependency correlations and because of that it really hard to update development environments. If we separate the environments, we can decouple a lot of stuff and make life easy for both backend and agent teams.

What APIs should be available

  • /generate (you can rename this) which is a POST route:
    • Should be able to specify tools to use with specific parameters such as user_id
    • Should be able to generate an answer to a given prompt. Should yield the answer.
    • Should call the PersistentMemory module after the last token
  • More to be suggested

Breaking changes

The agent will be on a fastAPI server so the backend will be doing http requests to it.

Any other breaking changes we should consider? Let's discuss the benefit to development energy ratio.

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions