Create Agent Scheduler • AI Agents Framework
create_agent_scheduler: Factory function to create agent scheduler.
create_agent_scheduler
Function
</div>
This function is defined in the agent_scheduler module.
Factory function to create agent scheduler.
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#8B0000', 'primaryTextColor': '#fff', 'primaryBorderColor': '#710101', 'lineColor': '#189AB4', 'secondaryColor': '#189AB4', 'tertiaryColor': '#fff' }}}%%
graph LR
input["Input Data"] --> agent["Agent: create_agent_scheduler"]
agent --> output["Output Result"]
style agent fill:#8B0000,color:#fff
style input fill:#8B0000,color:#fff
style output fill:#8B0000,color:#fffSignature
def create_agent_scheduler(agent: Any, task: str, config: Optional[Dict[str, Any]]) -> AgentSchedulerParameters
ParamField
AnyPraisonAI Agent instance
ParamField
strTask description
ParamField
OptionalOptional configuration
Returns
ResponseField
AgentSchedulerConfigured AgentScheduler instance
Uses
AgentScheduler
Source
View on GitHubpraisonai/agent_scheduler.py at line 321