LLM Learning Hub

workspace/llm-course/home

Actions

Actions are the concrete operations an agent performs in the environment — calling a tool, executing code, searching the web — based on the LLM's reasoning output.

What is Actions?

Actions are the concrete operations an agent performs in the environment — calling a tool, executing code, searching the web — based on the LLM's reasoning output.

Actions are the concrete operations an agent performs in the environment — calling a tool, executing code, searching the web — based on the LLM's reasoning output.

Where is it used?

LangGraph `ToolNode`, CrewAI tasks, and Claude computer-use actions (click, type) are all agent actions; the action space is defined by the set of registered tools.

How to build it

Map each `tool_call.function.name` to a Python callable in a dict, execute it inside the agent loop, and append the stringified result as an `Observation` message for the next reasoning step.