Banana Community

James Duong
James Duong

Posted on

AI Agents 101: Tu dong hoa cong viec voi LangChain

## AI Agents la gi?

Agent = LLM + Tools + Memory

## Setup Agent

```python from langchain.agents import initialize_agent agent = initialize_agent(tools, llm, agent="react") ```

## ReAct Pattern

1. Thought: Suy nghi 2. Action: Chon tool 3. Observation: Xem ket qua 4. Repeat

## Custom Tool

```python @tool def search(query): return results ```

## Ket luan

Agents la tuong lai cua automation!

Top comments (0)