UpdateSessionTokens updates token counts for the current session on the remote server.
(ctx context.Context, inputTokens, outputTokens int64, cost float64)
| 757 | |
| 758 | // UpdateSessionTokens updates token counts for the current session on the remote server. |
| 759 | func (r *RemoteRuntime) UpdateSessionTokens(ctx context.Context, inputTokens, outputTokens int64, cost float64) error { |
| 760 | if r.sessionID == "" { |
| 761 | return errors.New("no active session") |
| 762 | } |
| 763 | return r.client.UpdateSessionTokens(ctx, r.sessionID, inputTokens, outputTokens, cost) |
| 764 | } |
| 765 | |
| 766 | // SetSessionStarred sets the starred status for the current session on the remote server. |
| 767 | func (r *RemoteRuntime) SetSessionStarred(ctx context.Context, starred bool) error { |
nothing calls this directly
no test coverage detected