From Env • AI Agent SDK

from_env: Load config from environment variables.

from_env

Method

</div>

This is a method of the ContextConfig class in the models module.

Load config from environment variables.

Reads PRAISONAI_CONTEXT_* environment variables.

Signature

python
def from_env() -> 'ContextConfig'

Returns

ResponseField 'ContextConfig'

The result of the operation.

Uses

  • os.getenv
  • OptimizerStrategy
  • cls
  • get_bool
  • get_float
  • get_int

Used By

Source

View on GitHub

praisonaiagents/context/models.py at line 382