feat(ext): display step index in event card
This commit is contained in:
@@ -163,7 +163,9 @@ export function EventCard({ event }: { event: HistoricalEvent }) {
|
|||||||
if (event.type === 'step') {
|
if (event.type === 'step') {
|
||||||
return (
|
return (
|
||||||
<div className="rounded-lg border-l-2 border-l-blue-500/50 border bg-muted/40 p-2.5">
|
<div className="rounded-lg border-l-2 border-l-blue-500/50 border bg-muted/40 p-2.5">
|
||||||
<div className="text-[11px] font-semibold text-foreground tracking-wide mb-2">Step</div>
|
<div className="text-[11px] font-semibold text-foreground tracking-wide mb-2">
|
||||||
|
Step #{event.stepIndex! + 1}
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Reflection */}
|
{/* Reflection */}
|
||||||
{event.reflection && <ReflectionSection reflection={event.reflection} />}
|
{event.reflection && <ReflectionSection reflection={event.reflection} />}
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export type AgentActivity =
|
|||||||
export interface HistoricalEvent {
|
export interface HistoricalEvent {
|
||||||
type: 'step' | 'observation' | 'user_takeover' | 'error'
|
type: 'step' | 'observation' | 'user_takeover' | 'error'
|
||||||
// For 'step' type
|
// For 'step' type
|
||||||
|
stepIndex?: number
|
||||||
reflection?: {
|
reflection?: {
|
||||||
evaluation_previous_goal?: string
|
evaluation_previous_goal?: string
|
||||||
memory?: string
|
memory?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user