Skip to main content

process_task_context

Function
This function is defined in the agents module.
Process a single context item for task execution. This helper function avoids code duplication between async and sync execution methods.

Signature

def process_task_context(context_item: Any, verbose: Any, user_id: Any) -> Any

Parameters

context_item
Any
required
The context item to process (can be string, list, task object, or dict)
verbose
Any
default:"0"
Verbosity level for logging
user_id
Any
User ID for database queries

Returns

Returns
Any
Formatted context string for this item