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

Parameters

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

Returns

Any
Formatted context string for this item

Uses

  • logger.debug
  • json.loads
  • Knowledge
  • knowledge.search

Used By

Source

View on GitHub

praisonaiagents/agents/agents.py at line 111

Tasks Concept

Task Configuration

Task Validation

Context Concept

Context Management