curl --request POST \
--url https://api.talqing.com/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": {
"description": "",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": "<unknown>",
"type": "string"
},
"required": true,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false,
"type": "text",
"untrusted": false
}
]
}
}
'import requests
url = "https://api.talqing.com/v1/tasks"
payload = { "config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": ["<string>"],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"hosts": ["<string>"],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": ["<string>"],
"fields": ["<unknown>"],
"items": {
"description": "",
"enum": ["<string>"],
"fields": ["<unknown>"],
"items": "<unknown>",
"type": "string"
},
"required": True,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": False,
"type": "text",
"untrusted": False
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
name: '<string>',
faqs: [
{
faq: {entries: [{answer: '<string>', question: '<string>'}], name: '<string>'},
faq_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
finish_without_result_description: 'Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.',
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
hosts: ['<string>'],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
hosts: ['<string>'],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
max_steps: 25,
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
on_enter: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_exit: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_user_turn_completed: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
output: [
{
description: '<string>',
name: '<string>',
enum: ['<string>'],
fields: ['<unknown>'],
items: {
description: '',
enum: ['<string>'],
fields: ['<unknown>'],
items: '<unknown>',
type: 'string'
},
required: true,
type: 'string'
}
],
prompt: '',
submit_result_description: 'Submit results if you are sure that you have achieved the goal of this task',
timeout_seconds: 300,
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
vars: [
{
name: '<string>',
default: '<string>',
description: '',
required: false,
type: 'text',
untrusted: false
}
]
}
})
};
fetch('https://api.talqing.com/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.talqing.com/v1/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'name' => '<string>',
'faqs' => [
[
'faq' => [
'entries' => [
[
'answer' => '<string>',
'question' => '<string>'
]
],
'name' => '<string>'
],
'faq_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'finish_without_result_description' => 'Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.',
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'hosts' => [
'<string>'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'hosts' => [
'<string>'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'max_steps' => 25,
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'on_enter' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_exit' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_user_turn_completed' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'output' => [
[
'description' => '<string>',
'name' => '<string>',
'enum' => [
'<string>'
],
'fields' => [
'<unknown>'
],
'items' => [
'description' => '',
'enum' => [
'<string>'
],
'fields' => [
'<unknown>'
],
'items' => '<unknown>',
'type' => 'string'
],
'required' => true,
'type' => 'string'
]
],
'prompt' => '',
'submit_result_description' => 'Submit results if you are sure that you have achieved the goal of this task',
'timeout_seconds' => 300,
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => false,
'type' => 'text',
'untrusted' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.talqing.com/v1/tasks"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.talqing.com/v1/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": {
"description": "",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": "<unknown>",
"type": "string"
},
"required": true,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false,
"type": "text",
"untrusted": false
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_run": {
"background": false,
"billing_status": "pending",
"content_deleted_at": "2023-11-07T05:31:56Z",
"content_expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"ended_at": "2023-11-07T05:31:56Z",
"error": {
"message": "<string>",
"type": "invalid_input"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"metadata": {},
"output": {},
"provider_cost": 123,
"started_at": "2023-11-07T05:31:56Z",
"status": "queued",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"task_version": 123,
"tries": 0
},
"published_at": "2023-11-07T05:31:56Z",
"published_version": 123,
"updated_at": "2023-11-07T05:31:56Z",
"versions": [
{
"published_at": "2023-11-07T05:31:56Z",
"version": 123,
"published_by": "<string>"
}
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}Create Task
Create an agent task: an agent nobody talks to, which takes named inputs and returns a typed result.
output is what makes this a task rather than a chat agent — declare the
fields the model must produce and it is given a submit_result tool built
from them. vars are its inputs, read as {{vars.name}}. The task starts
unpublished; publish it before running it with POST /task-runs.
curl --request POST \
--url https://api.talqing.com/v1/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": {
"description": "",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": "<unknown>",
"type": "string"
},
"required": true,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false,
"type": "text",
"untrusted": false
}
]
}
}
'import requests
url = "https://api.talqing.com/v1/tasks"
payload = { "config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": ["<string>"],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"hosts": ["<string>"],
"model": "gpt-5.6-luna",
"priority": False,
"provider": "openai"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": ["<string>"],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": ["<string>"],
"fields": ["<unknown>"],
"items": {
"description": "",
"enum": ["<string>"],
"fields": ["<unknown>"],
"items": "<unknown>",
"type": "string"
},
"required": True,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": False,
"json_schema": {},
"long_running_task": False,
"operations": [
{
"config": {
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": False,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"key": "<string>"
}
],
"silent": False
}
],
"silent": False
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": False,
"type": "text",
"untrusted": False
}
]
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
config: {
name: '<string>',
faqs: [
{
faq: {entries: [{answer: '<string>', question: '<string>'}], name: '<string>'},
faq_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
finish_without_result_description: 'Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.',
llm: {
builtin_tools: [{type: '<string>', config: {}}],
fallback: {
builtin_tools: [{type: '<string>', config: {}}],
hosts: ['<string>'],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
hosts: ['<string>'],
model: 'gpt-5.6-luna',
priority: false,
provider: 'openai'
},
max_steps: 25,
mcps: [
{
integration_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
mcp: {
name: '<string>',
url: '<string>',
allowed_tools: ['<string>'],
headers: {},
tools_namespace: ''
}
}
],
on_enter: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_exit: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
on_user_turn_completed: {
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
},
output: [
{
description: '<string>',
name: '<string>',
enum: ['<string>'],
fields: ['<unknown>'],
items: {
description: '',
enum: ['<string>'],
fields: ['<unknown>'],
items: '<unknown>',
type: 'string'
},
required: true,
type: 'string'
}
],
prompt: '',
submit_result_description: 'Submit results if you are sure that you have achieved the goal of this task',
timeout_seconds: 300,
timezone: '<string>',
tools: [
{
tool: {
name: '<string>',
description: '',
disable_interruptions: false,
json_schema: {},
long_running_task: false,
operations: [
{
config: {
url: '<string>',
body: JSON.stringify('<unknown>'),
headers: {},
query: {},
timeout: 60
},
kind: 'http',
background_execution: false,
on_error: 'abort',
publish_fields: [{path: '<string>', key: '<string>'}],
silent: false
}
],
silent: false
},
tool_id: '<string>',
tool_version: 123
}
],
vars: [
{
name: '<string>',
default: '<string>',
description: '',
required: false,
type: 'text',
untrusted: false
}
]
}
})
};
fetch('https://api.talqing.com/v1/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.talqing.com/v1/tasks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'config' => [
'name' => '<string>',
'faqs' => [
[
'faq' => [
'entries' => [
[
'answer' => '<string>',
'question' => '<string>'
]
],
'name' => '<string>'
],
'faq_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'finish_without_result_description' => 'Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.',
'llm' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'fallback' => [
'builtin_tools' => [
[
'type' => '<string>',
'config' => [
]
]
],
'hosts' => [
'<string>'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'hosts' => [
'<string>'
],
'model' => 'gpt-5.6-luna',
'priority' => false,
'provider' => 'openai'
],
'max_steps' => 25,
'mcps' => [
[
'integration_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'mcp' => [
'name' => '<string>',
'url' => '<string>',
'allowed_tools' => [
'<string>'
],
'headers' => [
],
'tools_namespace' => ''
]
]
],
'on_enter' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_exit' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'on_user_turn_completed' => [
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
],
'output' => [
[
'description' => '<string>',
'name' => '<string>',
'enum' => [
'<string>'
],
'fields' => [
'<unknown>'
],
'items' => [
'description' => '',
'enum' => [
'<string>'
],
'fields' => [
'<unknown>'
],
'items' => '<unknown>',
'type' => 'string'
],
'required' => true,
'type' => 'string'
]
],
'prompt' => '',
'submit_result_description' => 'Submit results if you are sure that you have achieved the goal of this task',
'timeout_seconds' => 300,
'timezone' => '<string>',
'tools' => [
[
'tool' => [
'name' => '<string>',
'description' => '',
'disable_interruptions' => false,
'json_schema' => [
],
'long_running_task' => false,
'operations' => [
[
'config' => [
'url' => '<string>',
'body' => '<unknown>',
'headers' => [
],
'query' => [
],
'timeout' => 60
],
'kind' => 'http',
'background_execution' => false,
'on_error' => 'abort',
'publish_fields' => [
[
'path' => '<string>',
'key' => '<string>'
]
],
'silent' => false
]
],
'silent' => false
],
'tool_id' => '<string>',
'tool_version' => 123
]
],
'vars' => [
[
'name' => '<string>',
'default' => '<string>',
'description' => '',
'required' => false,
'type' => 'text',
'untrusted' => false
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.talqing.com/v1/tasks"
payload := strings.NewReader("{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.talqing.com/v1/tasks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.talqing.com/v1/tasks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"config\": {\n \"name\": \"<string>\",\n \"faqs\": [\n {\n \"faq\": {\n \"entries\": [\n {\n \"answer\": \"<string>\",\n \"question\": \"<string>\"\n }\n ],\n \"name\": \"<string>\"\n },\n \"faq_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"finish_without_result_description\": \"Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.\",\n \"llm\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"fallback\": {\n \"builtin_tools\": [\n {\n \"type\": \"<string>\",\n \"config\": {}\n }\n ],\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"hosts\": [\n \"<string>\"\n ],\n \"model\": \"gpt-5.6-luna\",\n \"priority\": false,\n \"provider\": \"openai\"\n },\n \"max_steps\": 25,\n \"mcps\": [\n {\n \"integration_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"mcp\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\",\n \"allowed_tools\": [\n \"<string>\"\n ],\n \"headers\": {},\n \"tools_namespace\": \"\"\n }\n }\n ],\n \"on_enter\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_exit\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"on_user_turn_completed\": {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n },\n \"output\": [\n {\n \"description\": \"<string>\",\n \"name\": \"<string>\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": {\n \"description\": \"\",\n \"enum\": [\n \"<string>\"\n ],\n \"fields\": [\n \"<unknown>\"\n ],\n \"items\": \"<unknown>\",\n \"type\": \"string\"\n },\n \"required\": true,\n \"type\": \"string\"\n }\n ],\n \"prompt\": \"\",\n \"submit_result_description\": \"Submit results if you are sure that you have achieved the goal of this task\",\n \"timeout_seconds\": 300,\n \"timezone\": \"<string>\",\n \"tools\": [\n {\n \"tool\": {\n \"name\": \"<string>\",\n \"description\": \"\",\n \"disable_interruptions\": false,\n \"json_schema\": {},\n \"long_running_task\": false,\n \"operations\": [\n {\n \"config\": {\n \"url\": \"<string>\",\n \"body\": \"<unknown>\",\n \"headers\": {},\n \"query\": {},\n \"timeout\": 60\n },\n \"kind\": \"http\",\n \"background_execution\": false,\n \"on_error\": \"abort\",\n \"publish_fields\": [\n {\n \"path\": \"<string>\",\n \"key\": \"<string>\"\n }\n ],\n \"silent\": false\n }\n ],\n \"silent\": false\n },\n \"tool_id\": \"<string>\",\n \"tool_version\": 123\n }\n ],\n \"vars\": [\n {\n \"name\": \"<string>\",\n \"default\": \"<string>\",\n \"description\": \"\",\n \"required\": false,\n \"type\": \"text\",\n \"untrusted\": false\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"config": {
"name": "<string>",
"faqs": [
{
"faq": {
"entries": [
{
"answer": "<string>",
"question": "<string>"
}
],
"name": "<string>"
},
"faq_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"finish_without_result_description": "Finish without result only if you have failed to achieve the goal of this task and would like to give up rather than continue.",
"llm": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"fallback": {
"builtin_tools": [
{
"type": "<string>",
"config": {}
}
],
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"hosts": [
"<string>"
],
"model": "gpt-5.6-luna",
"priority": false,
"provider": "openai",
"reasoning_effort": "none"
},
"max_steps": 25,
"mcps": [
{
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mcp": {
"name": "<string>",
"url": "<string>",
"allowed_tools": [
"<string>"
],
"headers": {},
"tools_namespace": ""
}
}
],
"on_enter": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_exit": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"on_user_turn_completed": {
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
},
"output": [
{
"description": "<string>",
"name": "<string>",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": {
"description": "",
"enum": [
"<string>"
],
"fields": [
"<unknown>"
],
"items": "<unknown>",
"type": "string"
},
"required": true,
"type": "string"
}
],
"prompt": "",
"submit_result_description": "Submit results if you are sure that you have achieved the goal of this task",
"timeout_seconds": 300,
"timezone": "<string>",
"tools": [
{
"tool": {
"name": "<string>",
"description": "",
"disable_interruptions": false,
"json_schema": {},
"long_running_task": false,
"operations": [
{
"config": {
"method": "GET",
"url": "<string>",
"body": "<unknown>",
"headers": {},
"query": {},
"timeout": 60
},
"kind": "http",
"background_execution": false,
"on_error": "abort",
"publish_fields": [
{
"path": "<string>",
"store": "tooldata",
"key": "<string>"
}
],
"silent": false
}
],
"silent": false
},
"tool_id": "<string>",
"tool_version": 123
}
],
"vars": [
{
"name": "<string>",
"default": "<string>",
"description": "",
"required": false,
"type": "text",
"untrusted": false
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_run": {
"background": false,
"billing_status": "pending",
"content_deleted_at": "2023-11-07T05:31:56Z",
"content_expires_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"duration_ms": 123,
"ended_at": "2023-11-07T05:31:56Z",
"error": {
"message": "<string>",
"type": "invalid_input"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"idempotency_key": "<string>",
"metadata": {},
"output": {},
"provider_cost": 123,
"started_at": "2023-11-07T05:31:56Z",
"status": "queued",
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"task_version": 123,
"tries": 0
},
"published_at": "2023-11-07T05:31:56Z",
"published_version": 123,
"updated_at": "2023-11-07T05:31:56Z",
"versions": [
{
"published_at": "2023-11-07T05:31:56Z",
"version": 123,
"published_by": "<string>"
}
]
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>",
"code": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
LiveKit's AgentTask: an agent with a typed result, on someone else's stack.
It declares no channel, no media and no greeting. Entered by an agent it
speaks with that call's voice and hears with its ears; run on its own from
POST /task-runs it is an LLM with tools and nobody to talk to. Which
of the two happens is the caller's, never the task's.
Show child attributes
Show child attributes
Response
Successful Response
LiveKit's AgentTask: an agent with a typed result, on someone else's stack.
It declares no channel, no media and no greeting. Entered by an agent it
speaks with that call's voice and hears with its ears; run on its own from
POST /task-runs it is an LLM with tools and nobody to talk to. Which
of the two happens is the caller's, never the task's.
Show child attributes
Show child attributes
A run without its trace, config or inputs: the list item, the
task_run.completed webhook body and a task's last_run, one shape for all three.
error is the same object a full run carries rather than a bare type, so
one reader answers "how did it go" for both.
Show child attributes
Show child attributes
Show child attributes
Show child attributes