Feat: Allow users to select prompt word templates in agent operators. #9935 (#9936)

### What problem does this PR solve?

Feat: Allow users to select prompt word templates in agent operators.
#9935

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-09-05 15:48:57 +08:00
committed by GitHub
parent 6ff7cfe005
commit 79ca25ec7e
11 changed files with 108 additions and 18 deletions

View File

@ -25,6 +25,7 @@ const {
fetchAgentAvatar,
fetchAgentLogs,
fetchExternalAgentInputs,
prompt,
} = api;
const methods = {
@ -112,6 +113,10 @@ const methods = {
url: fetchExternalAgentInputs,
method: 'get',
},
fetchPrompt: {
url: prompt,
method: 'get',
},
} as const;
const agentService = registerNextServer<keyof typeof methods>(methods);