Skip to content

latent.optimize.ace.adapter

ACE framework adapter for latent.optimize.

Classes

ACEAdapter

ACEAdapter(agent: BaseAgent, config: ACEAdapterConfig | None = None)

Adapter bridging latent agents with the ACE framework.

Wraps a BaseAgent to provide the interface expected by ACE for prompt adaptation and evaluation.

ACEAdapterConfig

ACEAdapterConfig()

Configuration for the ACE adapter.

Methods

ACEAdapter.run

run(prompt: str, input_text: str, context: str = '') -> str

Run the agent with the given prompt and input.

Caches results by (prompt, input_text, context) hash.