This README explains how a Latent Program Networks (LPN)-inspired approach can generate tool execution strategies for multi-tool tasks in an agent workflow. This method offers advantages over relying solely on Large Language Models (LLMs) for tool strategy via prompting. A toy Python script demonstrates the concept in action.
Latent Program Networks (LPNs), originally designed for abstract reasoning (e.g., the ARC benchmark), embed "rules" or "completions" into a searchable latent space. Here, we adapt LPNs to embed tool configurations and execution order, enabling smooth coordination of multiple tools (e.g., generate_summary
and create_pie_chart
) for tasks like summarization and data visualization.