Class AgentExchangeReport

java.lang.Object
com.flowable.agent.engine.impl.report.AgentExchangeReport

public class AgentExchangeReport extends Object
A single exchange within an AgentInvocationReport. For a chat-model exchange, subType is the model name. Token buckets are disjoint (prompt excludes cached).
  • Field Details

    • id

      protected String id
    • type

      protected String type
    • subType

      protected String subType
    • startTime

      protected Instant startTime
    • endTime

      protected Instant endTime
    • durationMillis

      protected Long durationMillis
    • promptTokens

      protected long promptTokens
    • cachedTokens

      protected long cachedTokens
    • outputTokens

      protected long outputTokens
    • cost

      protected double cost
    • parts

      protected List<AgentExchangePartReport> parts
  • Constructor Details

    • AgentExchangeReport

      public AgentExchangeReport()
  • Method Details

    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getSubType

      public String getSubType()
    • setSubType

      public void setSubType(String subType)
    • getStartTime

      public Instant getStartTime()
    • setStartTime

      public void setStartTime(Instant startTime)
    • getEndTime

      public Instant getEndTime()
    • setEndTime

      public void setEndTime(Instant endTime)
    • getDurationMillis

      public Long getDurationMillis()
    • setDurationMillis

      public void setDurationMillis(Long durationMillis)
    • getPromptTokens

      public long getPromptTokens()
    • setPromptTokens

      public void setPromptTokens(long promptTokens)
    • getCachedTokens

      public long getCachedTokens()
    • setCachedTokens

      public void setCachedTokens(long cachedTokens)
    • getOutputTokens

      public long getOutputTokens()
    • setOutputTokens

      public void setOutputTokens(long outputTokens)
    • getCost

      public double getCost()
    • setCost

      public void setCost(double cost)
    • getParts

      public List<AgentExchangePartReport> getParts()
    • setParts

      public void setParts(List<AgentExchangePartReport> parts)