-
Notifications
You must be signed in to change notification settings - Fork 4.9k
chore: perform agent turn event #38535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
7c6dd63 to
9c17585
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| - `model` <[string]> Model identifier within provider. | ||
| - `cacheFile` ?<[string]> Cache file to use/generate code for performed actions into. Cache is not used if not specified (default). | ||
| - `cacheMode` ?<['force'|'ignore'|'auto']> Cache control, defaults to 'auto'. | ||
| - `cacheMode` ?<['force'|'ignore'|'update'|'auto']> Cache control, defaults to 'auto'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a name for the enum, we are gonna need it in the ports
| const intent = assistantMessage.content.filter(c => c.type === 'text').map(c => c.text).join('\n'); | ||
| page.emit(Page.Events.AgentTurn, { role: 'assistant', message: intent, usage }); | ||
| const toolCalls = assistantMessage.content.filter(c => c.type === 'tool_call'); | ||
| page.emit(Page.Events.AgentTurn, { role: 'assistant', message: `no tool calls`, usage }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing if ?
tests/library/perform-task.spec.ts
Outdated
| model: 'claude-sonnet-4.5', | ||
| cachePathTemplate: '{testFilePath}-cache.json', | ||
| cacheMode: process.env.CI ? 'force' : 'auto', | ||
| provider: 'anthropic', // 'github', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete comments
|
|
||
| test('page.perform', async ({ page, server }) => { | ||
| await page.goto(server.PREFIX + '/evals/fill-form.html'); | ||
| page.on('agentturn', turn => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
58e1618 to
07c163a
Compare
07c163a to
215cac8
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "MCP"6 failed 2708 passed, 116 skipped Merge workflow run. |
Test results for "tests 1"6 failed 9 flaky34353 passed, 688 skipped Merge workflow run. |
No description provided.