MCPcopy Create free account
hub / github.com/github/gh-aw / isSteeringEvent

Function isSteeringEvent

pkg/cli/token_usage.go:872–881  ·  view source on GitHub ↗

isSteeringEvent matches AWF proxy steering events using both event name and message format from the firewall specification.

(eventName, message string)

Source from the content-addressed store, hash-verified

870// isSteeringEvent matches AWF proxy steering events using both event name and
871// message format from the firewall specification.
872func isSteeringEvent(eventName, message string) bool {
873 switch eventName {
874 case tokenSteeringEventName:
875 return strings.HasPrefix(message, awfTokenWarningPrefix)
876 case timeoutSteeringEventName:
877 return strings.HasPrefix(message, awfTimeWarningPrefix)
878 default:
879 return false
880 }
881}
882
883func augmentSubagentModelAttribution(runDir string, summary *TokenUsageSummary) {
884 if summary == nil {

Callers 2

scanSteeringEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected