()
| 561 | snapshot := BuildContextWindowSnapshot(cfg, state) |
| 562 | r.Frame.ModelName = snapshot.ModelName |
| 563 | r.Frame.ContextUsedTokens = snapshot.UsedTokens |
| 564 | r.Frame.ContextLimitTokens = snapshot.LimitTokens |
| 565 | } |
| 566 | |
| 567 | func (r *UiRuntime) engineConfig() (config.Config, bool) { |
| 568 | switch engine := r.Engine.(type) { |
| 569 | case *agent.QueryEngine: |
| 570 | if engine == nil { |
| 571 | return config.Config{}, false |
| 572 | } |
| 573 | return engine.Config, true |
| 574 | case *agent.CoreExecutionEngine: |
no outgoing calls
no test coverage detected