entity.defaults module

class entity.defaults.DefaultConfig(duckdb_path='./agent_memory.duckdb', ollama_url='http://localhost:11434', ollama_model='llama3.2:3b', storage_path='./agent_files', auto_install_ollama=True)[source]

Bases: object

Configuration values for default resources.

Parameters:
  • duckdb_path (str)

  • ollama_url (str)

  • ollama_model (str)

  • storage_path (str)

  • auto_install_ollama (bool)

duckdb_path: str = './agent_memory.duckdb'
ollama_url: str = 'http://localhost:11434'
ollama_model: str = 'llama3.2:3b'
storage_path: str = './agent_files'
auto_install_ollama: bool = True
classmethod from_env()[source]

Create config overriding fields with environment variables.

Return type:

DefaultConfig

__init__(duckdb_path='./agent_memory.duckdb', ollama_url='http://localhost:11434', ollama_model='llama3.2:3b', storage_path='./agent_files', auto_install_ollama=True)
Parameters:
  • duckdb_path (str)

  • ollama_url (str)

  • ollama_model (str)

  • storage_path (str)

  • auto_install_ollama (bool)

Return type:

None

entity.defaults.load_defaults(config=None)[source]

Build canonical resources using config or environment overrides.

Parameters:

config (DefaultConfig | None)

Return type:

dict[str, object]