Skip to content

Commit 975b2ae

Browse files
Update customizeHandoff.ts
1 parent 7f94994 commit 975b2ae

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
import { Agent, handoff, RunContext } from '@openai/agents';
2-
3-
function onHandoff(ctx: RunContext) {
4-
console.log('Handoff called');
5-
}
1+
import { Agent, handoff } from '@openai/agents';
62

73
const agent = new Agent({ name: 'My agent' });
84

95
const handoffObj = handoff(agent, {
10-
onHandoff,
116
toolNameOverride: 'custom_handoff_tool',
127
toolDescriptionOverride: 'Custom description',
138
});

0 commit comments

Comments
 (0)