Use tool calling and MCP servers with LLMs
Enable LLMs to call functions and tools, then execute the results automatically.
Create lookup functions that query tables by key—for customer records, product catalogs, or financial data.
Agents · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
Use pxt.retrieval_udf(table) to automatically create a function that queries the table by its columns.
pip install pixeltable
pxt.create_table()pxt.retrieval_udf()insert()add_computed_column()# Add a computed column that enriches orders with product detailsorders.add_computed_column(product_info=get_product(sku=orders.product_sku))# View enriched ordersorders.select(orders.order_id,orders.product_sku,orders.quantity,orders.product_info,).collect()
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Enable LLMs to call functions and tools, then execute the results automatically.
Build the six architectural patterns of agentic AI (prompt chaining, routing, parallelization, tool use, evaluator-optimizer, orchestrator-worker) and the ReAct and planning strategies as Pixeltable tables and computed columns.
Create a retrieval-augmented generation system that answers questions using your documents as context.
Score model output with a second model, as a chain of computed columns