kodeagent.examples#


Example runners for kodeagent.

This module contains helper functions to run the bundled example agents from user code. The API exposes a synchronous run_examples function plus an async def main() kept for script usage.

run_examples

Run KodeAgent with a list of pre-defined tasks and the choice of agent.

Example runners for kodeagent.

This module contains helper functions to run the bundled example agents from user code. The API exposes a synchronous run_examples function plus an async def main() kept for script usage.

async kodeagent.examples.run_examples(agent_type: str = 'react', max_iterations: int = 5, model_name: str = 'gemini/gemini-2.0-flash-lite') None[source]#

Run KodeAgent with a list of pre-defined tasks and the choice of agent. Some of the tasks include files or URLs. The demo includes demonstrations of recurrent_mode and chat_history injection.

Parameters:
  • agent_type – Which agent to run; one of react, codeact, or fca.

  • max_iterations – Maximum iterations/steps for the agent.

  • model_name – Which model to use for the agent (LiteLLM style).