Repository navigation
get_system_prompt(task)
LLMTaskWorker.get_system_prompt(task) returns the system prompt for a task and defaults to the system_prompt field. Override it to build a per-task system prompt, for example to place reference material that many tasks share ahead of the per-task instructions, where a provider's prompt cache can reuse it across tasks. CachedLLMTaskWorker includes it in the cache key, evaluated once per key.
Documented on the LLM integration page and in the TaskWorker API reference.