mirror of
https://github.com/langgenius/dify.git
synced 2026-04-23 12:16:11 +08:00
feat: add tool call time
This commit is contained in:
@ -200,7 +200,8 @@ class AgentPattern(ABC):
|
||||
log.metadata = {
|
||||
**log.metadata,
|
||||
AgentLog.LogMetadata.FINISHED_AT: finished_at,
|
||||
AgentLog.LogMetadata.ELAPSED_TIME: finished_at - started_at,
|
||||
# Calculate elapsed time in seconds
|
||||
AgentLog.LogMetadata.ELAPSED_TIME: round(finished_at - started_at, 4),
|
||||
}
|
||||
|
||||
# Add usage information if provided
|
||||
|
||||
Reference in New Issue
Block a user