Skip to content

src/dazzle_back/runtime/llm_trigger.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

LLM intent trigger matcher.

Registers as an EntityEventBus handler and dispatches matching entity events to the LLM job queue with write-back callbacks.

Key Exports

  • _TriggerEntry
  • LLMTriggerMatcher
  • handle_event
  • callback

Dependencies

Imports

  • __future__.annotations
  • logging
  • typing.TYPE_CHECKING
  • typing.Any
  • dazzle.core.ir.llm.LLMTriggerEvent
  • dazzle.core.ir.llm.LLMTriggerSpec
  • dazzle.core.ir.appspec.AppSpec
  • dazzle_back.runtime.event_bus.EntityEvent
  • dazzle_back.runtime.llm_executor.ExecutionResult
  • dazzle_back.runtime.llm_queue.LLMJob
  • dazzle_back.runtime.llm_queue.LLMJobQueue
  • json
  • asyncio

Event Interactions

Consumes: EntityEvent

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_llm_trigger.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.