From 80d8363541acb56bd746c31a330826716cc313d8 Mon Sep 17 00:00:00 2001 From: Siddhant Rai <47355538+siiddhantt@users.noreply.github.com> Date: Tue, 7 Oct 2025 15:30:14 +0530 Subject: [PATCH] feat: agent templates and seeding premade agents (#1910) * feat: agent templates and seeding premade agents * fix: ensure ObjectId is used for source reference in agent configuration * fix: improve source handling in DatabaseSeeder and update tool config processing * feat: add prompt handling in DatabaseSeeder for agent configuration * Docs premade agents * link to prescraped docs * feat: add template agent retrieval and adopt agent functionality * feat: simplify agent descriptions in premade_agents.yaml added docs --------- Co-authored-by: Pavel Co-authored-by: Alex --- application/agents/react_agent.py | 2 +- application/api/user/agents/routes.py | 2 +- frontend/src/agents/AgentCard.tsx | 2 +- frontend/src/agents/AgentsList.tsx | 2 +- frontend/src/agents/NewAgent.tsx | 2 +- frontend/src/agents/agents.config.ts | 2 +- frontend/src/agents/index.tsx | 2 +- frontend/src/store.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/application/agents/react_agent.py b/application/agents/react_agent.py index 116fa4aa..92be75f6 100644 --- a/application/agents/react_agent.py +++ b/application/agents/react_agent.py @@ -235,4 +235,4 @@ class ReActAgent(BaseAgent): ) except Exception as e: logger.error(f"Error extracting content: {e}") - return "".join(collected) + return "".join(collected) \ No newline at end of file diff --git a/application/api/user/agents/routes.py b/application/api/user/agents/routes.py index d0c74923..a9ab6580 100644 --- a/application/api/user/agents/routes.py +++ b/application/api/user/agents/routes.py @@ -1434,4 +1434,4 @@ class RemoveSharedAgent(Resource): current_app.logger.error(f"Error removing shared agent: {err}") return make_response( jsonify({"success": False, "message": "Server error"}), 500 - ) + ) \ No newline at end of file diff --git a/frontend/src/agents/AgentCard.tsx b/frontend/src/agents/AgentCard.tsx index f4c88c9b..6df11e16 100644 --- a/frontend/src/agents/AgentCard.tsx +++ b/frontend/src/agents/AgentCard.tsx @@ -320,4 +320,4 @@ export default function AgentCard({ /> ); -} +} \ No newline at end of file diff --git a/frontend/src/agents/AgentsList.tsx b/frontend/src/agents/AgentsList.tsx index f550a993..e9aa1bcd 100644 --- a/frontend/src/agents/AgentsList.tsx +++ b/frontend/src/agents/AgentsList.tsx @@ -603,4 +603,4 @@ function AgentSection({ ); -} +} \ No newline at end of file diff --git a/frontend/src/agents/NewAgent.tsx b/frontend/src/agents/NewAgent.tsx index 9b7d951e..7b145baa 100644 --- a/frontend/src/agents/NewAgent.tsx +++ b/frontend/src/agents/NewAgent.tsx @@ -1391,4 +1391,4 @@ function AddPromptModal({ handleAddPrompt={handleAddPrompt} /> ); -} +} \ No newline at end of file diff --git a/frontend/src/agents/agents.config.ts b/frontend/src/agents/agents.config.ts index 3569600e..35761e2e 100644 --- a/frontend/src/agents/agents.config.ts +++ b/frontend/src/agents/agents.config.ts @@ -41,4 +41,4 @@ export const agentSectionsConfig = [ selectData: selectSharedAgents, updateAction: setSharedAgents, }, -]; +]; \ No newline at end of file diff --git a/frontend/src/agents/index.tsx b/frontend/src/agents/index.tsx index 988345ad..64481985 100644 --- a/frontend/src/agents/index.tsx +++ b/frontend/src/agents/index.tsx @@ -18,4 +18,4 @@ export default function Agents() { } /> ); -} +} \ No newline at end of file diff --git a/frontend/src/store.ts b/frontend/src/store.ts index 571a367c..0bfb51c6 100644 --- a/frontend/src/store.ts +++ b/frontend/src/store.ts @@ -78,4 +78,4 @@ export default store; // TODO : use https://redux-toolkit.js.org/tutorials/typescript#define-typed-hooks everywere instead of direct useDispatch -// TODO : streamline async state management +// TODO : streamline async state management \ No newline at end of file