Skip to content

Commit 968d61f

Browse files
committed
Merge branch 'add-frontend-speech-recognition' of https://github.com/devforth/adminforth-agent into add-frontend-speech-recognition
2 parents 5c30a00 + 4ae0b7b commit 968d61f

3 files changed

Lines changed: 168 additions & 204 deletions

File tree

agent/simpleAgent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const contextSchema = z.object({
2828
turnId: z.string(),
2929
abortSignal: z.custom<AbortSignal>().optional(),
3030
currentPage: z.custom<CurrentPageContext>().optional(),
31-
httpExtra: z.custom<Partial<HttpExtra>>().optional(),
31+
httpExtra: z.custom<Pick<HttpExtra, "headers" | "cookies">>().optional(),
3232
emitToolCallEvent: z.custom<ToolCallEventSink>(),
3333
});
3434

@@ -235,7 +235,7 @@ export async function callAgent(params: {
235235
sessionId: string;
236236
turnId: string;
237237
currentPage?: CurrentPageContext;
238-
httpExtra?: Partial<HttpExtra>;
238+
httpExtra?: Pick<HttpExtra, "headers" | "cookies">;
239239
userTimeZone: string;
240240
abortSignal?: AbortSignal;
241241
emitToolCallEvent: ToolCallEventSink;

0 commit comments

Comments
 (0)