Skip to content

Commit 27e74c4

Browse files
committed
Run all examples
1 parent 6fa4a4f commit 27e74c4

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

examples/mcp/hosted-mcp-human-in-the-loop.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ async function confirm(item: RunToolApprovalItem): Promise<boolean> {
1616
async function main(verbose: boolean, stream: boolean): Promise<void> {
1717
// 'always' | 'never' | { never, always }
1818
const requireApproval = {
19-
never: { toolNames: ['search_codex_code', 'fetch_codex_documentation'] },
20-
always: { toolNames: ['fetch_generic_url_content'] },
19+
never: { toolNames: ['search_codex_code'] },
20+
always: {
21+
toolNames: ['fetch_generic_url_content', 'fetch_codex_documentation'],
22+
},
2123
};
2224
const agent = new Agent({
2325
name: 'MCP Assistant',

examples/mcp/hosted-mcp-on-approval.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ async function promptApproval(item: RunToolApprovalItem): Promise<boolean> {
1616
async function main(verbose: boolean, stream: boolean): Promise<void> {
1717
// 'always' | 'never' | { never, always }
1818
const requireApproval = {
19-
never: {
20-
toolNames: ['fetch_codex_documentation', 'fetch_generic_url_content'],
21-
},
22-
always: {
23-
toolNames: ['search_codex_code'],
24-
},
19+
never: { toolNames: ['fetch_generic_url_content'] },
20+
always: { toolNames: ['fetch_codex_documentation', 'search_codex_code'] },
2521
};
2622
const agent = new Agent({
2723
name: 'MCP Assistant',

examples/realtime-next/src/app/server/backendAgent.action.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const backendAgent = new Agent({
88
name: 'Refund Agent',
99
instructions:
1010
'You are a specialist on handling refund requests and detect fraud. You are given a request and you need to determine if the request is valid and if it is, you need to handle it.',
11-
model: 'o4-mini',
11+
model: 'gpt-5-mini',
1212
outputType: z.object({
1313
refundApproved: z.boolean(),
1414
refundReason: z.string(),

0 commit comments

Comments
 (0)