Skip to content

src/dazzle_back/runtime/llm_executor.py

Generated: 2026-03-30T04:38:47.514512+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

LLM intent executor.

Connects DSL-declared llm_intent blocks to the LLMAPIClient at runtime, producing ExecutionResult values and optionally recording AIJob entities for cost tracking.

Key Exports

  • ExecutionResult
  • LLMIntentExecutor
  • execute
  • list_intents
  • list_models

Dependencies

Imports

  • __future__.annotations
  • asyncio
  • logging
  • time
  • dataclasses.dataclass
  • decimal.Decimal
  • typing.Any
  • jinja2
  • dazzle.core.ir.appspec.AppSpec
  • dazzle.core.ir.llm.LLMIntentSpec
  • dazzle.core.ir.llm.LLMModelSpec
  • dazzle.core.ir.llm.RetryBackoff
  • dazzle.core.ir.llm.LLMProvider
  • dazzle.llm.api_client.LLMAPIClient
  • dazzle.llm.api_client.LLMProvider

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_llm_executor.py
  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.