Skip to content

v0.7.1

Latest

Choose a tag to compare

@provos provos released this 06 Sep 21:57
c306999

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.