Get Default Store • AI Agent SDK

get_default_store: Return the process-wide canonical schedule store.

get_default_store

Function

</div>

This function is defined in the scheduler module.

Return the process-wide canonical schedule store.

Lazily constructs a :class:ConfigYamlScheduleStore (persisting to `~/.praisonai/config.yaml) on first use, migrating any pre-existing jobs.json` data. All consumers share this single instance so a job authored on any surface is polled by the gateway ticker.

Signature

python
def get_default_store() -> Any

Returns

ResponseField Any

The result of the operation.

Uses

  • ConfigYamlScheduleStore
  • store.migrate_from_json
  • debug
  • logging.getLogger

Source

View on GitHub

praisonaiagents/scheduler/__init__.py at line 51