ayn.core.config

Configuration for agent controllers.

Classes

ControllerConfig([model, temperature, ...])

Configuration for agent controllers

class ayn.core.config.ControllerConfig(model='gpt-4', temperature=0.7, max_tokens=1000, timeout=60, retry_count=3, api_key=None, additional_params=dict())[source]

Bases: object

Configuration for agent controllers

Example

>>> config = ControllerConfig(
...     model="gpt-4",
...     temperature=0.7,
...     max_tokens=1000
... )
>>> config.model
'gpt-4'
to_dict()[source]

Convert to dictionary

Return type:

dict