BaşlayınÜcretsiz Başlayın

Creating an agent

Bu egzersiz

Building Agentic Workflows with LlamaIndex

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

Follow the steps to wrap your LLM inside an AgentWorkflow that can decide, on-the-fly, whether it knows the answer or should trigger a web search tool.

  • Define the search_web() tool as an async function.
  • Instantiate a single-agent workflow that uses the function to search the web.
  • Run the workflow with a user message, and save the returned text to the response.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Uygulamalı interaktif egzersiz

İnteraktif egzersizlerimizden biriyle teoriyi pratiğe dökün

Egzersizi başlat