{
  "id": "task_libraries:ai-agent/python",
  "path": "/exapedia/python-ai-agent-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python AI agent libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python AI agent libraries run a language model in a loop that calls tools, reads the results, and decides the next step. A framework manages the conversation state, tool definitions, and handoffs between agents across each run. These libraries let developers build agents that research, write code, and operate software for a user."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python AI agent libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#langchain",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#langgraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F152"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#strands-agents",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pydantic-ai-slim",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#openai-agents",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-adk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#browser-use",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dspy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#langchain",
          "label": [
            {
              "t": "text",
              "text": "LangChain"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F135"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Python three ten installation",
            "MCP client tools"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#langchain",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#langgraph",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F152"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F160"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F161"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#strands-agents",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F168"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pydantic-ai-slim",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F186"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#openai-agents",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F205"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F216"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-adk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F223"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#browser-use",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F242"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#dspy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "langchain",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/langchain-ai/langchain"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/langchain"
            },
            {
              "label": "Docs",
              "href": "https://reference.langchain.com/python/langchain/langchain/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F141"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://reference.langchain.com/python/langchain/langchain/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/langchain-for-beginners",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def main():\n    print(\"🤖 Agent with create_agent() Example\\n\")\n\n    # Create the model\n    model = ChatOpenAI(\n        model=os.getenv(\"AI_MODEL\"),\n        base_url=os.getenv(\"AI_ENDPOINT\"),\n        api_key=os.getenv(\"AI_API_KEY\"),\n    )\n\n    # Create agent using create_agent() - that's it!\n    agent = create_agent(model, tools=[calculator])\n\n    # Use the agent\n    query = \"What is 125 * 8?\"\n    print(f\"👤 User: {query}\\n\")\n\n    # create_agent() returns a LangChain agent that expects messages array\n    response = agent.invoke({\"messages\": [HumanMessage(content=query)]})\n\n    # The response contains the full state, including all messages\n    # Get the last message which is the agent's final answer\n    last_message = response[\"messages\"][-1]\n    print(f\"🤖 Agent: {last_message.content}\\n\")\n\n    print(\"💡 Key Differences from Manual Loop:\")\n    print(\"   • create_agent() handles the ReAct loop automatically\")\n    print(\"   • Less code to write\")\n    print(\"   • Production-ready error handling built-in\")\n    print(\"   • Same result, simpler API\\n\")\n\n    print(\"✅ Under the hood:\")\n    print(\n        \"   create_agent() implements the ReAct pattern (Thought → Action → Observation)\"\n    )\n    print(\"   and handles all the boilerplate for you.\")",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/langchain-for-beginners/blob/978a81f8d02f837ea23d2e8f5e1b9303f16f3914/05-agents/code/01_create_agent_basic.py#L57-L92",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=langchain%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from langchain.agents import create_agent\nagent = create_agent(model='openai:gpt-6.1-sol', tools=[])\nresult = agent.invoke({'messages': [{'role': 'user', 'content': 'Hello'}]})\nprint(result['messages'][-1].content)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.langchain.com/oss/python/langchain/agents",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "langgraph",
          "name": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/langchain-ai/langgraph"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/langgraph"
            },
            {
              "label": "Docs",
              "href": "https://reference.langchain.com/python/langgraph/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F159"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://reference.langchain.com/python/langgraph/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F152"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F167"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/assafelovic/gpt-researcher",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F166"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def _create_workflow(self, agents):\n    workflow = StateGraph(ResearchState)\n\n    # Add nodes for each agent\n    workflow.add_node(\"browser\", agents[\"research\"].run_initial_research)\n    workflow.add_node(\"planner\", agents[\"editor\"].plan_research)\n    workflow.add_node(\"researcher\", agents[\"editor\"].run_parallel_research)\n    workflow.add_node(\"writer\", agents[\"writer\"].run)\n    workflow.add_node(\"fact_checker\", agents[\"fact_checker\"].run)\n    workflow.add_node(\"visualizer\", agents[\"visualizer\"].run)\n    workflow.add_node(\"publisher\", agents[\"publisher\"].run)\n    workflow.add_node(\"human\", agents[\"human\"].review_plan)\n\n    # Add edges\n    self._add_workflow_edges(workflow)\n\n    return workflow",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/assafelovic/gpt-researcher/blob/ddd4db36208d9c8e49f3b2436efda97baecb5433/multi_agents/agents/orchestrator.py#L65-L81",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20langgraph%20for%20agent%20orchestration%20tool%20workflows%20state%20and%20delegation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F152"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from typing_extensions import TypedDict\nfrom langgraph.graph import END, START, StateGraph\n\nclass State(TypedDict):\n    text: str\n\ndef node_a(state: State):\n    return {'text': state['text'] + 'a'}\n\ngraph = (StateGraph(State)\n    .add_node('node_a', node_a)\n    .add_edge(START, 'node_a')\n    .add_edge('node_a', END)\n    .compile())\nprint(graph.invoke({'text': ''}))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.langchain.com/oss/python/langgraph/graph-api",
                  "label": [
                    {
                      "t": "text",
                      "text": "graph-api.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F157"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "strands-agents",
          "name": [
            {
              "t": "fact",
              "fact": "F168"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/strands-agents/harness-sdk"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/strands-agents"
            },
            {
              "label": "Docs",
              "href": "https://strandsagents.com"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F175"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://strandsagents.com",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F168"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/headroomlabs-ai/headroom",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F184"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def run_hook_provider_demo(region: str = \"us-west-2\") -> dict[str, Any]:\n    \"\"\"Demonstrate HeadroomHookProvider for tool output compression.\n\n    Returns metrics from the demo run.\n    \"\"\"\n    from strands import Agent, tool\n    from strands.models import BedrockModel\n\n    from headroom.integrations.strands import HeadroomHookProvider\n\n    print_box(\n        \"Demo 1: HeadroomHookProvider\",\n        [\n            \"The HeadroomHookProvider intercepts tool outputs and compresses\",\n            \"them BEFORE they're added to the conversation context.\",\n            \"\",\n            \"This reduces token usage for subsequent LLM calls by eliminating\",\n            \"redundant data from verbose tool outputs.\",\n            \"\",\n            \"Using: Claude 3 Haiku (anthropic.claude-3-haiku-20240307-v1:0)\",\n        ],\n    )\n\n    # Define tools with @tool decorator\n    @tool\n    def search_docs_tool(query: str) -> str:\n        \"\"\"Search documentation for articles matching the query.\n\n        Args:\n            query: The search query to find relevant documentation\n\n        Returns:\n            JSON array of search results with titles, snippets, and URLs\n        \"\"\"\n        return search_documentation(query, limit=25)\n\n    @tool\n    def get_logs_tool(server: str, lines: int = 100) -> str:\n        \"\"\"Fetch server logs for analysis and troubleshooting.\n\n        Args:\n            server: Name of the server to fetch logs from\n            lines: Number of log lines to retrieve (default: 100)\n\n        Returns:\n            JSON array of log entries with timestamps and messages\n        \"\"\"\n        return get_server_logs(server, lines=lines)\n\n    @tool\n    def query_db_tool(sql: str) -> str:\n        \"\"\"Execute a database query and return results.\n\n        Args:\n            sql: SQL query to execute (e.g., SELECT * FROM users)\n\n        Returns:\n            JSON array of database rows\n        \"\"\"\n        return query_database(sql, limit=50)\n\n    @tool\n    def get_metrics_tool(timerange: str = \"1h\") -> str:\n        \"\"\"Get system metrics for the specified time range.\n\n        Args:\n            timerange: Time range for metrics (5m, 15m, 1h, 6h, 24h)\n\n        Returns:\n            JSON object with time-series metrics data\n        \"\"\"\n        return get_system_metrics(timerange)\n\n    # Create BedrockModel\n    model = BedrockModel(\n        model_id=\"us.anthropic.claude-sonnet-4-5-20250929-v1:0\",\n        region_name=region,\n        temperature=0.1,\n    )\n\n    # Create HeadroomHookProvider\n    hook_provider = HeadroomHookProvider(\n        compress_tool_outputs=True,\n        min_tokens_to_compress=100,  # Compress outputs with 100+ tokens\n        preserve_errors=True,\n    )\n\n    # Create agent with hook\n    agent = Agent(\n        model=model,\n        tools=[search_docs_tool, get_logs_tool, query_db_tool, get_metrics_tool],\n        hooks=[hook_provider],\n    )\n\n    print(\"\\n  Running agent queries that trigger tools with verbose output...\")\n    print(\"  \" + \"-\" * 60)\n\n    # Query 1: Search documentation\n    print(\"\\n  Query 1: Searching documentation...\")\n    result1 = agent(\n        \"Search the documentation for 'authentication setup' and summarize \"\n        \"the top 3 most relevant articles you find.\"\n    )\n    print(f\"  Response: {str(result1)[:200]}...\")\n\n    # Query 2: Get server logs\n    print(\"\\n  Query 2: Fetching server logs...\")\n    result2 = agent(\n        \"Get the logs from server 'api-gateway' (100 lines) and tell me \"\n        \"how many ERROR and WARN level entries there are.\"\n    )\n    print(f\"  Response: {str(result2)[:200]}...\")\n\n    # Query 3: Query database\n    print(\"\\n  Query 3: Running database query...\")\n    result3 = agent(\n        \"Query the orders table and tell me how many orders have status 'completed' \"\n        \"and what the average order total is.\"\n    )\n    print(f\"  Response: {str(result3)[:200]}...\")\n\n    # Query 4: Get metrics\n    print(\"\\n  Query 4: Fetching system metrics...\")\n    result4 = agent(\n        \"Get the system metrics for the last hour and identify if there are \"\n        \"any services with high CPU usage (>70%) or memory issues.\"\n    )\n    print(f\"  Response: {str(result4)[:200]}...\")\n\n    # Get metrics\n    metrics = hook_provider.get_savings_summary()\n\n    # Display results\n    print_box(\n        \"HeadroomHookProvider Results\",\n        [\n            f\"Tool calls processed:    {metrics['total_requests']}\",\n            f\"Compressions applied:    {metrics['compressed_requests']}\",\n            \"\",\n            f\"Tokens BEFORE compression: {metrics['total_tokens_before']:,}\",\n            f\"Tokens AFTER compression:  {metrics['total_tokens_after']:,}\",\n            f\"Tokens SAVED:              {metrics['total_tokens_saved']:,}\",\n            \"\",\n            f\"Average savings:           {metrics['average_savings_percent']:.1f}%\",\n        ],\n        style=\"success\",\n    )\n\n    # Show per-tool breakdown\n    if hook_provider.metrics_history:\n        tool_metrics = []\n        for m in hook_provider.metrics_history:\n            tool_metrics.append(\n                {\n                    \"tool\": m.tool_name[:20],\n                    \"before\": f\"{m.tokens_before:,}\",\n                    \"after\": f\"{m.tokens_after:,}\",\n                    \"saved\": f\"{m.tokens_saved:,}\",\n                    \"pct\": f\"{m.savings_percent:.1f}%\",\n                }\n            )\n\n        print_metrics_table(\n            tool_metrics,\n            headers=[\"Tool\", \"Before\", \"After\", \"Saved\", \"%\"],\n            keys=[\"tool\", \"before\", \"after\", \"saved\", \"pct\"],\n            title=\"Per-Tool Compression Breakdown\",\n        )\n\n    print_comparison(\n        metrics[\"total_tokens_before\"],\n        metrics[\"total_tokens_after\"],\n        \"Tool Output Tokens\",\n    )\n\n    return metrics\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/headroomlabs-ai/headroom/blob/e27f0d96cc3032d5f2c510ac97545553b867a697/examples/strands_bedrock_demo.py#L514-L689",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=strands-agents%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F168"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from strands import Agent\nagent = Agent()\nprint(agent('Hello'))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pypi.org/pypi/strands-agents/1.65.0/json#info.description",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F173"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pydantic-ai-slim",
          "name": [
            {
              "t": "fact",
              "fact": "F186"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pydantic/pydantic-ai"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pydantic-ai-slim"
            },
            {
              "label": "Docs",
              "href": "https://pydantic.dev/docs/ai/overview/install/#slim-install"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F193"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pydantic.dev/docs/ai/overview/install/#slim-install",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/UKGovernmentBEIS/inspect_ai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F203"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@agent\ndef web_research_agent() -> Agent:\n    \"\"\"Pydantic AI Web Research Agent.\"\"\"\n\n    async def execute(state: AgentState) -> AgentState:\n        async with agent_bridge(state) as bridge:\n            agent = PydanticAgent(\n                _pydantic_bridge_model(),\n                capabilities=[WebSearch()],\n                system_prompt=\"You help users find information by searching the web.\",\n                output_type=AnswerToQueryOutput,\n                retries={\"output\": 3},\n            )\n\n            result = await agent.run(user_prompt(state.messages).text)\n\n            # capture the typed result as the completion (as the final\n            # assistant message includes on the `final_answer()` tool\n            # call that PydanticAI uses to report its answer\n            bridge.state.output.completion = result.output.model_dump_json()\n\n            return bridge.state\n\n    return execute",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/UKGovernmentBEIS/inspect_ai/blob/b1816681f4f4b7e6fb492c555befe1bb724706f0/examples/bridge/pydantic-ai/agent.py#L34-L57",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F202"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pydantic-ai-slim%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F186"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pydantic_ai import Agent\nagent = Agent('openai:gpt-5.2')\nresult = agent.run_sync('What is the capital of France?')\nprint(result.output)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pydantic.dev/docs/ai/api/agent/",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F191"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "openai-agents",
          "name": [
            {
              "t": "fact",
              "fact": "F205"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/openai/openai-agents-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/openai-agents"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/openai-agents/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F212"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/openai-agents/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-cs-agents-demo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@input_guardrail(name=\"Relevance Guardrail\")\nasync def relevance_guardrail(\n    context: RunContextWrapper[None], agent: Agent, input: str | list[TResponseInputItem]\n) -> GuardrailFunctionOutput:\n    \"\"\"Guardrail to check if input is relevant to airline topics.\"\"\"\n    result = await Runner.run(\n        guardrail_agent,\n        input,\n        context=context.context.state if hasattr(context.context, \"state\") else context.context,\n    )\n    final = result.final_output_as(RelevanceOutput)\n    return GuardrailFunctionOutput(output_info=final, tripwire_triggered=not final.is_relevant)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-cs-agents-demo/blob/bd7bfca0f5abf50529370814c3e7c88542011925/python-backend/airline/guardrails.py#L39-L50",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F220"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=openai-agents%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F205"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from agents import Agent, Runner\nagent = Agent(name='Assistant', instructions='You are a helpful assistant')\nresult = Runner.run_sync(agent, 'Write a haiku about recursion in programming.')\nprint(result.final_output)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-agents-python/blob/91fb508a8931016efa793b033147d08cd20308cf/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F210"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "google-adk",
          "name": [
            {
              "t": "fact",
              "fact": "F223"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/google/adk-python"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/google-adk"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/google-adk/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F230"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/google-adk/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/google/adk-docs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "async def call_agent_async(query):\n    content = types.Content(role='user', parts=[types.Part(text=query)])\n    session, runner = await setup_session_and_runner()\n    events = runner.run_async(user_id=USER_ID, session_id=SESSION_ID, new_message=content)\n\n    async for event in events:\n        if event.is_final_response() and event.content and event.content.parts:\n            final_response = event.content.parts[0].text\n            print(\"Agent Response: \", final_response)",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/google/adk-docs/blob/ff7a5f56469a81f3e43a8fc54668d8dc84300192/examples/python/snippets/tools/overview/customer_support_agent.py#L65-L73",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=google-adk%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F223"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import asyncio\nfrom google.adk import Agent\nfrom google.adk.runners import InMemoryRunner\nagent = Agent(name='greeting_agent', model='gemini-3.5-flash', instruction='Greet the user warmly.')\nrunner = InMemoryRunner(agent=agent)\nasyncio.run(runner.run_debug('Hello'))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/google/adk-python/blob/e2a21ac23260d043bf9d217b573af1bef48f0f70/src/google/adk/runners.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "runners.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F228"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "browser-use",
          "name": [
            {
              "t": "fact",
              "fact": "F242"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/browser-use/browser-use"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/browser-use"
            },
            {
              "label": "Docs",
              "href": "https://docs.browser-use.com"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.browser-use.com",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from browser_use import Agent\nresult = Agent('Find the number of stars of the browser-use repo').run_sync()\nprint(result.final_result())\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/browser-use/browser-use/blob/ccbdb8095fbaf903c748880a600054a34c7b6191/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=browser-use%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F242"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F247"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "dspy",
          "name": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/stanfordnlp/dspy"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/dspy"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/dspy/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/dspy/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import dspy\ndspy.configure(lm=dspy.LM('openai/gpt-4.1-mini'))\nagent = dspy.ReAct('question -> answer', tools=[])\nresult = agent(question='What is the capital of France?')\nprint(result.answer)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/stanfordnlp/dspy/blob/9d3a8eb04618907854256e5b0fa88ea29e53e10b/docs/docs/learn/programming/mcp.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "mcp.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=dspy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F262"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python AI agent library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#langgraph",
          "label": [
            {
              "t": "text",
              "text": "LangGraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits long-running agents that need explicit state and control flow. "
        },
        {
          "t": "link",
          "href": "#openai-agents",
          "label": [
            {
              "t": "text",
              "text": "OpenAI Agents SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#pydantic-ai-slim",
          "label": [
            {
              "t": "text",
              "text": "Pydantic AI Slim"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit smaller agents with typed tools and handoffs. "
        },
        {
          "t": "link",
          "href": "#browser-use",
          "label": [
            {
              "t": "text",
              "text": "Browser Use"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits agents that operate a web browser."
        }
      ]
    },
    {
      "q": "What is LangGraph?",
      "a": [
        {
          "t": "link",
          "href": "#langgraph",
          "label": [
            {
              "t": "text",
              "text": "LangGraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " orchestrates long-running agents as stateful graphs of steps. Its runtime persists state between steps, letting a run pause for human input and resume."
        }
      ]
    },
    {
      "q": "What is LangChain?",
      "a": [
        {
          "t": "link",
          "href": "#langchain",
          "label": [
            {
              "t": "text",
              "text": "LangChain"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a framework for building LLM applications from composable parts such as models, prompts, tools, and retrievers. Its agents run on LangGraph."
        }
      ]
    },
    {
      "q": "LangChain vs LangGraph: what is the difference?",
      "a": [
        {
          "t": "link",
          "href": "#langchain",
          "label": [
            {
              "t": "text",
              "text": "LangChain"
            }
          ]
        },
        {
          "t": "text",
          "text": " provides model integrations and a high-level agent API. "
        },
        {
          "t": "link",
          "href": "#langgraph",
          "label": [
            {
              "t": "text",
              "text": "LangGraph"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the lower-level runtime for agents that need custom control flow and durable state."
        }
      ]
    },
    {
      "q": "What is DSPy?",
      "a": [
        {
          "t": "link",
          "href": "#dspy",
          "label": [
            {
              "t": "text",
              "text": "DSPy"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a framework for programming language models with declarative modules instead of hand-written prompts. Its optimizers tune prompts and weights against a metric."
        }
      ]
    },
    {
      "q": "What is Google ADK?",
      "a": [
        {
          "t": "link",
          "href": "#google-adk",
          "label": [
            {
              "t": "text",
              "text": "google-adk"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the Agent Development Kit, an open-source Google framework for building and deploying agents. It works with Gemini and other models."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, langgraph",
      "display": "LangGraph",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, langgraph",
      "display": "58.7M",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, langgraph",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, langgraph",
      "display": "1.2.22, Nov 2026",
      "asOf": "2026-11-14"
    },
    "F5": {
      "label": "Package release date, langgraph",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F6": {
      "label": "Repository stars, langgraph",
      "display": "45.0K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Custom tools, langgraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Multi-agent workflows, langgraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Native async, langgraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Human approval, langgraph",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, langgraph",
      "display": "pip install langgraph",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, langgraph",
      "display": "Orchestrates long-running agents through stateful graphs and a runtime.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, langgraph",
      "display": "Retains graph state in checkpoints",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, langgraph",
      "display": "Use a checkpointer to retain thread-scoped state across graph runs.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, langgraph",
      "display": "Pauses for application approval",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, langgraph",
      "display": "Interrupt graph execution and resume it with an application-supplied response.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, langgraph",
      "display": "Persistence needs a checkpointer",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, langgraph",
      "display": "Configure a checkpointer before relying on retained thread state.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, langgraph",
      "display": "Resuming restarts the interrupted node",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, langgraph",
      "display": "Keep code before an interrupt safe to repeat.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, langgraph",
      "display": "from langgraph.graph import StateGraph, MessagesState, START, END\n\ndef mock_llm(state: MessagesState):\n    return {\"messages\": [{\"role\": \"ai\", \"content\": \"hello world\"}]}\n\ngraph = StateGraph(MessagesState)\ngraph.add_node(mock_llm)\ngraph.add_edge(START, \"mock_llm\")\ngraph.add_edge(\"mock_llm\", END)\ngraph = graph.compile()\n\ngraph.invoke({\"messages\": [{\"role\": \"user\", \"content\": \"hi!\"}]})\n\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, langgraph",
      "display": "def _create_workflow(self, agents):\n    workflow = StateGraph(ResearchState)\n\n    # Add nodes for each agent\n    workflow.add_node(\"browser\", agents[\"research\"].run_initial_research)\n    workflow.add_node(\"planner\", agents[\"editor\"].plan_research)\n    workflow.add_node(\"researcher\", agents[\"editor\"].run_parallel_research)\n    workflow.add_node(\"writer\", agents[\"writer\"].run)\n    workflow.add_node(\"fact_checker\", agents[\"fact_checker\"].run)\n    workflow.add_node(\"visualizer\", agents[\"visualizer\"].run)\n    workflow.add_node(\"publisher\", agents[\"publisher\"].run)\n    workflow.add_node(\"human\", agents[\"human\"].review_plan)\n\n    # Add edges\n    self._add_workflow_edges(workflow)\n\n    return workflow\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, langgraph",
      "display": "orchestrator.py · _create_workflow()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, langgraph",
      "display": "assafelovic/gpt-researcher",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, assafelovic/gpt-researcher",
      "display": "30.7K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, assafelovic/gpt-researcher",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F27": {
      "label": "Library name, pydantic-ai",
      "display": "Pydantic AI",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, pydantic-ai",
      "display": "6.7M",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "License, pydantic-ai",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, pydantic-ai",
      "display": "2.69.0, Nov 2026",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release date, pydantic-ai",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Repository stars, pydantic-ai",
      "display": "21.2K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Custom tools, pydantic-ai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Multi-agent workflows, pydantic-ai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Native async, pydantic-ai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Human approval, pydantic-ai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Install, pydantic-ai",
      "display": "pip install pydantic-ai",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "What it does, pydantic-ai",
      "display": "Builds agents with typed tools, dependencies, and structured outputs.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, pydantic-ai",
      "display": "Declares typed agent outputs",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, pydantic-ai",
      "display": "Declare an output model for the agent’s structured result.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, pydantic-ai",
      "display": "Registers context-aware tool functions",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, pydantic-ai",
      "display": "Use agent.tool when a tool needs the agent context.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, pydantic-ai",
      "display": "Request exhaustion raises an error",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, pydantic-ai",
      "display": "Handle a reached request limit instead of expecting a final answer.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, pydantic-ai",
      "display": "Parallel tools share execution limits",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, pydantic-ai",
      "display": "An over-limit batch can stop before any tool executes.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, pydantic-ai",
      "display": "from typing import Literal\n\nfrom pydantic import BaseModel, Field\n\nfrom pydantic_ai import Agent, RunContext\n\n\nclass Sentiment(BaseModel):\n    label: Literal['positive', 'negative', 'neutral']\n    score: float = Field(ge=-1, le=1)\n\n\nagent = Agent('openai:gpt-6.1-sol', output_type=Sentiment)\n\n\n@agent.tool\ndef recent_reviews(ctx: RunContext, product: str) -> list[str]:\n    \"\"\"Fetch recent review snippets for a product.\"\"\"\n    return ['The new release fixed everything I complained about!']\n\n\nresult = agent.run_sync('How are people feeling about the Extract app?')\nprint(result.output)\n#> label='positive' score=0.9\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, pydantic-ai",
      "display": "@agent\ndef web_research_agent() -> Agent:\n    \"\"\"Pydantic AI Web Research Agent.\"\"\"\n\n    async def execute(state: AgentState) -> AgentState:\n        async with agent_bridge(state) as bridge:\n            agent = PydanticAgent(\n                _pydantic_bridge_model(),\n                capabilities=[WebSearch()],\n                system_prompt=\"You help users find information by searching the web.\",\n                output_type=AnswerToQueryOutput,\n                retries={\"output\": 3},\n            )\n\n            result = await agent.run(user_prompt(state.messages).text)\n\n            # capture the typed result as the completion (as the final\n            # assistant message includes on the `final_answer()` tool\n            # call that PydanticAI uses to report its answer\n            bridge.state.output.completion = result.output.model_dump_json()\n\n            return bridge.state\n\n    return execute\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, pydantic-ai",
      "display": "agent.py · web_research_agent()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, pydantic-ai",
      "display": "UKGovernmentBEIS/inspect_ai",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, UKGovernmentBEIS/inspect_ai",
      "display": "3.3K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, UKGovernmentBEIS/inspect_ai",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Library name, crewai",
      "display": "CrewAI",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Monthly downloads, crewai",
      "display": "2.6M",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "License, crewai",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Package release, crewai",
      "display": "1.15.41, Nov 2026",
      "asOf": "2026-11-12"
    },
    "F57": {
      "label": "Package release date, crewai",
      "display": "Nov 2026",
      "asOf": "2026-11-12"
    },
    "F58": {
      "label": "Repository stars, crewai",
      "display": "61.0K",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Custom tools, crewai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Multi-agent workflows, crewai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Native async, crewai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "Human approval, crewai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "Install, crewai",
      "display": "pip install crewai",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "What it does, crewai",
      "display": "Coordinates role-based agents and task workflows.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, crewai",
      "display": "Organizes role-based task teams",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, crewai",
      "display": "Assign roles and goals to agents that collaborate on tasks.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "strengths lead, crewai",
      "display": "Declares structured task outputs",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "strengths, crewai",
      "display": "Set output_pydantic to define a model for task output.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, crewai",
      "display": "Hierarchical crews need a manager",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, crewai",
      "display": "Provide a manager model or a custom manager agent.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, crewai",
      "display": "Async method names differ",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, crewai",
      "display": "Use akickoff for native async; kickoff_async uses a background thread.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, crewai",
      "display": "from crewai.flow.flow import Flow, listen, start, router, or_\nfrom crewai import Crew, Agent, Task, Process\nfrom pydantic import BaseModel\n\n# Define structured state for precise control\nclass MarketState(BaseModel):\n    sentiment: str = \"neutral\"\n    confidence: float = 0.0\n    recommendations: list = []\n\nclass AdvancedAnalysisFlow(Flow[MarketState]):\n    @start()\n    def fetch_market_data(self):\n        # Demonstrate low-level control with structured state\n        self.state.sentiment = \"analyzing\"\n        return {\"sector\": \"tech\", \"timeframe\": \"1W\"}  # These parameters match the task description template\n\n    @listen(fetch_market_data)\n    def analyze_with_crew(self, market_data):\n        # Show crew agency through specialized roles\n        analyst = Agent(\n            role=\"Senior Market Analyst\",\n            goal=\"Conduct deep market analysis with expert insight\",\n            backstory=\"You're a veteran analyst known for identifying subtle market patterns\"\n        )\n        researcher = Agent(\n            role=\"Data Researcher\",\n            goal=\"Gather and validate supporting market data\",\n            backstory=\"You excel at finding and correlating multiple data sources\"\n        )\n\n        analysis_task = Task(\n            description=\"Analyze {sector} sector data for the past {timeframe}\",\n            expected_output=\"Detailed market analysis with confidence score\",\n            agent=analyst\n        )\n        research_task = Task(\n            description=\"Find supporting data to validate the analysis\",\n            expected_output=\"Corroborating evidence and potential contradictions\",\n            agent=researcher\n        )\n\n        # Demonstrate crew autonomy\n        analysis_crew = Crew(\n            agents=[analyst, researcher],\n            tasks=[analysis_task, research_task],\n            process=Process.sequential,\n            verbose=True\n        )\n        return analysis_crew.kickoff(inputs=market_data)  # Pass market_data as named inputs\n\n    @router(analyze_with_crew)\n    def determine_next_steps(self):\n        # Show flow control with conditional routing\n        if self.state.confidence > 0.8:\n            return \"high_confidence\"\n        elif self.state.confidence > 0.5:\n            return \"medium_confidence\"\n        return \"low_confidence\"\n\n    @listen(\"high_confidence\")\n    def execute_strategy(self):\n        # Demonstrate complex decision making\n        strategy_crew = Crew(\n            agents=[\n                Agent(role=\"Strategy Expert\",\n                      goal=\"Develop optimal market strategy\")\n            ],\n            tasks=[\n                Task(description=\"Create detailed strategy based on analysis\",\n                     expected_output=\"Step-by-step action plan\")\n            ]\n        )\n        return strategy_crew.kickoff()\n\n    @listen(or_(\"medium_confidence\", \"low_confidence\"))\n    def request_additional_analysis(self):\n        self.state.recommendations.append(\"Gather more data\")\n        return \"Additional analysis required\"\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, crewai",
      "display": "def build_crew(model_id: str, contract_text: str, party_perspective: str) -> Crew:\n    llm = build_llm(model_id)\n\n    extractor = Agent(\n        role=\"Contract Clause Extractor\",\n        goal=(\n            \"Identify, label, and quote every material clause from the \"\n            \"provided contract with precise references.\"\n        ),\n        backstory=(\n            \"You are a meticulous paralegal who has read thousands of \"\n            \"commercial contracts. You never paraphrase clauses when a \"\n            \"direct quote will do, and you never invent text that is not \"\n            \"in the document.\"\n        ),\n        llm=llm,\n        verbose=True,\n        allow_delegation=False,\n    )\n\n    risk_analyst = Agent(\n        role=\"Legal Risk Analyst\",\n        goal=(\n            f\"Score each extracted clause for risk from the perspective \"\n            f\"of {party_perspective}, using Low / Medium / High with a \"\n            f\"short rationale.\"\n        ),\n        backstory=(\n            \"You are a senior contracts attorney who specializes in \"\n            \"protecting your client from one-sided terms, unbounded \"\n            \"liability, and hidden operational obligations.\"\n        ),\n        llm=llm,\n        verbose=True,\n        allow_delegation=False,\n    )\n\n    reviewer = Agent(\n        role=\"Senior Paralegal Reviewer\",\n        goal=(\n            \"Produce a final contract review memo summarizing clauses, \"\n            \"risks, and redline recommendations.\"\n        ),\n        backstory=(\n            \"You consolidate the work of the extractor and risk analyst \"\n            \"into a clean, executive-ready memo with clear next steps.\"\n        ),\n        llm=llm,\n        verbose=True,\n        allow_delegation=False,\n    )\n\n    extract_task = Task(\n        description=(\n            \"You will receive the full text of a contract below. Extract \"\n            \"every material clause and map it to one of these categories:\\n\"\n            f\"{chr(10).join('- ' + c for c in CLAUSE_TYPES)}\\n\\n\"\n            \"For EACH clause produce:\\n\"\n            \"1. Category (from the list above, or 'Other')\\n\"\n            \"2. Section / heading reference as it appears in the contract\\n\"\n            \"3. A verbatim quote (<= 400 chars; truncate with ... if longer)\\n\"\n            \"4. A one-sentence plain-English summary\\n\\n\"\n            \"Return the result as a Markdown table with columns: \"\n            \"Category | Section | Quote | Summary.\\n\\n\"\n            \"CONTRACT TEXT:\\n\"\n            f\"\\\"\\\"\\\"\\n{contract_text}\\n\\\"\\\"\\\"\"\n        ),\n        expected_output=(\n            \"A Markdown table with one row per material clause.\"\n        ),\n        agent=extractor,\n    )\n\n    risk_task = Task(\n        description=(\n            \"Using the extracted clauses from the previous task, score \"\n            f\"each one for risk from the perspective of {party_perspective}. \"\n            \"Output a Markdown table with columns: \"\n            \"Category | Risk (Low/Medium/High) | Why it matters | \"\n            \"Suggested redline.\\n\\n\"\n            \"Scoring guidance:\\n\"\n            \"- High: uncapped/broad liability, one-sided indemnity, \"\n            \"auto-renewal without notice, IP assignment giveaways, \"\n            \"unilateral termination rights against our client, \"\n            \"unfavorable governing law, broad non-competes.\\n\"\n            \"- Medium: vague SLAs, ambiguous payment terms, \"\n            \"confidentiality carve-outs, assignment without consent.\\n\"\n            \"- Low: standard boilerplate with balanced terms.\\n\"\n            \"Finish with a single 'Overall Contract Risk' line: \"\n            \"Low / Medium / High, plus a 2-sentence justification.\"\n        ),\n        expected_output=(\n            \"A Markdown risk table followed by an overall risk rating.\"\n        ),\n        agent=risk_analyst,\n        context=[extract_task],\n    )\n\n    review_task = Task(\n        description=(\n            \"Write the final Contract Review Memo in Markdown with these \"\n            \"sections:\\n\"\n            \"1. **Executive Summary** (3-5 bullets: what this contract is, \"\n            \"key commercial terms, overall risk verdict).\\n\"\n            \"2. **Key Clauses** (table from the extractor, trimmed to the \"\n            \"most material rows).\\n\"\n            \"3. **Risk Assessment** (table from the risk analyst).\\n\"\n            \"4. **Recommended Redlines** (numbered list of the top 5-8 \"\n            \"changes to request, each with a one-line rationale).\\n\"\n            \"5. **Open Questions for Counsel** (bullets: anything you \"\n            \"cannot determine from the document alone).\\n\\n\"\n            f\"Client perspective: {party_perspective}.\\n\"\n            \"Never invent clauses that were not identified by the \"\n            \"extractor. Close the memo with a disclaimer that this is \"\n            \"an AI-generated review and not legal advice.\"\n        ),\n        expected_output=\"A complete Markdown review memo.\",\n        agent=reviewer,\n        context=[extract_task, risk_task],\n    )\n\n    return Crew(\n        agents=[extractor, risk_analyst, reviewer],\n        tasks=[extract_task, risk_task, review_task],\n        process=Process.sequential,\n        verbose=True,\n    )\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, crewai",
      "display": "crew.py · build_crew()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, crewai",
      "display": "Arindam200/awesome-ai-apps",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, Arindam200/awesome-ai-apps",
      "display": "16.8K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, Arindam200/awesome-ai-apps",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F79": {
      "label": "Library name, smolagents",
      "display": "smolagents",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, smolagents",
      "display": "721.2K",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "License, smolagents",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, smolagents",
      "display": "1.26.0, May 2026",
      "asOf": "2026-05-29"
    },
    "F83": {
      "label": "Package release date, smolagents",
      "display": "May 2026",
      "asOf": "2026-05-29"
    },
    "F84": {
      "label": "Repository stars, smolagents",
      "display": "30.4K",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Custom tools, smolagents",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Multi-agent workflows, smolagents",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, smolagents",
      "display": "pip install \"smolagents[toolkit]\"",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, smolagents",
      "display": "Builds tool-using agents whose actions can be generated Python code.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, smolagents",
      "display": "Composes tool calls as code",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, smolagents",
      "display": "Use CodeAgent to let the model express actions as Python code.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, smolagents",
      "display": "Delegates to managed agents",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, smolagents",
      "display": "Give a manager agent other agents through managed_agents.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, smolagents",
      "display": "Local execution lacks sandbox isolation",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, smolagents",
      "display": "Use an isolated executor when execution needs a security boundary.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations lead, smolagents",
      "display": "CodeAgent.run blocks async endpoints",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations, smolagents",
      "display": "Offload synchronous runs when serving requests from an async web application.",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Quickstart, smolagents",
      "display": "from smolagents import CodeAgent, WebSearchTool, InferenceClientModel\n\nmodel = InferenceClientModel()\nagent = CodeAgent(tools=[WebSearchTool()], model=model, stream_outputs=True)\n\nagent.run(\"How many seconds would it take for a leopard at full speed to run through Pont des Arts?\")\n",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need",
      "display": "Graph state that spans runs",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Why choose langgraph",
      "display": "thread-scoped graph checkpoints",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need in introduction",
      "display": "graph state that spans runs",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "When to consider pydantic-ai",
      "display": "typed agent results are the main interface",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need",
      "display": "Teams with distinct roles",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Why choose crewai",
      "display": "agent roles, goals, and collaboration",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need in introduction",
      "display": "teams with distinct roles",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "When to consider langgraph",
      "display": "approval points belong inside an explicit graph",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Typed outputs and tools",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose pydantic-ai",
      "display": "an explicit structured output model",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "typed outputs and tools",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "When to consider crewai",
      "display": "role-based task teams fit the application",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need",
      "display": "Tool composition through generated code",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Why choose smolagents",
      "display": "CodeAgent actions expressed as Python",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need in introduction",
      "display": "tool composition through generated code",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "When to consider pydantic-ai",
      "display": "context-aware registered functions fit the tool interface",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Page introduction",
      "display": "Python AI agent libraries let application developers build tool-using agent workflows.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: What are the main programming models in these frameworks?",
      "display": "LangGraph orchestrates long-running stateful agents.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: What are the main programming models in these frameworks?",
      "display": "CrewAI agents collaborate through roles and goals.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: What are the main programming models in these frameworks?",
      "display": "Pydantic AI exposes typed outputs, dependencies, and tools.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: What are the main programming models in these frameworks?",
      "display": "smolagents CodeAgent expresses actions as code.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Does resuming a LangGraph interrupt continue after the interrupted line?",
      "display": "The containing node restarts, so code before its interrupt executes again.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: What persists LangGraph state between runs?",
      "display": "Checkpointers retain a thread’s graph state as checkpoints.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: What persists LangGraph state between runs?",
      "display": "Stores keep application data outside that thread-scoped state.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Are both CrewAI async kickoff methods natively asynchronous?",
      "display": "akickoff is native async, while kickoff_async wraps synchronous execution in a thread.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Are both CrewAI async kickoff methods natively asynchronous?",
      "display": "The thread-based method uses asyncio.to_thread.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: What does a hierarchical CrewAI crew require?",
      "display": "A hierarchical crew needs a manager model or manager agent.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can a CrewAI task request human review?",
      "display": "The human_input task setting requests human review of the agent’s final answer.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Can Pydantic AI pause before a tool action?",
      "display": "A tool can require approval before execution through its requires_approval setting.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: What happens when a Pydantic AI model-request limit is reached?",
      "display": "The run raises instead of returning an answer, even if enough information has been gathered.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Can parallel tool calls partially run before their shared limit is exceeded?",
      "display": "Pydantic AI checks the tool-call limit before execution; an over-limit parallel batch executes no tools.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Can smolagents run directly inside an async endpoint?",
      "display": "Its own CodeAgent guide says run is synchronous and blocks an async endpoint unless offloaded.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Can smolagents run directly inside an async endpoint?",
      "display": "The own integration uses anyio.to_thread.run_sync to offload it.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does the default local code executor provide sandbox isolation?",
      "display": "The smolagents README explicitly says its LocalPythonExecutor is not a security sandbox.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: What does JSON output mean in the capability table?",
      "display": "CrewAI documents plain JSON checkpoint files through its default JsonProvider storage backend.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: What does JSON output mean in the capability table?",
      "display": "Pydantic AI’s structured output model is an agent result contract, a separate concept from checkpoint files.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Library name, langchain",
      "display": "LangChain",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, langchain",
      "display": "157.1M",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, langchain",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, langchain",
      "display": "1.5.2",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, langchain",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, langchain",
      "display": "python -m pip install langchain langchain-openai",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, langchain",
      "display": "from langchain.agents import create_agent\nagent = create_agent(model='openai:gpt-6.1-sol', tools=[])\nresult = agent.invoke({'messages': [{'role': 'user', 'content': 'Hello'}]})\nprint(result['messages'][-1].content)\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Official description, langchain",
      "display": "Builds LLM applications from composable components.",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Quickstart source file, langchain",
      "display": "agents (official documentation route)",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Repository stars, langchain",
      "display": "149.9K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Python three ten installation, langchain",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "MCP client tools, langchain",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Python requirement, langchain",
      "display": "<4.0.0,>=3.11.0",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Agent programming model, langchain",
      "display": "High-level create_agent factory returning an invokable graph",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Project function, langchain",
      "display": "def main():\n    print(\"🤖 Agent with create_agent() Example\\n\")\n\n    # Create the model\n    model = ChatOpenAI(\n        model=os.getenv(\"AI_MODEL\"),\n        base_url=os.getenv(\"AI_ENDPOINT\"),\n        api_key=os.getenv(\"AI_API_KEY\"),\n    )\n\n    # Create agent using create_agent() - that's it!\n    agent = create_agent(model, tools=[calculator])\n\n    # Use the agent\n    query = \"What is 125 * 8?\"\n    print(f\"👤 User: {query}\\n\")\n\n    # create_agent() returns a LangChain agent that expects messages array\n    response = agent.invoke({\"messages\": [HumanMessage(content=query)]})\n\n    # The response contains the full state, including all messages\n    # Get the last message which is the agent's final answer\n    last_message = response[\"messages\"][-1]\n    print(f\"🤖 Agent: {last_message.content}\\n\")\n\n    print(\"💡 Key Differences from Manual Loop:\")\n    print(\"   • create_agent() handles the ReAct loop automatically\")\n    print(\"   • Less code to write\")\n    print(\"   • Production-ready error handling built-in\")\n    print(\"   • Same result, simpler API\\n\")\n\n    print(\"✅ Under the hood:\")\n    print(\n        \"   create_agent() implements the ReAct pattern (Thought → Action → Observation)\"\n    )\n    print(\"   and handles all the boilerplate for you.\")",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project source file, langchain",
      "display": "05-agents/code/01_create_agent_basic.py",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project full_name, langchain",
      "display": "microsoft/langchain-for-beginners",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project stargazers_count, langchain",
      "display": "689",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Library name, langgraph",
      "display": "LangGraph",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Monthly downloads, langgraph",
      "display": "58.7M",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "License, langgraph",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Package release, langgraph",
      "display": "1.2.22",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Package release date, langgraph",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Install, langgraph",
      "display": "python -m pip install langgraph",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Quickstart, langgraph",
      "display": "from typing_extensions import TypedDict\nfrom langgraph.graph import END, START, StateGraph\n\nclass State(TypedDict):\n    text: str\n\ndef node_a(state: State):\n    return {'text': state['text'] + 'a'}\n\ngraph = (StateGraph(State)\n    .add_node('node_a', node_a)\n    .add_edge(START, 'node_a')\n    .add_edge('node_a', END)\n    .compile())\nprint(graph.invoke({'text': ''}))\n",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Repository stars, langgraph",
      "display": "45.0K",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Python three ten installation, langgraph",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "MCP client tools, langgraph",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Python requirement, langgraph",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Agent programming model, langgraph",
      "display": "Explicit typed state, nodes, edges, and compiled execution",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project function, langgraph",
      "display": "def _create_workflow(self, agents):\n    workflow = StateGraph(ResearchState)\n\n    # Add nodes for each agent\n    workflow.add_node(\"browser\", agents[\"research\"].run_initial_research)\n    workflow.add_node(\"planner\", agents[\"editor\"].plan_research)\n    workflow.add_node(\"researcher\", agents[\"editor\"].run_parallel_research)\n    workflow.add_node(\"writer\", agents[\"writer\"].run)\n    workflow.add_node(\"fact_checker\", agents[\"fact_checker\"].run)\n    workflow.add_node(\"visualizer\", agents[\"visualizer\"].run)\n    workflow.add_node(\"publisher\", agents[\"publisher\"].run)\n    workflow.add_node(\"human\", agents[\"human\"].review_plan)\n\n    # Add edges\n    self._add_workflow_edges(workflow)\n\n    return workflow",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project source file, langgraph",
      "display": "multi_agents/agents/orchestrator.py",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project full_name, langgraph",
      "display": "assafelovic/gpt-researcher",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Project stargazers_count, langgraph",
      "display": "30.7K",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Library name, strands-agents",
      "display": "Strands Agents",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Monthly downloads, strands-agents",
      "display": "38.6M",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "License, strands-agents",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release, strands-agents",
      "display": "1.65.0",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Package release date, strands-agents",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Install, strands-agents",
      "display": "python -m pip install strands-agents",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Quickstart, strands-agents",
      "display": "from strands import Agent\nagent = Agent()\nprint(agent('Hello'))\n",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Official description, strands-agents",
      "display": "Builds AI agents with a model-driven approach.",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Quickstart source file, strands-agents",
      "display": "strands-py/README.md",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Repository stars, strands-agents",
      "display": "9.2K",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Python three ten installation, strands-agents",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "MCP client tools, strands-agents",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Python requirement, strands-agents",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Agent programming model, strands-agents",
      "display": "Model-driven Agent with callable and async invocation",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Project function, strands-agents",
      "display": "def run_hook_provider_demo(region: str = \"us-west-2\") -> dict[str, Any]:\n    \"\"\"Demonstrate HeadroomHookProvider for tool output compression.\n\n    Returns metrics from the demo run.\n    \"\"\"\n    from strands import Agent, tool\n    from strands.models import BedrockModel\n\n    from headroom.integrations.strands import HeadroomHookProvider\n\n    print_box(\n        \"Demo 1: HeadroomHookProvider\",\n        [\n            \"The HeadroomHookProvider intercepts tool outputs and compresses\",\n            \"them BEFORE they're added to the conversation context.\",\n            \"\",\n            \"This reduces token usage for subsequent LLM calls by eliminating\",\n            \"redundant data from verbose tool outputs.\",\n            \"\",\n            \"Using: Claude 3 Haiku (anthropic.claude-3-haiku-20240307-v1:0)\",\n        ],\n    )\n\n    # Define tools with @tool decorator\n    @tool\n    def search_docs_tool(query: str) -> str:\n        \"\"\"Search documentation for articles matching the query.\n\n        Args:\n            query: The search query to find relevant documentation\n\n        Returns:\n            JSON array of search results with titles, snippets, and URLs\n        \"\"\"\n        return search_documentation(query, limit=25)\n\n    @tool\n    def get_logs_tool(server: str, lines: int = 100) -> str:\n        \"\"\"Fetch server logs for analysis and troubleshooting.\n\n        Args:\n            server: Name of the server to fetch logs from\n            lines: Number of log lines to retrieve (default: 100)\n\n        Returns:\n            JSON array of log entries with timestamps and messages\n        \"\"\"\n        return get_server_logs(server, lines=lines)\n\n    @tool\n    def query_db_tool(sql: str) -> str:\n        \"\"\"Execute a database query and return results.\n\n        Args:\n            sql: SQL query to execute (e.g., SELECT * FROM users)\n\n        Returns:\n            JSON array of database rows\n        \"\"\"\n        return query_database(sql, limit=50)\n\n    @tool\n    def get_metrics_tool(timerange: str = \"1h\") -> str:\n        \"\"\"Get system metrics for the specified time range.\n\n        Args:\n            timerange: Time range for metrics (5m, 15m, 1h, 6h, 24h)\n\n        Returns:\n            JSON object with time-series metrics data\n        \"\"\"\n        return get_system_metrics(timerange)\n\n    # Create BedrockModel\n    model = BedrockModel(\n        model_id=\"us.anthropic.claude-sonnet-4-5-20250929-v1:0\",\n        region_name=region,\n        temperature=0.1,\n    )\n\n    # Create HeadroomHookProvider\n    hook_provider = HeadroomHookProvider(\n        compress_tool_outputs=True,\n        min_tokens_to_compress=100,  # Compress outputs with 100+ tokens\n        preserve_errors=True,\n    )\n\n    # Create agent with hook\n    agent = Agent(\n        model=model,\n        tools=[search_docs_tool, get_logs_tool, query_db_tool, get_metrics_tool],\n        hooks=[hook_provider],\n    )\n\n    print(\"\\n  Running agent queries that trigger tools with verbose output...\")\n    print(\"  \" + \"-\" * 60)\n\n    # Query 1: Search documentation\n    print(\"\\n  Query 1: Searching documentation...\")\n    result1 = agent(\n        \"Search the documentation for 'authentication setup' and summarize \"\n        \"the top 3 most relevant articles you find.\"\n    )\n    print(f\"  Response: {str(result1)[:200]}...\")\n\n    # Query 2: Get server logs\n    print(\"\\n  Query 2: Fetching server logs...\")\n    result2 = agent(\n        \"Get the logs from server 'api-gateway' (100 lines) and tell me \"\n        \"how many ERROR and WARN level entries there are.\"\n    )\n    print(f\"  Response: {str(result2)[:200]}...\")\n\n    # Query 3: Query database\n    print(\"\\n  Query 3: Running database query...\")\n    result3 = agent(\n        \"Query the orders table and tell me how many orders have status 'completed' \"\n        \"and what the average order total is.\"\n    )\n    print(f\"  Response: {str(result3)[:200]}...\")\n\n    # Query 4: Get metrics\n    print(\"\\n  Query 4: Fetching system metrics...\")\n    result4 = agent(\n        \"Get the system metrics for the last hour and identify if there are \"\n        \"any services with high CPU usage (>70%) or memory issues.\"\n    )\n    print(f\"  Response: {str(result4)[:200]}...\")\n\n    # Get metrics\n    metrics = hook_provider.get_savings_summary()\n\n    # Display results\n    print_box(\n        \"HeadroomHookProvider Results\",\n        [\n            f\"Tool calls processed:    {metrics['total_requests']}\",\n            f\"Compressions applied:    {metrics['compressed_requests']}\",\n            \"\",\n            f\"Tokens BEFORE compression: {metrics['total_tokens_before']:,}\",\n            f\"Tokens AFTER compression:  {metrics['total_tokens_after']:,}\",\n            f\"Tokens SAVED:              {metrics['total_tokens_saved']:,}\",\n            \"\",\n            f\"Average savings:           {metrics['average_savings_percent']:.1f}%\",\n        ],\n        style=\"success\",\n    )\n\n    # Show per-tool breakdown\n    if hook_provider.metrics_history:\n        tool_metrics = []\n        for m in hook_provider.metrics_history:\n            tool_metrics.append(\n                {\n                    \"tool\": m.tool_name[:20],\n                    \"before\": f\"{m.tokens_before:,}\",\n                    \"after\": f\"{m.tokens_after:,}\",\n                    \"saved\": f\"{m.tokens_saved:,}\",\n                    \"pct\": f\"{m.savings_percent:.1f}%\",\n                }\n            )\n\n        print_metrics_table(\n            tool_metrics,\n            headers=[\"Tool\", \"Before\", \"After\", \"Saved\", \"%\"],\n            keys=[\"tool\", \"before\", \"after\", \"saved\", \"pct\"],\n            title=\"Per-Tool Compression Breakdown\",\n        )\n\n    print_comparison(\n        metrics[\"total_tokens_before\"],\n        metrics[\"total_tokens_after\"],\n        \"Tool Output Tokens\",\n    )\n\n    return metrics\n",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Project source file, strands-agents",
      "display": "examples/strands_bedrock_demo.py",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Project full_name, strands-agents",
      "display": "headroomlabs-ai/headroom",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Project stargazers_count, strands-agents",
      "display": "80.2K",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Library name, pydantic-ai-slim",
      "display": "Pydantic AI Slim",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Monthly downloads, pydantic-ai-slim",
      "display": "36.8M",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "License, pydantic-ai-slim",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Package release, pydantic-ai-slim",
      "display": "2.69.0",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Package release date, pydantic-ai-slim",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Install, pydantic-ai-slim",
      "display": "python -m pip install \"pydantic-ai-slim[openai]\"",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Quickstart, pydantic-ai-slim",
      "display": "from pydantic_ai import Agent\nagent = Agent('openai:gpt-5.2')\nresult = agent.run_sync('What is the capital of France?')\nprint(result.output)\n",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Official description, pydantic-ai-slim",
      "display": "Provides the slim package of the Pydantic AI agent framework.",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Quickstart source file, pydantic-ai-slim",
      "display": "api/agent/ (generated official reference)",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Repository stars, pydantic-ai-slim",
      "display": "21.2K",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Python three ten installation, pydantic-ai-slim",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "MCP client tools, pydantic-ai-slim",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Python requirement, pydantic-ai-slim",
      "display": ">=3.11",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Agent programming model, pydantic-ai-slim",
      "display": "Typed Agent output, tools, and dependency injection",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Distribution role, pydantic-ai-slim",
      "display": "Implementation package; full pydantic-ai adds extras",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Project function, pydantic-ai-slim",
      "display": "@agent\ndef web_research_agent() -> Agent:\n    \"\"\"Pydantic AI Web Research Agent.\"\"\"\n\n    async def execute(state: AgentState) -> AgentState:\n        async with agent_bridge(state) as bridge:\n            agent = PydanticAgent(\n                _pydantic_bridge_model(),\n                capabilities=[WebSearch()],\n                system_prompt=\"You help users find information by searching the web.\",\n                output_type=AnswerToQueryOutput,\n                retries={\"output\": 3},\n            )\n\n            result = await agent.run(user_prompt(state.messages).text)\n\n            # capture the typed result as the completion (as the final\n            # assistant message includes on the `final_answer()` tool\n            # call that PydanticAI uses to report its answer\n            bridge.state.output.completion = result.output.model_dump_json()\n\n            return bridge.state\n\n    return execute",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Project source file, pydantic-ai-slim",
      "display": "examples/bridge/pydantic-ai/agent.py",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Project full_name, pydantic-ai-slim",
      "display": "UKGovernmentBEIS/inspect_ai",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Project stargazers_count, pydantic-ai-slim",
      "display": "3.3K",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Library name, openai-agents",
      "display": "OpenAI Agents SDK",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Monthly downloads, openai-agents",
      "display": "20.2M",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "License, openai-agents",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Package release, openai-agents",
      "display": "0.25.0",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Package release date, openai-agents",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Install, openai-agents",
      "display": "python -m pip install openai-agents",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Quickstart, openai-agents",
      "display": "from agents import Agent, Runner\nagent = Agent(name='Assistant', instructions='You are a helpful assistant')\nresult = Runner.run_sync(agent, 'Write a haiku about recursion in programming.')\nprint(result.final_output)\n",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Official description, openai-agents",
      "display": "Provides the OpenAI SDK for building agents.",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Quickstart source file, openai-agents",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Repository stars, openai-agents",
      "display": "30.8K",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Python three ten installation, openai-agents",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "MCP client tools, openai-agents",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Python requirement, openai-agents",
      "display": ">=3.10",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Agent programming model, openai-agents",
      "display": "Agent/Runner, handoffs, sessions, and tracing",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project function, openai-agents",
      "display": "@input_guardrail(name=\"Relevance Guardrail\")\nasync def relevance_guardrail(\n    context: RunContextWrapper[None], agent: Agent, input: str | list[TResponseInputItem]\n) -> GuardrailFunctionOutput:\n    \"\"\"Guardrail to check if input is relevant to airline topics.\"\"\"\n    result = await Runner.run(\n        guardrail_agent,\n        input,\n        context=context.context.state if hasattr(context.context, \"state\") else context.context,\n    )\n    final = result.final_output_as(RelevanceOutput)\n    return GuardrailFunctionOutput(output_info=final, tripwire_triggered=not final.is_relevant)\n",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project source file, openai-agents",
      "display": "python-backend/airline/guardrails.py",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Project full_name, openai-agents",
      "display": "openai/openai-cs-agents-demo",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Project stargazers_count, openai-agents",
      "display": "6.6K",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Library name, google-adk",
      "display": "google-adk",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Monthly downloads, google-adk",
      "display": "11.0M",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "License, google-adk",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Package release, google-adk",
      "display": "2.14.1",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Package release date, google-adk",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Install, google-adk",
      "display": "python -m pip install google-adk",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart, google-adk",
      "display": "import asyncio\nfrom google.adk import Agent\nfrom google.adk.runners import InMemoryRunner\nagent = Agent(name='greeting_agent', model='gemini-3.5-flash', instruction='Greet the user warmly.')\nrunner = InMemoryRunner(agent=agent)\nasyncio.run(runner.run_debug('Hello'))\n",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Official description, google-adk",
      "display": "Provides the Google Agent Development Kit.",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Quickstart source file, google-adk",
      "display": "src/google/adk/runners.py (public run_debug docstring); README.md",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Repository stars, google-adk",
      "display": "22.3K",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Python three ten installation, google-adk",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "MCP client tools, google-adk",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Python requirement, google-adk",
      "display": ">=3.11",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Agent programming model, google-adk",
      "display": "Reasoning/tool agents plus graph workflow runtime",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "First-run versus production execution, google-adk",
      "display": "run_debug handles first-run boilerplate; run_async exposes production control",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project function, google-adk",
      "display": "async def call_agent_async(query):\n    content = types.Content(role='user', parts=[types.Part(text=query)])\n    session, runner = await setup_session_and_runner()\n    events = runner.run_async(user_id=USER_ID, session_id=SESSION_ID, new_message=content)\n\n    async for event in events:\n        if event.is_final_response() and event.content and event.content.parts:\n            final_response = event.content.parts[0].text\n            print(\"Agent Response: \", final_response)",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project source file, google-adk",
      "display": "examples/python/snippets/tools/overview/customer_support_agent.py",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project full_name, google-adk",
      "display": "google/adk-docs",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project stargazers_count, google-adk",
      "display": "1.5K",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Library name, browser-use",
      "display": "Browser Use",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Monthly downloads, browser-use",
      "display": "7.3M",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "License, browser-use",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release, browser-use",
      "display": "1.0.6",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release date, browser-use",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Install, browser-use",
      "display": "python -m pip install browser-use==1.0.6",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Quickstart, browser-use",
      "display": "from browser_use import Agent\nresult = Agent('Find the number of stars of the browser-use repo').run_sync()\nprint(result.final_result())\n",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Official description, browser-use",
      "display": "Runs a browser agent on Pydantic AI against cloud or local Chrome.",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart source file, browser-use",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Repository stars, browser-use",
      "display": "121.5K",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Python three ten installation, browser-use",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "MCP client tools, browser-use",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Python requirement, browser-use",
      "display": "<4.0,>=3.11",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Agent programming model, browser-use",
      "display": "Browser-focused Agent using persistent Python REPL and CDP",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Migration boundary, browser-use",
      "display": "1.0 removes historical browser session/result/model surfaces",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Library name, dspy",
      "display": "DSPy",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Monthly downloads, dspy",
      "display": "5.9M",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "License, dspy",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Package release, dspy",
      "display": "3.5.0",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release date, dspy",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Install, dspy",
      "display": "python -m pip install dspy",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Quickstart, dspy",
      "display": "import dspy\ndspy.configure(lm=dspy.LM('openai/gpt-4.1-mini'))\nagent = dspy.ReAct('question -> answer', tools=[])\nresult = agent(question='What is the capital of France?')\nprint(result.answer)\n",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Official description, dspy",
      "display": "Programs language models with code rather than prompts.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart source file, dspy",
      "display": "docs/docs/learn/programming/mcp.md (LM setup); ReAct reference",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Repository stars, dspy",
      "display": "39.1K",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Python three ten installation, dspy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "MCP client tools, dspy",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Python requirement, dspy",
      "display": "<3.16,>=3.10",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Agent programming model, dspy",
      "display": "Declarative programs and native ReAct tool loop",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Optimization role, dspy",
      "display": "Prompt and weight optimization algorithms",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python AI agent libraries LangGraph CrewAI Pydantic AI smolagents code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
