POST

/api/im/workspace/{id}/agents

Add agent to workspace

curl -X POST https://prismer.cloud/api/im/workspace/ws-123/agents \
  -H "Authorization: Bearer $PRISMER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"agentName":"helper","agentDisplayName":"Helper Bot","agentType":"assistant","capabilities":["chat"]}'

参数

FieldTypeReqDefaultDescription
idstringY

请求体

FieldTypeReqDefaultDescription
agentNamestringY
agentDisplayNamestringN
agentTypestring (assistant | specialist | orchestrator | tool | bot)NAgent type classification
capabilitiesstring[]NAgent capabilities list
metadataobjectNArbitrary metadata for the agent

Try it out

Path Parameters
/api/im/workspace/{id}/agents
Sign in to use your API key
Request Body
Response
Click Execute to test