Represents the actions attached to an event.

Constructors

  • Constructor for EventActions

    Parameters

    • options: {
          skipSummarization?: boolean;
          stateDelta?: Record<string, any>;
          artifactDelta?: Record<string, number>;
          transferToAgent?: string;
          escalate?: boolean;
          requestedAuthConfigs?: Record<string, any>;
          compaction?: EventCompaction;
          rewindBeforeInvocationId?: string;
      } = {}
      • OptionalskipSummarization?: boolean
      • OptionalstateDelta?: Record<string, any>
      • OptionalartifactDelta?: Record<string, number>
      • OptionaltransferToAgent?: string
      • Optionalescalate?: boolean
      • OptionalrequestedAuthConfigs?: Record<string, any>
      • Optionalcompaction?: EventCompaction
      • OptionalrewindBeforeInvocationId?: string

    Returns EventActions

Properties

skipSummarization?: boolean

If true, it won't call model to summarize function response. Only used for function_response event.

stateDelta: Record<string, any> = {}

Indicates that the event is updating the state with the given delta.

artifactDelta: Record<string, number> = {}

Indicates that the event is updating an artifact. key is the filename, value is the version.

transferToAgent?: string

If set, the event transfers to the specified agent.

escalate?: boolean

The agent is escalating to a higher level agent.

requestedAuthConfigs?: Record<string, any>

Requested authentication configurations.

compaction?: EventCompaction

Event compaction information. When set, this event represents a compaction of events within the specified timestamp range.

rewindBeforeInvocationId?: string

The invocation id to rewind to. This is only set for rewind event.