go-patterns
esc

Agentic លំនាំ

លំនាំសម្រាប់បង្កើតប្រព័ន្ធ AI agent ក្នុង Go: reasoning loops, tool dispatch, memory, retrieval និងការសម្របសម្រួលរវាង agents ច្រើន។

Agent Loop (ReAct)

មិនទាន់អាន

Drive an agent by alternating reasoning and acting steps inside a structured loop that terminates when the model signals a final answer.

មធ្យម

Tool Use

មិនទាន់អាន

Register typed tools by name so an agent can dispatch LLM-selected function calls to the right handler without embedding dispatch logic in the agent itself.

ទាប

Orchestrator-Subagent

មិនទាន់អាន

Decompose a complex task by having a root agent spawn and coordinate specialized subagents, each responsible for one concern, then aggregate their results.

ខ្ពស់

Memory

មិនទាន់អាន

Give an agent a pluggable memory store — short-term context buffer, episodic session history, and optional long-term semantic store — through one interface so the storage backend can be swapped.

មធ្យម

Retrieval-Augmented Generation

មិនទាន់អាន

Ground LLM responses in authoritative documents by retrieving relevant chunks before generation so the model can cite real data instead of hallucinating.

មធ្យម

Human-in-the-Loop

មិនទាន់អាន

Pause agent execution at defined checkpoints to request human approval or input, then resume with the human's decision injected back into the agent's context.

មធ្យម

Prompt Template

មិនទាន់អាន

Build prompts from versioned, parameterized templates so prompt logic stays separate from agent orchestration code and can be tested, diffed, and swapped independently.

ទាប

Multi-Agent Communication

មិនទាន់អាន

Enable agents to exchange typed messages through a shared message bus so they can collaborate without direct references to each other's implementations.

ខ្ពស់