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
Parameters
The context item to process (can be string, list, task object, or dict)
Verbosity level for logging
User ID for database queries
Returns
Formatted context string for this item

