Commit Graph
2 Commits
Author SHA1 Message Date
Test e15a535d82 fix: use string activity name in LLMTestWorkflow instead of function reference
- Changed workflow.ExecuteActivity(actCtx, activity.LLMInferenceActivity, ...)
  to workflow.ExecuteActivity(actCtx, "LLMInferenceActivity", ...)
- Fixes WorkflowTaskFailed error on first execution
- Matches Temporal Go SDK best practices (determinism requirement)
- Workflow now executes cleanly on first attempt without retries
- Timeline: 5 events instead of 8, 0 failures instead of 1
2026-09-08 12:49:08 -07:00
Test 865783e90a test: add LLMTestWorkflow for testing LLM inference
- New workflow: LLMTestWorkflow
- Accepts prompt input (e.g., 'say hello')
- Calls LLMInferenceActivity to invoke local LLM
- Registers LLMInferenceActivity and LLMBatchInferenceActivity
- Returns LLM response text

Testing shows:
 Worker connects to Temporal successfully
 Activities register on startup
 Ready for LLM invocation tests

Usage:
  tctl workflow start --type LLMTestWorkflow \
    --task-queue poimen-taskqueue \
    --input '{"prompt":"say hello"}'
2026-09-08 09:15:13 -07:00