Skip to main content

process

Method
This is a method of the ContextManager class in the manager module.
Process messages through the context pipeline. Applies budgeting, optimization, and monitoring.

Signature

Parameters

List
required
Conversation messages
str
default:"''"
System prompt content
Optional
Tool schemas
Literal
default:"'turn'"
What triggered this processing

Returns

Dict[str, Any]
Dict with processed messages and metadata

Uses

  • reset
  • track_system_prompt
  • track_tools
  • track_history
  • get_utilization
  • get_total
  • get_warnings
  • estimate_messages_tokens

Source

View on GitHub

praisonaiagents/context/manager.py at line 391