@deepraxis/sdk 0.1.1-dev.27bb19e → 0.1.1-dev.349f88a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/METHODS.md +31 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +66 -7
- package/dist/generated/sdk.gen.js +145 -6
- package/dist/generated/types.gen.d.ts +944 -81
- package/dist/operations.generated.d.ts +242 -35
- package/dist/operations.generated.js +289 -35
- package/dist/resources.generated.d.ts +73 -24
- package/dist/resources.generated.js +21 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ export const operations = [
|
|
|
4
4
|
"resource": "agent.agents",
|
|
5
5
|
"method": "list",
|
|
6
6
|
"summary": "List agents",
|
|
7
|
-
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents
|
|
7
|
+
"description": "List the agents of the workspace behind your API key, newest first, in pages of at most 100 (default 20). Use it to find an agent id before creating a session; to read one agent use agents.retrieve, to see its history use agents.versions.list. Archived agents are hidden unless include_archived is true. Filter kind=general or kind=personal for durable-computer agents, kind=service for per-session environments, or kind=assume for external MCP clients. Pass next_page from the response as page to read the next page; a null next_page means the end.",
|
|
8
8
|
"http": "GET",
|
|
9
9
|
"path": "/agent/v1/agents",
|
|
10
10
|
"streaming": "no",
|
|
@@ -51,7 +51,8 @@ export const operations = [
|
|
|
51
51
|
"enum": [
|
|
52
52
|
"general",
|
|
53
53
|
"personal",
|
|
54
|
-
"service"
|
|
54
|
+
"service",
|
|
55
|
+
"assume"
|
|
55
56
|
],
|
|
56
57
|
"required": false,
|
|
57
58
|
"description": "Filter agents by their immutable kind, including agents created before kind was recorded."
|
|
@@ -62,7 +63,7 @@ export const operations = [
|
|
|
62
63
|
"resource": "agent.agents",
|
|
63
64
|
"method": "create",
|
|
64
65
|
"summary": "Create agent",
|
|
65
|
-
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}.",
|
|
66
|
+
"description": "Create a reusable agent definition, then pass its returned id to sessions.create to start a conversation. The definition includes model, system prompt, tools, MCP servers and an optional multiagent roster. It is saved as version 1; real updates create new versions. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Use tools: [{type: \"agent_toolset_20260401\"}] for built-in tools including codemode, skill and agent; inspect toolsets.list for names and schemas, and keep bash enabled for native additions. To offer only some tools, set default_config: {enabled: false} and list the tools to keep in configs, e.g. tools: [{type: \"agent_toolset_20260401\", default_config: {enabled: false}, configs: [{name: \"codemode\", enabled: true}, {name: \"bash\", enabled: true, permission_policy: {type: \"always_ask\"}}]}]; every tool not listed, including todo_write, enter_plan_mode, ask_user_question and goal_read, follows default_config, and the response echoes it. codemode runs through bash, so enabling codemode while bash is disabled returns 400. Optional mcp_toolset entries pair with mcp_servers. model accepts platform model IDs such as deepseek-flash, not only the Claude IDs in the protocol examples. model.settings.reasoning sets default thinking; other extra model controls return 400. model and every models.allowed entry must be a catalog model that can run an agent: an unknown id returns 400 \"model <id> is not in the model catalog\" and an embedding, image or speech model returns 400 \"model <id> cannot run an agent\". name is a label, not a unique key: 1 to 256 characters after trimming, no NUL or line breaks. avatar is trimmed, must not contain spaces or point at a loopback, private or internal host, and its scheme is stored in lowercase. script and workflow binding ids are stored in lowercase, the form automation matches; bindings together with environment_id null return 400 because bindings need a machine. Example: {\"name\":\"helper\",\"model\":{\"id\":\"deepseek-flash\"},\"tools\":[{\"type\":\"agent_toolset_20260401\"}]}. For kind assume, provide name without model, models, subagent_model, subagents or multiagent; omit computer_id to register a new computer named after the agent without starting an instance, or provide an existing computer_id; vault_ids are accepted, bindings and environment_id are refused. Drive assume agents over MCP at /agent/v1/agents/{id}/mcp.",
|
|
66
67
|
"http": "POST",
|
|
67
68
|
"path": "/agent/v1/agents",
|
|
68
69
|
"streaming": "no",
|
|
@@ -75,8 +76,8 @@ export const operations = [
|
|
|
75
76
|
{
|
|
76
77
|
"name": "model",
|
|
77
78
|
"type": "object",
|
|
78
|
-
"required":
|
|
79
|
-
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
|
|
79
|
+
"required": false,
|
|
80
|
+
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
83
|
"name": "name",
|
|
@@ -142,10 +143,11 @@ export const operations = [
|
|
|
142
143
|
"enum": [
|
|
143
144
|
"general",
|
|
144
145
|
"personal",
|
|
145
|
-
"service"
|
|
146
|
+
"service",
|
|
147
|
+
"assume"
|
|
146
148
|
],
|
|
147
149
|
"required": false,
|
|
148
|
-
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
150
|
+
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
|
|
149
151
|
},
|
|
150
152
|
{
|
|
151
153
|
"name": "computer_id",
|
|
@@ -237,7 +239,7 @@ export const operations = [
|
|
|
237
239
|
{
|
|
238
240
|
"name": "agent_id",
|
|
239
241
|
"sdkName": "agent_id",
|
|
240
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
242
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
241
243
|
}
|
|
242
244
|
],
|
|
243
245
|
"query": [
|
|
@@ -253,7 +255,7 @@ export const operations = [
|
|
|
253
255
|
"resource": "agent.agents",
|
|
254
256
|
"method": "update",
|
|
255
257
|
"summary": "Update agent",
|
|
256
|
-
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400.",
|
|
258
|
+
"description": "Save configuration changes as a new immutable version. Send latest_version from a default retrieve or update response as the request version for optimistic concurrency; a stale value returns 409. apply defaults to true and makes the new version effective; apply false saves without changing active_version. The response contains the effective configuration, with version equal to active_version and latest_version naming the newest saved version. An unchanged configuration, including a note-only update, is a no-op returning 200 and the current effective version without creating or activating a version. version_note records up to 280 characters only when a configuration change creates a new version; null is equivalent to omission. Use agents.versions.apply to activate an existing saved version. Existing sessions and tokens keep their version. Omitted fields keep their value. multiagent takes null or a coordinator roster; subagent_model keeps its value when omitted and is cleared by null. Archived agents cannot be updated. tools: [] removes every tool, while tools: null returns 400 (tools cannot be null; send [] to remove every tool). On update, omit skills to keep them, send an array to replace them, or send [] or null to clear them. skills attaches uploaded custom skills as [{type: \"custom\", skill_id, version?}] (skill_id from skills.create or skills.list; at most 20, no repeated skill_id). Omit version, or send \"latest\", to use the skill's newest version when a session starts. type anthropic returns 400. Assume agents reject model, models, subagent_model, subagents and multiagent on every update; other fields follow the general agent rules, with vault_ids also accepted.",
|
|
257
259
|
"http": "POST",
|
|
258
260
|
"path": "/agent/v1/agents/{agent_id}",
|
|
259
261
|
"streaming": "no",
|
|
@@ -262,7 +264,7 @@ export const operations = [
|
|
|
262
264
|
{
|
|
263
265
|
"name": "agent_id",
|
|
264
266
|
"sdkName": "agent_id",
|
|
265
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
267
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
266
268
|
}
|
|
267
269
|
],
|
|
268
270
|
"query": [],
|
|
@@ -292,7 +294,7 @@ export const operations = [
|
|
|
292
294
|
"name": "model",
|
|
293
295
|
"type": "object",
|
|
294
296
|
"required": false,
|
|
295
|
-
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected."
|
|
297
|
+
"description": "A model id from the Praxis model catalog (`praxis.model.models.list`), or a `model_config` object for additional configuration control. Unlike Anthropic, Claude model ids other than those in the catalog are rejected. Forbidden and omitted on assume agents."
|
|
296
298
|
},
|
|
297
299
|
{
|
|
298
300
|
"name": "multiagent",
|
|
@@ -357,10 +359,11 @@ export const operations = [
|
|
|
357
359
|
"enum": [
|
|
358
360
|
"general",
|
|
359
361
|
"personal",
|
|
360
|
-
"service"
|
|
362
|
+
"service",
|
|
363
|
+
"assume"
|
|
361
364
|
],
|
|
362
365
|
"required": false,
|
|
363
|
-
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error."
|
|
366
|
+
"description": "Immutable agent kind. general and personal require computer_id; service cannot bind a computer. Omit on create to infer from computer_id (general with a computer, service without). On update, the same kind is ignored; changing kind or crossing its computer binding returns 400 invalid_request_error. Assume agents use a durable computer driven over MCP without a conversation model; model, models, subagent_model, subagents and multiagent are forbidden and omitted."
|
|
364
367
|
},
|
|
365
368
|
{
|
|
366
369
|
"name": "computer_id",
|
|
@@ -452,7 +455,7 @@ export const operations = [
|
|
|
452
455
|
{
|
|
453
456
|
"name": "agent_id",
|
|
454
457
|
"sdkName": "agent_id",
|
|
455
|
-
"description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for."
|
|
458
|
+
"description": "Service agent id from agent creation or listing; with a customer access token, the agent the token was issued for. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
456
459
|
}
|
|
457
460
|
],
|
|
458
461
|
"query": []
|
|
@@ -470,7 +473,7 @@ export const operations = [
|
|
|
470
473
|
{
|
|
471
474
|
"name": "agent_id",
|
|
472
475
|
"sdkName": "agent_id",
|
|
473
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
476
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
474
477
|
}
|
|
475
478
|
],
|
|
476
479
|
"query": []
|
|
@@ -488,7 +491,7 @@ export const operations = [
|
|
|
488
491
|
{
|
|
489
492
|
"name": "agent_id",
|
|
490
493
|
"sdkName": "agent_id",
|
|
491
|
-
"description": "Active service agent id from agent creation or listing."
|
|
494
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
492
495
|
}
|
|
493
496
|
],
|
|
494
497
|
"query": [
|
|
@@ -541,7 +544,7 @@ export const operations = [
|
|
|
541
544
|
{
|
|
542
545
|
"name": "agent_id",
|
|
543
546
|
"sdkName": "agent_id",
|
|
544
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
547
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
545
548
|
}
|
|
546
549
|
],
|
|
547
550
|
"query": [],
|
|
@@ -563,7 +566,7 @@ export const operations = [
|
|
|
563
566
|
{
|
|
564
567
|
"name": "agent_id",
|
|
565
568
|
"sdkName": "agent_id",
|
|
566
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
569
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
567
570
|
}
|
|
568
571
|
],
|
|
569
572
|
"query": []
|
|
@@ -581,7 +584,7 @@ export const operations = [
|
|
|
581
584
|
{
|
|
582
585
|
"name": "agent_id",
|
|
583
586
|
"sdkName": "agent_id",
|
|
584
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
587
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
585
588
|
}
|
|
586
589
|
],
|
|
587
590
|
"query": []
|
|
@@ -599,7 +602,7 @@ export const operations = [
|
|
|
599
602
|
{
|
|
600
603
|
"name": "agent_id",
|
|
601
604
|
"sdkName": "agent_id",
|
|
602
|
-
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing."
|
|
605
|
+
"description": "Service agent id (agent_…) or its short identity number, from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
603
606
|
}
|
|
604
607
|
],
|
|
605
608
|
"query": [],
|
|
@@ -689,7 +692,7 @@ export const operations = [
|
|
|
689
692
|
{
|
|
690
693
|
"name": "agent_id",
|
|
691
694
|
"sdkName": "agent_id",
|
|
692
|
-
"description": "Active service agent id from agent creation or listing."
|
|
695
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
693
696
|
},
|
|
694
697
|
{
|
|
695
698
|
"name": "customer_id",
|
|
@@ -719,7 +722,7 @@ export const operations = [
|
|
|
719
722
|
{
|
|
720
723
|
"name": "agent_id",
|
|
721
724
|
"sdkName": "agent_id",
|
|
722
|
-
"description": "Active service agent id from agent creation or listing."
|
|
725
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
723
726
|
},
|
|
724
727
|
{
|
|
725
728
|
"name": "customer_id",
|
|
@@ -742,7 +745,7 @@ export const operations = [
|
|
|
742
745
|
{
|
|
743
746
|
"name": "agent_id",
|
|
744
747
|
"sdkName": "agent_id",
|
|
745
|
-
"description": "Active service agent id from agent creation or listing."
|
|
748
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
746
749
|
},
|
|
747
750
|
{
|
|
748
751
|
"name": "customer_id",
|
|
@@ -765,7 +768,7 @@ export const operations = [
|
|
|
765
768
|
{
|
|
766
769
|
"name": "agent_id",
|
|
767
770
|
"sdkName": "agent_id",
|
|
768
|
-
"description": "Active service agent id from agent creation or listing."
|
|
771
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
769
772
|
},
|
|
770
773
|
{
|
|
771
774
|
"name": "customer_id",
|
|
@@ -788,7 +791,7 @@ export const operations = [
|
|
|
788
791
|
{
|
|
789
792
|
"name": "agent_id",
|
|
790
793
|
"sdkName": "agent_id",
|
|
791
|
-
"description": "Active service agent id from agent creation or listing."
|
|
794
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
792
795
|
},
|
|
793
796
|
{
|
|
794
797
|
"name": "customer_id",
|
|
@@ -811,7 +814,7 @@ export const operations = [
|
|
|
811
814
|
{
|
|
812
815
|
"name": "agent_id",
|
|
813
816
|
"sdkName": "agent_id",
|
|
814
|
-
"description": "Active service agent id from agent creation or listing."
|
|
817
|
+
"description": "Active service agent id from agent creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
815
818
|
},
|
|
816
819
|
{
|
|
817
820
|
"name": "customer_id",
|
|
@@ -834,7 +837,7 @@ export const operations = [
|
|
|
834
837
|
{
|
|
835
838
|
"name": "agent_id",
|
|
836
839
|
"sdkName": "agent_id",
|
|
837
|
-
"description": "Agent id from creation or listing."
|
|
840
|
+
"description": "Agent id from creation or listing. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
838
841
|
}
|
|
839
842
|
],
|
|
840
843
|
"query": []
|
|
@@ -852,7 +855,7 @@ export const operations = [
|
|
|
852
855
|
{
|
|
853
856
|
"name": "agent_id",
|
|
854
857
|
"sdkName": "agent_id",
|
|
855
|
-
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name."
|
|
858
|
+
"description": "Agent id, as returned by agents.create or agents.list (for a session filter, the agent the session was created with). Not the agent name. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
856
859
|
}
|
|
857
860
|
],
|
|
858
861
|
"query": [
|
|
@@ -883,7 +886,7 @@ export const operations = [
|
|
|
883
886
|
{
|
|
884
887
|
"name": "agent_id",
|
|
885
888
|
"sdkName": "agent_id",
|
|
886
|
-
"description": "Agent identifier from agents.create or agents.list."
|
|
889
|
+
"description": "Agent identifier from agents.create or agents.list. Also accepts an 8-character identity number (0–9, A–Z); malformed, absent and foreign references return 404, and response ids always use agent_…."
|
|
887
890
|
},
|
|
888
891
|
{
|
|
889
892
|
"name": "version",
|
|
@@ -1901,7 +1904,7 @@ export const operations = [
|
|
|
1901
1904
|
"resource": "agent.sessions",
|
|
1902
1905
|
"method": "create",
|
|
1903
1906
|
"summary": "Create session",
|
|
1904
|
-
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion.",
|
|
1907
|
+
"description": "Create a session: one conversation with an agent. Pass agent as an agent id or {type:\"agent\", id, version?}; an id alone, or an object without version, pins the agent's active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Anthropic Managed Agents, omit environment_id to use the default environment saved in the agent version (light for a new agent), unless computer_id (explicit, or the agent's default) selects a Computer; pass an environment id for a sandbox recipe. For service agents, explicit null allocates no machine, so codemode, bash and other machine tools are unavailable. Optional model must be one of the agent's allowed models; optional thinking is {effort: low|medium|high|xhigh|max|none} or null, where null inherits the agent default and then the model default (none requires the model to allow disabling thinking). Selections are saved before initial_events run; invalid ones return 400 invalid_request_error. Unlike Anthropic Managed Agents, the only inline agent override is system ({type:\"agent_with_overrides\", id, system}); to change the model, tools, MCP servers or skills, save a version instead. Supports vault_ids, up to 50, owned by the current organization and not archived; credential injection is deferred to a later version. budget is {type:\"limit\", max_list_cost:{amount, currency:\"USD\"}} where amount is a positive decimal string of US dollars with at most 2 decimal places (\"20.00\" is USD 20.00); omitted budget defaults to \"20.00\" and null removes the limit. Up to 500 file resources can be attached. Use initial_events to send a first user.message in this request, or send messages afterwards with sessions.events.send. The returned status can still be idle before initial events run; read agent.message and the subsequent session.status_idle event to confirm completion. Assume agents return 400 INVALID_PARAMS; drive them over MCP at /agent/v1/agents/{id}/mcp instead.",
|
|
1905
1908
|
"http": "POST",
|
|
1906
1909
|
"path": "/agent/v1/sessions",
|
|
1907
1910
|
"streaming": "no",
|
|
@@ -3504,7 +3507,7 @@ export const operations = [
|
|
|
3504
3507
|
"resource": "application.workers.grants",
|
|
3505
3508
|
"method": "create",
|
|
3506
3509
|
"summary": "Create grant",
|
|
3507
|
-
"description": "
|
|
3510
|
+
"description": "Record access to an organization-owned database or knowledge base, all organization files (files, id *), or models (models, id *, read only). Each resource and optional alias must be unique within this Worker. Foreign and missing resources both return RESOURCE_NOT_FOUND (404); an unavailable resource service returns PROVIDER_CAPACITY (503, retryable).",
|
|
3508
3511
|
"http": "POST",
|
|
3509
3512
|
"path": "/application/v1/workers/{worker_id}/grants",
|
|
3510
3513
|
"streaming": "no",
|
|
@@ -3524,7 +3527,13 @@ export const operations = [
|
|
|
3524
3527
|
"name": "resource",
|
|
3525
3528
|
"type": "object",
|
|
3526
3529
|
"required": true,
|
|
3527
|
-
"description": "Resource to grant."
|
|
3530
|
+
"description": "Resource to grant. Each (type, id) may be granted once per Worker; duplicates return GRANT_CONFLICT (409)."
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "alias",
|
|
3534
|
+
"type": "string",
|
|
3535
|
+
"required": false,
|
|
3536
|
+
"description": "Optional name, unique within this Worker. Available for reuse after the grant is deleted."
|
|
3528
3537
|
},
|
|
3529
3538
|
{
|
|
3530
3539
|
"name": "access",
|
|
@@ -3534,7 +3543,7 @@ export const operations = [
|
|
|
3534
3543
|
"read_write"
|
|
3535
3544
|
],
|
|
3536
3545
|
"required": true,
|
|
3537
|
-
"description": "Access level."
|
|
3546
|
+
"description": "Access level; models accepts read only."
|
|
3538
3547
|
}
|
|
3539
3548
|
]
|
|
3540
3549
|
}
|
|
@@ -6300,7 +6309,7 @@ export const operations = [
|
|
|
6300
6309
|
"resource": "automation.workflows",
|
|
6301
6310
|
"method": "create",
|
|
6302
6311
|
"summary": "Create a workflow",
|
|
6303
|
-
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6312
|
+
"description": "Workflow syntax reference: https://deepraxis.com/docs/developers/automation/reference/workflow-syntax. Save a YAML workflow as an editable draft; this does not validate, publish or run it, so check it with validate (kind=workflow) first. Minimal draft: document with dsl (\"1.0.3\"), namespace, name and version, plus a do list of steps, for example document: {dsl: \"1.0.3\", namespace: demo, name: add, version: \"1.0.0\"} and do: [{first: {call: demo/add-one, with: {n: \"${ .n }\"}}}]. call: <ns/name> calls an Action directly (bare name for built-ins such as ocr) and with is the Action input; the input contract is at current_revision.input_schema in the get-action response. run: starts a saved script or child workflow. The run input is . in the first step, and expressions are jq written as a whole ${ ... } string. Limits: Action 30 s (run-sandbox 10 min), workflow 24 h by default and 30 days at most, payload 1 MiB. Test the draft by sending its source and language=yaml to praxis.automation.runs.create. To pause for a person, call praxis/approval (it opens a human task; the step output is the decision); agents answer with praxis.automation.humanTasks.respond on behalf of their user. Guide: /docs/developers/automation/guides/approvals Guide: /docs/developers/automation/guides/write-workflow. Error details are in the errors[] of the response (pointer, detail, hint). Choose your own namespace without registering it first; praxis is reserved for built-in Actions. Scripts and workflows share names within the tenant; a duplicate returns NAME_TAKEN. run.workflow accepts ns/name@range or {namespace, name, version, input}; run.script uses the same reference shape as a platform extension. Object namespace, name and version are required; version accepts an exact version, dist-tag or range, locked at publication. Object input defaults to {} and supports expressions; string references retain task-level with. run.await defaults to true and returns the child output. With false, the child uses detach and the task immediately returns {run_id}; parent cancellation does not cascade. Inline script.code returns DEFINITION_INVALID with a detail asking you to save a script and reference it first. raise.error retains its type URI, status, title and detail in the run error.",
|
|
6304
6313
|
"http": "POST",
|
|
6305
6314
|
"path": "/automation/v1/workflows",
|
|
6306
6315
|
"streaming": "no",
|
|
@@ -7283,6 +7292,209 @@ export const operations = [
|
|
|
7283
7292
|
]
|
|
7284
7293
|
}
|
|
7285
7294
|
},
|
|
7295
|
+
{
|
|
7296
|
+
"resource": "canvas.canvases",
|
|
7297
|
+
"method": "list",
|
|
7298
|
+
"summary": "List canvases",
|
|
7299
|
+
"description": "Discover canvases in the API key's organization and obtain ids for retrieval or editing. Results are ordered by updated_at from newest to oldest. limit is 1–100 and defaults to 50; omit cursor for the first page, then copy next_cursor into the next request until it is null. Deleted canvases are unavailable.",
|
|
7300
|
+
"http": "GET",
|
|
7301
|
+
"path": "/canvas/v1/canvases",
|
|
7302
|
+
"streaming": "no",
|
|
7303
|
+
"pagination": true,
|
|
7304
|
+
"pathParams": [],
|
|
7305
|
+
"query": [
|
|
7306
|
+
{
|
|
7307
|
+
"name": "limit",
|
|
7308
|
+
"type": "integer",
|
|
7309
|
+
"required": false,
|
|
7310
|
+
"description": "Maximum canvases to return per page, from 1 to 100; defaults to 50 when omitted."
|
|
7311
|
+
},
|
|
7312
|
+
{
|
|
7313
|
+
"name": "cursor",
|
|
7314
|
+
"type": "string",
|
|
7315
|
+
"required": false,
|
|
7316
|
+
"description": "Opaque next_cursor from the preceding list response; omit for the first page and stop when next_cursor is null."
|
|
7317
|
+
}
|
|
7318
|
+
]
|
|
7319
|
+
},
|
|
7320
|
+
{
|
|
7321
|
+
"resource": "canvas.canvases",
|
|
7322
|
+
"method": "create",
|
|
7323
|
+
"summary": "Create canvas",
|
|
7324
|
+
"description": "Create a blank design canvas in the API key's organization before drawing with praxis.canvas.canvases.execute. Send an optional name of at most 200 characters; omitting name uses Untitled. Each successful call creates a new canvas and returns its id and viewer_url with HTTP 201; save the id for subsequent reads, edits and deletion.",
|
|
7325
|
+
"http": "POST",
|
|
7326
|
+
"path": "/canvas/v1/canvases",
|
|
7327
|
+
"streaming": "no",
|
|
7328
|
+
"pagination": false,
|
|
7329
|
+
"pathParams": [],
|
|
7330
|
+
"query": [],
|
|
7331
|
+
"body": {
|
|
7332
|
+
"required": false,
|
|
7333
|
+
"fields": [
|
|
7334
|
+
{
|
|
7335
|
+
"name": "name",
|
|
7336
|
+
"type": "string",
|
|
7337
|
+
"required": false,
|
|
7338
|
+
"description": "Display name for the new canvas, at most 200 characters; omission uses Untitled."
|
|
7339
|
+
}
|
|
7340
|
+
]
|
|
7341
|
+
}
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
"resource": "canvas.canvases",
|
|
7345
|
+
"method": "delete",
|
|
7346
|
+
"summary": "Delete canvas",
|
|
7347
|
+
"description": "Permanently delete a canvas and its design content when it is no longer needed. Obtain canvas_id from create or list and confirm the target before calling; deletion cannot be undone. HTTP 200 confirms deletion with deleted=true. Subsequent access returns CANVAS_NOT_FOUND, as it does for a missing canvas or one outside the API key's organization.",
|
|
7348
|
+
"http": "DELETE",
|
|
7349
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7350
|
+
"streaming": "no",
|
|
7351
|
+
"pagination": false,
|
|
7352
|
+
"pathParams": [
|
|
7353
|
+
{
|
|
7354
|
+
"name": "canvas_id",
|
|
7355
|
+
"sdkName": "canvas_id",
|
|
7356
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7357
|
+
}
|
|
7358
|
+
],
|
|
7359
|
+
"query": []
|
|
7360
|
+
},
|
|
7361
|
+
{
|
|
7362
|
+
"resource": "canvas.canvases",
|
|
7363
|
+
"method": "retrieve",
|
|
7364
|
+
"summary": "Retrieve canvas",
|
|
7365
|
+
"description": "Inspect the current canvas before editing, like Pencil get_app_state. The response adds top-level node summaries in canvas order and reusable component ids to the canvas metadata. Use these ids in nodes.list, images.list or an execute script; use the returned version as expected_version to detect concurrent edits. Read full node content with nodes.list rather than guessing fields from these summaries.",
|
|
7366
|
+
"http": "GET",
|
|
7367
|
+
"path": "/canvas/v1/canvases/{canvas_id}",
|
|
7368
|
+
"streaming": "no",
|
|
7369
|
+
"pagination": false,
|
|
7370
|
+
"pathParams": [
|
|
7371
|
+
{
|
|
7372
|
+
"name": "canvas_id",
|
|
7373
|
+
"sdkName": "canvas_id",
|
|
7374
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7375
|
+
}
|
|
7376
|
+
],
|
|
7377
|
+
"query": []
|
|
7378
|
+
},
|
|
7379
|
+
{
|
|
7380
|
+
"resource": "canvas.canvases.images",
|
|
7381
|
+
"method": "list",
|
|
7382
|
+
"summary": "Render canvas nodes",
|
|
7383
|
+
"description": "Render 1–4 nodes to inspect the visual result of a design edit. Use ids from retrieve, execute.created or execute.screenshots; scale defaults to 1 and accepts 0.25–4, and png is the only supported format. Unlike Figma, images contains inline data:image/png;base64,... URLs, not hosted image URLs; a null entry means no image is available for that id. Use nodes.list for editable node content instead of pixels.",
|
|
7384
|
+
"http": "GET",
|
|
7385
|
+
"path": "/canvas/v1/canvases/{canvas_id}/images",
|
|
7386
|
+
"streaming": "no",
|
|
7387
|
+
"pagination": false,
|
|
7388
|
+
"pathParams": [
|
|
7389
|
+
{
|
|
7390
|
+
"name": "canvas_id",
|
|
7391
|
+
"sdkName": "canvas_id",
|
|
7392
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7393
|
+
}
|
|
7394
|
+
],
|
|
7395
|
+
"query": [
|
|
7396
|
+
{
|
|
7397
|
+
"name": "ids",
|
|
7398
|
+
"type": "string",
|
|
7399
|
+
"required": true,
|
|
7400
|
+
"description": "Comma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots."
|
|
7401
|
+
},
|
|
7402
|
+
{
|
|
7403
|
+
"name": "scale",
|
|
7404
|
+
"type": "number",
|
|
7405
|
+
"required": false,
|
|
7406
|
+
"description": "Output pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted."
|
|
7407
|
+
},
|
|
7408
|
+
{
|
|
7409
|
+
"name": "format",
|
|
7410
|
+
"type": "string",
|
|
7411
|
+
"enum": [
|
|
7412
|
+
"png"
|
|
7413
|
+
],
|
|
7414
|
+
"required": false,
|
|
7415
|
+
"description": "Image encoding; png produces a PNG data URL and is the only supported value. Omit to use png."
|
|
7416
|
+
}
|
|
7417
|
+
]
|
|
7418
|
+
},
|
|
7419
|
+
{
|
|
7420
|
+
"resource": "canvas.canvases.nodes",
|
|
7421
|
+
"method": "list",
|
|
7422
|
+
"summary": "Read canvas nodes",
|
|
7423
|
+
"description": "Read node documents for inspection before changing individual nodes. Supply 1–100 comma-separated node ids from retrieve or execute, or instance paths such as a/b. depth is an integer at least 0; omit it for complete subtrees. Each requested id maps to a document wrapper or null if absent. Unlike Figma, document contains a Pencil .pen 2.21 node, not a Figma node. For top-level summaries use canvases.retrieve; for pixels use images.list.",
|
|
7424
|
+
"http": "GET",
|
|
7425
|
+
"path": "/canvas/v1/canvases/{canvas_id}/nodes",
|
|
7426
|
+
"streaming": "no",
|
|
7427
|
+
"pagination": false,
|
|
7428
|
+
"pathParams": [
|
|
7429
|
+
{
|
|
7430
|
+
"name": "canvas_id",
|
|
7431
|
+
"sdkName": "canvas_id",
|
|
7432
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7433
|
+
}
|
|
7434
|
+
],
|
|
7435
|
+
"query": [
|
|
7436
|
+
{
|
|
7437
|
+
"name": "ids",
|
|
7438
|
+
"type": "string",
|
|
7439
|
+
"required": true,
|
|
7440
|
+
"description": "Comma-separated list of 1–100 node ids from retrieve or execute, or instance paths such as a/b; missing ids map to null."
|
|
7441
|
+
},
|
|
7442
|
+
{
|
|
7443
|
+
"name": "depth",
|
|
7444
|
+
"type": "integer",
|
|
7445
|
+
"required": false,
|
|
7446
|
+
"description": "Maximum child depth below each requested node, as an integer at least 0; 0 returns the node without descendants, and omission returns the complete subtree."
|
|
7447
|
+
}
|
|
7448
|
+
]
|
|
7449
|
+
},
|
|
7450
|
+
{
|
|
7451
|
+
"resource": "canvas.canvases",
|
|
7452
|
+
"method": "execute",
|
|
7453
|
+
"summary": "Execute canvas script",
|
|
7454
|
+
"description": "Draw or edit a canvas atomically with a synchronous Pencil execute script. First create a canvas with praxis.canvas.canvases.create and use its id as canvas_id; inspect an existing canvas with retrieve before modifying it. Send exactly one of script (new source) or edit_id (a failed script to patch using edits). Unlike Figma REST, :execute writes design content; nodes use Pencil .pen schema 2.21 (frame/group/rectangle/ellipse/polygon/path/text/icon/ref/note), not Figma node fields.\n\nThe root variable is document. Synchronous functions are Insert / Copy / Update / Replace / Move / Delete / SetVariables / Get / GetVariables / FindEmptySpace / Print / TakeScreenshot; globals persist for the next call. A first frame needs only this body.script:\n\n```js\nconst f = Insert(document, { type: \"frame\", name: \"Hero\", width: 1200, layout: \"vertical\", padding: 48, fill: \"#FFFFFF\" }); Insert(f, { type: \"text\", content: \"Hello\", fontSize: 32, fill: \"#111111\" }); Print(f)\n```\n\nUse viewer_url to watch the result in Console. TakeScreenshot records node ids in screenshots; call images.list with those ids to fetch PNG data URLs. See the [Canvas execute reference](https://deepraxis.com/en/docs/api/native/canvas/execute) for request fields and results, and the [Canvas node reference](https://deepraxis.com/en/docs/developers/canvas/nodes) for node content.\n\nA successful write increments version by one. Optionally set expected_version to the version from retrieve or nodes.list; on 409 REVISION_CONFLICT read again, merge your intent and retry with the current version. Every script failure rolls back all writes. On 400 SCRIPT_ERROR, SCRIPT_LIMIT or OPS_REJECTED, use error.details.edit_id plus edits to repair and rerun the stored source without resending the entire script; details may include line, column and rejection. On 400 EDIT_EXPIRED the saved script is older than ten minutes: submit a corrected new script. On 429 CANVAS_BUSY, more than four calls are queued for this canvas: wait for pending calls before retrying.\n",
|
|
7455
|
+
"http": "POST",
|
|
7456
|
+
"path": "/canvas/v1/canvases/{canvas_id}:execute",
|
|
7457
|
+
"streaming": "no",
|
|
7458
|
+
"pagination": false,
|
|
7459
|
+
"pathParams": [
|
|
7460
|
+
{
|
|
7461
|
+
"name": "canvas_id",
|
|
7462
|
+
"sdkName": "canvas_id",
|
|
7463
|
+
"description": "Canvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted."
|
|
7464
|
+
}
|
|
7465
|
+
],
|
|
7466
|
+
"query": [],
|
|
7467
|
+
"body": {
|
|
7468
|
+
"required": true,
|
|
7469
|
+
"fields": [
|
|
7470
|
+
{
|
|
7471
|
+
"name": "script",
|
|
7472
|
+
"type": "string",
|
|
7473
|
+
"required": false,
|
|
7474
|
+
"description": "New synchronous Pencil execute source using document as the root; provide this or edit_id, never both. See the operation's first-frame example."
|
|
7475
|
+
},
|
|
7476
|
+
{
|
|
7477
|
+
"name": "edit_id",
|
|
7478
|
+
"type": "string",
|
|
7479
|
+
"required": false,
|
|
7480
|
+
"description": "Saved failed-script identifier from error.details.edit_id; use with edits instead of script within ten minutes of the failure."
|
|
7481
|
+
},
|
|
7482
|
+
{
|
|
7483
|
+
"name": "edits",
|
|
7484
|
+
"type": "array",
|
|
7485
|
+
"itemType": "object",
|
|
7486
|
+
"required": false,
|
|
7487
|
+
"description": "Text replacements applied to the source identified by edit_id before rerunning; use error line, column or rejection to choose the correction."
|
|
7488
|
+
},
|
|
7489
|
+
{
|
|
7490
|
+
"name": "expected_version",
|
|
7491
|
+
"type": "string",
|
|
7492
|
+
"required": false,
|
|
7493
|
+
"description": "Revision from retrieve, nodes.list or the previous execute response; omit for an unguarded write. A mismatch returns 409 REVISION_CONFLICT with details.version."
|
|
7494
|
+
}
|
|
7495
|
+
]
|
|
7496
|
+
}
|
|
7497
|
+
},
|
|
7286
7498
|
{
|
|
7287
7499
|
"resource": "database.databases",
|
|
7288
7500
|
"method": "list",
|
|
@@ -11806,7 +12018,8 @@ export const operations = [
|
|
|
11806
12018
|
"openai.images.edits",
|
|
11807
12019
|
"openai.images.generations",
|
|
11808
12020
|
"openai.responses",
|
|
11809
|
-
"openai.videos"
|
|
12021
|
+
"openai.videos",
|
|
12022
|
+
"typesafe.systemone"
|
|
11810
12023
|
],
|
|
11811
12024
|
"required": false,
|
|
11812
12025
|
"description": "Match any comma-separated declared protocol ID; omitted or empty includes all models. Combined with type and output_modalities using AND. Invalid IDs return 400 with all legal values."
|
|
@@ -12381,6 +12594,47 @@ export const operations = [
|
|
|
12381
12594
|
],
|
|
12382
12595
|
"query": []
|
|
12383
12596
|
},
|
|
12597
|
+
{
|
|
12598
|
+
"resource": "model.systemone",
|
|
12599
|
+
"method": "create",
|
|
12600
|
+
"summary": "Ask structured decision questions",
|
|
12601
|
+
"description": "Ask typed questions about a state and get calibrated probabilities instead of generated text. Same request and response as TypeSafe System One. Use model ids from model.models.list declaring typesafe.systemone. Send one or more noul, choice or score questions; answers use the same question ids. Input tokens are charged at the catalog input price; output tokens are free. usage.cost and X-Praxis-Cost-Usd expose the same customer charge in USD. box questions and assets are unsupported and return 400: images are not supported. Unknown top-level fields pass unchanged to the native upstream.",
|
|
12602
|
+
"http": "POST",
|
|
12603
|
+
"path": "/model/v1/systemone",
|
|
12604
|
+
"streaming": "no",
|
|
12605
|
+
"pagination": false,
|
|
12606
|
+
"pathParams": [],
|
|
12607
|
+
"query": [],
|
|
12608
|
+
"body": {
|
|
12609
|
+
"required": true,
|
|
12610
|
+
"fields": [
|
|
12611
|
+
{
|
|
12612
|
+
"name": "model",
|
|
12613
|
+
"type": "string",
|
|
12614
|
+
"required": true,
|
|
12615
|
+
"description": "Published model id from model.models.list with supported_apis containing typesafe.systemone; returned unchanged in the response."
|
|
12616
|
+
},
|
|
12617
|
+
{
|
|
12618
|
+
"name": "state",
|
|
12619
|
+
"type": "object",
|
|
12620
|
+
"required": true,
|
|
12621
|
+
"description": "Shared content evaluated by every question, supplied as text, a JSON object or an array."
|
|
12622
|
+
},
|
|
12623
|
+
{
|
|
12624
|
+
"name": "questions",
|
|
12625
|
+
"type": "object",
|
|
12626
|
+
"required": true,
|
|
12627
|
+
"description": "Non-empty map of caller-chosen question ids to typed questions; answers preserve these ids. noul evaluates yes/no, choice selects a named option, score rates ordered levels. box is unsupported."
|
|
12628
|
+
},
|
|
12629
|
+
{
|
|
12630
|
+
"name": "assets",
|
|
12631
|
+
"type": "object",
|
|
12632
|
+
"required": false,
|
|
12633
|
+
"description": "Unsupported image assets. Supplying this field, including null or an empty collection, returns 400: images are not supported."
|
|
12634
|
+
}
|
|
12635
|
+
]
|
|
12636
|
+
}
|
|
12637
|
+
},
|
|
12384
12638
|
{
|
|
12385
12639
|
"resource": "model.videos",
|
|
12386
12640
|
"method": "list",
|