> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Process Steering • AI Agent SDK

> process_steering: Process any pending steering messages and update execution context.

# process\_steering

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**MessageSteeringProtocol**](../classes/MessageSteeringProtocol) class in the [**protocols**](../modules/protocols) module.

Process any pending steering messages and update execution context.

This method is called during agent execution to check for
and process any steering messages that have been queued.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def process_steering(context: Optional[Dict[str, Any]]) -> bool
```

## Parameters

<ParamField query="context" type="Optional" required={false}>
  Optional execution context to update
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  True if messages were processed, False otherwise
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/protocols.py#L503">
  `praisonaiagents/agent/protocols.py` at line 503
</Card>
