Skip to content

Commit b8ffd60

Browse files
Sync public snapshot from freebuff-private
Source: CodebuffAI/freebuff-private@0cd79e1340e7b00a93a97e80daa38441d4f0ec42
1 parent 73074fe commit b8ffd60

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

bun.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/src/__tests__/researcher-web.integration.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type { PrintModeEvent } from '@codebuff/common/types/print-mode'
1212

1313
const DEFAULT_TIMEOUT_MS = 120_000
1414
const EXPECTED_KEYWORD = 'useActionState'
15+
const RESEARCHER_WEB_MAX_AGENT_STEPS = 10
1516

1617
function loadEnvValue(name: string): string | undefined {
1718
if (process.env[name] && process.env[name] !== 'test') {
@@ -158,13 +159,13 @@ describe('researcher-web SDK integration', () => {
158159
const result = await client.run({
159160
agent: 'researcher-web',
160161
agentDefinitions: [researcherWeb],
161-
maxAgentSteps: 8,
162+
maxAgentSteps: RESEARCHER_WEB_MAX_AGENT_STEPS,
162163
handleEvent: (event) => {
163164
events.push(event)
164165
},
165166
prompt: [
166167
'Use web search to answer this React docs question.',
167-
'After searching, fetch the most relevant React docs page with read_url before answering.',
168+
'After searching, fetch exactly three relevant React docs pages with read_url before answering.',
168169
'In React 19, which hook returns state, a form action, and an isPending value for form actions?',
169170
'Answer with the exact hook name and one short sentence.',
170171
].join(' '),

0 commit comments

Comments
 (0)