@sogni-ai/sogni-protocol 1.0.0-alpha.20 → 1.0.0-alpha.22
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/enums/tool-names.json
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"restore_photo",
|
|
25
25
|
"sound_to_video",
|
|
26
26
|
"stitch_video",
|
|
27
|
+
"upscale_image",
|
|
27
28
|
"video_to_video"
|
|
28
29
|
],
|
|
29
30
|
"app": [
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
"set_content_filter",
|
|
75
76
|
"sound_to_video",
|
|
76
77
|
"stitch_video",
|
|
78
|
+
"upscale_image",
|
|
77
79
|
"validate_asset_references",
|
|
78
80
|
"video_to_video"
|
|
79
81
|
],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2026-08-14.
|
|
2
|
+
"version": "2026-08-14.2",
|
|
3
3
|
"source": "sogni-creative-agent/src/tools/definitions/*/definition.ts",
|
|
4
4
|
"schemaRefs": {
|
|
5
5
|
"generate_image": "../schemas/tools/generate_image.schema.json",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"edit_image": "../schemas/tools/edit_image.schema.json",
|
|
9
9
|
"apply_style": "../schemas/tools/apply_style.schema.json",
|
|
10
10
|
"restore_photo": "../schemas/tools/restore_photo.schema.json",
|
|
11
|
+
"upscale_image": "../schemas/tools/upscale_image.schema.json",
|
|
11
12
|
"refine_result": "../schemas/tools/refine_result.schema.json",
|
|
12
13
|
"animate_photo": "../schemas/tools/animate_photo.schema.json",
|
|
13
14
|
"change_angle": "../schemas/tools/change_angle.schema.json",
|
|
@@ -464,6 +465,38 @@
|
|
|
464
465
|
}
|
|
465
466
|
}
|
|
466
467
|
},
|
|
468
|
+
{
|
|
469
|
+
"type": "function",
|
|
470
|
+
"function": {
|
|
471
|
+
"name": "upscale_image",
|
|
472
|
+
"description": "Enlarge an existing image with NVIDIA RTX Video Super Resolution while preserving its content, identity, composition, and colors. This is deterministic reconstruction, not a generative edit: it takes no prompt and must not be used for restoration, sharpening requests that imply repainting, object changes, style changes, or creative enhancement. Use it when the user asks to upscale, enlarge, increase resolution, prepare for print, or produce a 2K/4K/6K/8K/16K copy without changing the image.",
|
|
473
|
+
"parameters": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"sourceImageIndex": {
|
|
477
|
+
"type": "number",
|
|
478
|
+
"description": "Source image to upscale. Non-negative values select a prior generated result by 0-based index. Negative values select uploads: -1 is the first uploaded image, -2 the second, and so on. If omitted, use the latest generated image, falling back to the first upload."
|
|
479
|
+
},
|
|
480
|
+
"scale": {
|
|
481
|
+
"type": "number",
|
|
482
|
+
"enum": [
|
|
483
|
+
2,
|
|
484
|
+
3,
|
|
485
|
+
4
|
|
486
|
+
],
|
|
487
|
+
"description": "Edge scale multiplier. Use 2 by default. Ignored when targetLongestEdge is supplied. If that scale would leave either aligned output edge below 512px, the tool reports the minimum valid target instead of stretching the image."
|
|
488
|
+
},
|
|
489
|
+
"targetLongestEdge": {
|
|
490
|
+
"type": "number",
|
|
491
|
+
"minimum": 512,
|
|
492
|
+
"maximum": 15360,
|
|
493
|
+
"description": "Optional requested pixel length for the output longest edge, from 512 through 15360. Use 3840 for 4K UHD, 7680 for 8K, or 15360 for the 16K maximum. The other edge is calculated automatically so the source aspect ratio is preserved; both 8px-aligned output edges must be at least 512px."
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
"required": []
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
},
|
|
467
500
|
{
|
|
468
501
|
"type": "function",
|
|
469
502
|
"function": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2026-08-14.
|
|
2
|
+
"version": "2026-08-14.2",
|
|
3
3
|
"source": "@sogni-ai/sogni-protocol hosted creative-tools surface (generation + composition)",
|
|
4
4
|
"generatedAt": null,
|
|
5
5
|
"tools": [
|
|
@@ -445,6 +445,38 @@
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
},
|
|
448
|
+
{
|
|
449
|
+
"type": "function",
|
|
450
|
+
"function": {
|
|
451
|
+
"name": "upscale_image",
|
|
452
|
+
"description": "Enlarge an existing image with NVIDIA RTX Video Super Resolution while preserving its content, identity, composition, and colors. This is deterministic reconstruction, not a generative edit: it takes no prompt and must not be used for restoration, sharpening requests that imply repainting, object changes, style changes, or creative enhancement. Use it when the user asks to upscale, enlarge, increase resolution, prepare for print, or produce a 2K/4K/6K/8K/16K copy without changing the image.",
|
|
453
|
+
"parameters": {
|
|
454
|
+
"type": "object",
|
|
455
|
+
"properties": {
|
|
456
|
+
"sourceImageIndex": {
|
|
457
|
+
"type": "number",
|
|
458
|
+
"description": "Source image to upscale. Non-negative values select a prior generated result by 0-based index. Negative values select uploads: -1 is the first uploaded image, -2 the second, and so on. If omitted, use the latest generated image, falling back to the first upload."
|
|
459
|
+
},
|
|
460
|
+
"scale": {
|
|
461
|
+
"type": "number",
|
|
462
|
+
"enum": [
|
|
463
|
+
2,
|
|
464
|
+
3,
|
|
465
|
+
4
|
|
466
|
+
],
|
|
467
|
+
"description": "Edge scale multiplier. Use 2 by default. Ignored when targetLongestEdge is supplied. If that scale would leave either aligned output edge below 512px, the tool reports the minimum valid target instead of stretching the image."
|
|
468
|
+
},
|
|
469
|
+
"targetLongestEdge": {
|
|
470
|
+
"type": "number",
|
|
471
|
+
"minimum": 512,
|
|
472
|
+
"maximum": 15360,
|
|
473
|
+
"description": "Optional requested pixel length for the output longest edge, from 512 through 15360. Use 3840 for 4K UHD, 7680 for 8K, or 15360 for the 16K maximum. The other edge is calculated automatically so the source aspect ratio is preserved; both 8px-aligned output edges must be at least 512px."
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
"required": []
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
},
|
|
448
480
|
{
|
|
449
481
|
"type": "function",
|
|
450
482
|
"function": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-protocol",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "Language-neutral protocol artifacts for the Sogni ecosystem: tool schemas, prompts, OpenAI tool manifests, and enums. Consumed by every Sogni SDK (TypeScript, Swift, and future Python/Kotlin/Rust SDKs) so contracts stay in lockstep across languages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sogni",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schemas.sogni.ai/creative-agent/2026-07-18.1/tools/upscale_image.schema.json",
|
|
4
|
+
"title": "upscale_image arguments",
|
|
5
|
+
"schemaVersion": "2026-07-18.1",
|
|
6
|
+
"description": "Enlarge an existing image with NVIDIA RTX Video Super Resolution while preserving its content, identity, composition, and colors. This is deterministic reconstruction, not a generative edit: it takes no prompt and must not be used for restoration, sharpening requests that imply repainting, object changes, style changes, or creative enhancement. Use it when the user asks to upscale, enlarge, increase resolution, prepare for print, or produce a 2K/4K/6K/8K/16K copy without changing the image.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {
|
|
10
|
+
"sourceImageIndex": {
|
|
11
|
+
"type": "number",
|
|
12
|
+
"description": "Source image to upscale. Non-negative values select a prior generated result by 0-based index. Negative values select uploads: -1 is the first uploaded image, -2 the second, and so on. If omitted, use the latest generated image, falling back to the first upload."
|
|
13
|
+
},
|
|
14
|
+
"scale": {
|
|
15
|
+
"type": "number",
|
|
16
|
+
"enum": [
|
|
17
|
+
2,
|
|
18
|
+
3,
|
|
19
|
+
4
|
|
20
|
+
],
|
|
21
|
+
"description": "Edge scale multiplier. Use 2 by default. Ignored when targetLongestEdge is supplied. If that scale would leave either aligned output edge below 512px, the tool reports the minimum valid target instead of stretching the image."
|
|
22
|
+
},
|
|
23
|
+
"targetLongestEdge": {
|
|
24
|
+
"type": "number",
|
|
25
|
+
"minimum": 512,
|
|
26
|
+
"maximum": 15360,
|
|
27
|
+
"description": "Optional requested pixel length for the output longest edge, from 512 through 15360. Use 3840 for 4K UHD, 7680 for 8K, or 15360 for the 16K maximum. The other edge is calculated automatically so the source aspect ratio is preserved; both 8px-aligned output edges must be at least 512px."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": []
|
|
31
|
+
}
|
package/version.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"protocolVersion": "1.
|
|
2
|
+
"protocolVersion": "1.14.0",
|
|
3
3
|
"description": "Sogni protocol artifact version. SDKs may refuse to operate against a protocolVersion they were not built for. Bump the major when removing or renaming any schema / enum / manifest field; bump the minor when adding new optional fields or new tools; bump the patch for description / prose changes only."
|
|
4
4
|
}
|