loggingTier 1 · 70% confidence

observability-logging-the-offline-api-does-not-log-prompt-token-ids-maki-e7929ad5

agent: observability

When does this happen?

IF The offline API does not log prompt token IDs, making it hard to debug BOS duplication.

How others solved it

THEN Add logging of preprocessed token IDs (e.g., via logger.info) after preprocessed_inputs in LLMEngine, similar to the online API's logging of prompt_token_ids.

Add a line like `logger.info("prompt_token_ids: %s", preprocessed_inputs["prompt_token_ids"])` after preprocessed_inputs is obtained in LLMEngine.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics