Skip to content

Commit b181702

Browse files
committed
Deprecate agentId. Add some logs to Agent execution
1 parent 6f0a6d6 commit b181702

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

backend/src/run-agent-step.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,11 @@ export const loopAgentSteps = async (
690690
logger.error(
691691
{
692692
error: getErrorObject(error),
693+
agentType,
693694
agentId: currentAgentState.agentId,
695+
runId,
696+
totalSteps,
697+
directCreditsUsed: currentAgentState.directCreditsUsed,
694698
creditsUsed: currentAgentState.creditsUsed,
695699
},
696700
'Agent execution failed',

common/src/types/session-state.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export const subgoalSchema = z.object({
2525
export type Subgoal = z.infer<typeof subgoalSchema>
2626

2727
export const AgentStateSchema: z.ZodType<{
28+
/**
29+
* @deprecated agentId is replaced by runId
30+
*/
2831
agentId: string
2932
agentType: AgentTemplateType | null
3033
agentContext: Record<string, Subgoal>

0 commit comments

Comments
 (0)