Skip to content

Commit 103bf02

Browse files
feat(api): add ImageInput to UserInputBlock proto
1 parent 9fa685f commit 103bf02

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3c080e16ecc8c0377535643430e1abc1425a0b8f474fd6f211cac5e617b7ba28.yml
3-
openapi_spec_hash: 154065951ac8ea5188227ec10c2c10c8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-665d1d0e7f0040c5fbbb664487724af4ecc58d3c702e8099ceef4a05ba589369.yml
3+
openapi_spec_hash: 3688253b79ec0cf6d41ff586d71e9f07
44
config_hash: 8e1b089e9f5af438fd56b523014af4f2

src/resources/agents.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,17 +1149,34 @@ export interface PromptSpec {
11491149
}
11501150

11511151
export interface UserInputBlock {
1152-
text: UserInputBlock.Text;
1153-
11541152
id?: string;
11551153

11561154
/**
11571155
* Timestamp when this block was created. Used for debugging and support bundles.
11581156
*/
11591157
createdAt?: string;
1158+
1159+
/**
1160+
* ImageInput allows sending images to the agent. Media type is inferred from magic
1161+
* bytes by the backend.
1162+
*/
1163+
image?: UserInputBlock.Image;
1164+
1165+
text?: UserInputBlock.Text;
11601166
}
11611167

11621168
export namespace UserInputBlock {
1169+
/**
1170+
* ImageInput allows sending images to the agent. Media type is inferred from magic
1171+
* bytes by the backend.
1172+
*/
1173+
export interface Image {
1174+
/**
1175+
* Raw image data (max 4MB). Supported formats: PNG, JPEG, WebP.
1176+
*/
1177+
data?: string;
1178+
}
1179+
11631180
export interface Text {
11641181
content?: string;
11651182
}

0 commit comments

Comments
 (0)