stormlog.infer.workload_report

Per-case prompt and length summaries for inference reports.

Functions

length_summary(requests)

Prompt and output token counts of the completed requests.

prompt_lines(prompts)

A text-report line for prompts other than one repeated prompt.

prompt_summary(requests, window)

Which prompts a case sent and how much they share.

workload_lines(workload)

workload_summary(records)

The run's workload record, or None for artifacts written before it.

stormlog.infer.workload_report.prompt_summary(requests, window)[source]

Which prompts a case sent and how much they share.

Parameters:
  • requests (list[dict[str, Any]])

  • window (dict[str, Any] | None)

Return type:

dict[str, Any]

stormlog.infer.workload_report.prompt_lines(prompts)[source]

A text-report line for prompts other than one repeated prompt.

Parameters:

prompts (Any)

Return type:

list[str]

stormlog.infer.workload_report.length_summary(requests)[source]

Prompt and output token counts of the completed requests.

Parameters:

requests (list[dict[str, Any]])

Return type:

dict[str, Any]

stormlog.infer.workload_report.workload_summary(records)[source]

The run’s workload record, or None for artifacts written before it.

Parameters:

records (list[dict[str, Any]])

Return type:

dict[str, Any] | None

stormlog.infer.workload_report.workload_lines(workload)[source]
Parameters:

workload (Any)

Return type:

list[str]