AddSessionSummary adds a summary to the current session on the remote server.
(ctx context.Context, summary string, tokens int)
| 749 | |
| 750 | // AddSessionSummary adds a summary to the current session on the remote server. |
| 751 | func (r *RemoteRuntime) AddSessionSummary(ctx context.Context, summary string, tokens int) error { |
| 752 | if r.sessionID == "" { |
| 753 | return errors.New("no active session") |
| 754 | } |
| 755 | return r.client.AddSummary(ctx, r.sessionID, summary, tokens) |
| 756 | } |
| 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 { |
nothing calls this directly
no test coverage detected