recordToolResultTimestamp lazily initializes the toolResultCreatedAt map on the stepResult and records the completion timestamp for the given tool-call ID.
(result *stepResult, toolCallID string, ts time.Time)
| 1959 | // toolResultCreatedAt map on the stepResult and records |
| 1960 | // the completion timestamp for the given tool-call ID. |
| 1961 | func recordToolResultTimestamp(result *stepResult, toolCallID string, ts time.Time) { |
| 1962 | if result.toolResultCreatedAt == nil { |
| 1963 | result.toolResultCreatedAt = make(map[string]time.Time) |
| 1964 | } |
| 1965 | result.toolResultCreatedAt[toolCallID] = ts |
| 1966 | } |
| 1967 | |
| 1968 | func publishToolAttachments( |
| 1969 | ctx context.Context, |
no outgoing calls
no test coverage detected