Skip to main content

from_env

Method
This is a method of the ContextConfig class in the models module.
Load config from environment variables. Reads PRAISONAI_CONTEXT_* environment variables.

Signature

def from_env() -> 'ContextConfig'

Returns

Returns
'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 376