feat(ui): Action playground config and parameter forms (#129)

This commit is contained in:
Richard Palethorpe
2025-04-03 14:26:14 +01:00
committed by GitHub
parent ffee9d8307
commit 1eee5b5a32
3 changed files with 101 additions and 141 deletions

View File

@@ -216,6 +216,14 @@ export const actionApi = {
return handleResponse(response);
},
// Get agent configuration metadata
getAgentConfigMeta: async () => {
const response = await fetch(buildUrl(API_CONFIG.endpoints.agentConfigMetadata), {
headers: API_CONFIG.headers
});
return handleResponse(response);
},
// Execute an action for an agent
executeAction: async (name, actionData) => {
const response = await fetch(buildUrl(API_CONFIG.endpoints.executeAction(name)), {