MCPcopy Index your code
hub / github.com/coder/coder / recordToolResultTimestamp

Function recordToolResultTimestamp

coderd/x/chatd/chatloop/chatloop.go:1961–1966  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1959// toolResultCreatedAt map on the stepResult and records
1960// the completion timestamp for the given tool-call ID.
1961func 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
1968func publishToolAttachments(
1969 ctx context.Context,

Callers 1

executeToolsForStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected