Feat/design agent simple #305
@@ -541,16 +541,20 @@ export function planningSessionToRuntime(
|
||||
? 'running'
|
||||
: isQuestion
|
||||
? 'waiting-for-user-input'
|
||||
: session.status === 'approved' || session.status === 'rejected'
|
||||
? 'completed'
|
||||
: 'idle';
|
||||
: session.status === 'provider_failed'
|
||||
? 'failed'
|
||||
: session.status === 'approved' || session.status === 'rejected'
|
||||
? 'completed'
|
||||
: 'idle';
|
||||
const phase = isQuestion
|
||||
? 'waiting-for-user-input'
|
||||
: session.status === 'planning'
|
||||
? 'planning'
|
||||
: status === 'completed'
|
||||
? 'completed'
|
||||
: 'idle';
|
||||
: session.status === 'provider_failed'
|
||||
? 'failed'
|
||||
: status === 'completed'
|
||||
? 'completed'
|
||||
: 'idle';
|
||||
const question = session.currentQuestion;
|
||||
const userInputRequest: AgentRuntimeUserInputRequest | null = question
|
||||
? {
|
||||
|
||||
Reference in New Issue
Block a user