Skip to content

Commit f66c605

Browse files
committed
chore(sdk-ts): bump version to 0.0.6 and update final_answer to be optional in SpaceSearchResultSchema
1 parent bc8ab3b commit f66c605

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/acontext-ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@acontext/acontext",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "TypeScript SDK for the Acontext API",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/client/acontext-ts/src/types/space.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export type SearchResultBlockItem = z.infer<typeof SearchResultBlockItemSchema>;
3434

3535
export const SpaceSearchResultSchema = z.object({
3636
cited_blocks: z.array(SearchResultBlockItemSchema),
37-
final_answer: z.string().nullable(),
37+
final_answer: z.string().nullable().optional(),
3838
});
3939

4040
export type SpaceSearchResult = z.infer<typeof SpaceSearchResultSchema>;

0 commit comments

Comments
 (0)