mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
refactor(agent-launch): narrow the launch params by 'in' instead of a cast
This commit is contained in:
@@ -32,7 +32,8 @@ export function classifyRuntimeLongPoll(request: RpcRequest): RuntimeLongPollCla
|
||||
(request.method === 'agent.launch' || request.method === 'agent.launchReplay') &&
|
||||
typeof request.params === 'object' &&
|
||||
request.params !== null &&
|
||||
(request.params as { prompt?: unknown }).prompt !== undefined
|
||||
'prompt' in request.params &&
|
||||
request.params.prompt !== undefined
|
||||
) {
|
||||
return 'wait'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user