liveBook · Manning

AI agent

As explained in Build Python Web Apps with Streamlit

An AI agent is a software system that uses artificial intelligence to interpret context, choose actions, and carry out tasks toward a goal.

An AI agent is an application that reasons about a user’s situation, chooses actions, uses external systems, and responds after completing the necessary steps. Unlike an informational chatbot, it can retrieve personalized data or change real-world state. section 10.6 section 10.6.1

A practical agent combines several capabilities:

Order-status request

For “What’s the status of my order?”, a ReAct-style agent reasons that it needs order details, calls the order-management system, interprets the shipment result, and responds with tracking information and an estimated delivery date. section 10.6.2

Figure 10.19 The ReAct framework

The ReAct diagram helps visualize the repeating sequence of reasoning, action, result interpretation, and response. section 10.6.2

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains reasoning and tool orchestration through ReAct and implements them with LangGraph nodes, conditional edges, and tool calls.
Examples
Demonstrates order tracking, order cancellation, tool calls, and a graph containing assistant and tools nodes.
What it assumes
Builds on informational chatbots, retrieved knowledge, language models, and documented functions exposed as tools.
What you can do after
Build it from scratch as a LangGraph support agent that calls tools and handles tracking or cancellation requests.
How it connects
Connects AI agents with chatbots, retrieval-augmented generation, tool use, APIs, databases, workflows, LangGraph, and ReAct.

Also explained in

Compare how 33 books explain AI agent →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.