chore(ui): Remove original UI/API routes

This commit is contained in:
Richard Palethorpe
2025-03-31 22:10:04 +01:00
parent cafaa0e153
commit f70985362d
5 changed files with 79 additions and 82 deletions

View File

@@ -1,7 +1,6 @@
import React from 'react';
import FormFieldDefinition from '../common/FormFieldDefinition';
import DynamicPromptForm from '../DynamicPromptForm';
import DynamicPromptForm from '../DynamicPromptForm';
/**
* Prompts & Goals section of the agent form

View File

@@ -176,7 +176,7 @@ export const agentApi = {
export const chatApi = {
// Send a message to an agent using the JSON-based API
sendMessage: async (name, message) => {
const response = await fetch(buildUrl(API_CONFIG.endpoints.chatApi(name)), {
const response = await fetch(buildUrl(API_CONFIG.endpoints.chat(name)), {
method: 'POST',
headers: API_CONFIG.headers,
body: JSON.stringify({ message }),

View File

@@ -21,10 +21,11 @@ export const API_CONFIG = {
agents: '/api/agents',
agentConfig: (name) => `/api/agent/${name}/config`,
agentConfigMetadata: '/api/meta/agent/config',
createAgent: '/create',
createAgent: '/api/agent/create',
deleteAgent: (name) => `/api/agent/${name}`,
pauseAgent: (name) => `/api/agent/${name}/pause`,
startAgent: (name) => `/api/agent/${name}/start`,
exportAgent: (name) => `/settings/export/${name}`,
importAgent: '/settings/import',
@@ -33,8 +34,7 @@ export const API_CONFIG = {
createGroup: '/api/agent/group/create',
// Chat endpoints
chat: (name) => `/chat/${name}`,
chatApi: (name) => `/api/chat/${name}`,
chat: (name) => `/api/chat/${name}`,
notify: (name) => `/notify/${name}`,
responses: '/v1/responses',
@@ -42,8 +42,8 @@ export const API_CONFIG = {
sse: (name) => `/sse/${name}`,
// Action endpoints
listActions: '/actions',
executeAction: (name) => `/action/${name}/run`,
listActions: '/api/actions',
executeAction: (name) => `/api/action/${name}/run`,
// Status endpoint
status: (name) => `/status/${name}`,