feat(ui): Action playground config and parameter forms (#129)
This commit is contained in:
committed by
GitHub
parent
ffee9d8307
commit
1eee5b5a32
8
webui/react-ui/src/utils/api.js
vendored
8
webui/react-ui/src/utils/api.js
vendored
@@ -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)), {
|
||||
|
||||
Reference in New Issue
Block a user