Set Agent Policy • AI Agent SDK
set_agent_policy: Set context policy for an agent.
set_agent_policy
Method
</div>
This is a method of the MultiAgentContextManager class in the manager module.
Set context policy for an agent.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: set_agent_policy"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
def set_agent_policy(agent_id: str, policy: ContextPolicy) -> NoneParameters
ParamField
strNo description available.
ParamField
ContextPolicyNo description available.
Source
View on GitHubpraisonaiagents/context/manager.py at line 987