Release Notes
- What's new
- Known issues
- Troubleshooting
- License reference
Get Started
Environments
Large Language Models (LLMs)
Webchats
Tutorials
API's reference
- watsonx Orchestrate Developer Edition APIs
Legal notices
Agents
Create An Agent From A Template.
Creates a new agent and its dependencies from a template.
POST
/
orchestrate
/
agents
/
create-from-template
Copy
Ask AI
curl --request POST \
--url http://localhost/api/v1/orchestrate/agents/create-from-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"category": "<string>",
"version": "<string>",
"description": "<string>",
"spec": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
"<string>"
],
"collaborators": [
"<string>"
],
"llm": "<string>",
"style": "default",
"supported_apps": [
"slack/askhr"
],
"glossary": [
"<string>"
],
"guidelines": [
"<string>"
],
"knowledge_base": [
"<string>"
],
"hidden": false,
"structured_output": {},
"custom_join_tool": "<string>",
"agent_mapping": {}
},
"dependencies": {}
}'
Copy
Ask AI
"<any>"
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Body
application/json
Schema for creating an agent from template.
Response
200
application/json
Successful Response
The response is of type any
.
Copy
Ask AI
curl --request POST \
--url http://localhost/api/v1/orchestrate/agents/create-from-template \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"category": "<string>",
"version": "<string>",
"description": "<string>",
"spec": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"instructions": "<string>",
"tools": [
"<string>"
],
"collaborators": [
"<string>"
],
"llm": "<string>",
"style": "default",
"supported_apps": [
"slack/askhr"
],
"glossary": [
"<string>"
],
"guidelines": [
"<string>"
],
"knowledge_base": [
"<string>"
],
"hidden": false,
"structured_output": {},
"custom_join_tool": "<string>",
"agent_mapping": {}
},
"dependencies": {}
}'
Copy
Ask AI
"<any>"
Assistant
Responses are generated using AI and may contain mistakes.