inference_results.go 884 B

12345678910111213141516171819202122232425262728
  1. package source
  2. // InferenceCacheConfig holds cache configuration for a model.
  3. type InferenceCacheConfig struct {
  4. PrefixCachingEnabled bool
  5. }
  6. // InferenceTokensResult represents token counts.
  7. // Used for prompt tokens, generation tokens, and cached tokens.
  8. type InferenceTokensResult struct {
  9. // Values maps "model_name:namespace" to token count
  10. Values map[string]float64
  11. }
  12. // InferenceProcessingTimeResult represents processing time in seconds.
  13. // Used for input processing time and output processing time.
  14. type InferenceProcessingTimeResult struct {
  15. // Values maps "model_name:namespace" to processing time in seconds
  16. Values map[string]float64
  17. }
  18. // InferenceCacheConfigResult represents cache configuration.
  19. type InferenceCacheConfigResult struct {
  20. // Configs maps "model_name:namespace" to cache configuration
  21. Configs map[string]*InferenceCacheConfig
  22. }
  23. // Made with Bob