Lab build

Agent with custom tools, evaluation and reflection

Agent built around custom tools and a thought-action-observation prompt, then evaluated and hardened.

Role
Builder, end to end
Group
Agents and MCP
Services
AI & LLM systems

What it does

Custom tools and an agent prompt implement the thought, action, observation and response loop, alongside CrewAI and LangGraph versions of multi-step workflows. Agents are evaluated on tool selection, response quality and their backstories, task definitions and rules, and plan-and-execute and reflection patterns are added to handle failures.

What was built

  1. 01

    Custom tools are written and described to the model for selection.

  2. 02

    Agent prompt drives a thought, action, observation and response loop.

  3. 03

    Evaluation checks tool selection, answer quality and agent backstories, tasks and rules.

  4. 04

    Plan-and-execute and reflection agents are built to address failure cases.

The pipeline, layer by layer

Four layers, one pipeline.

  1. L1Prompt

    • Agent prompt
  2. L2Loop

    • Thought-action-observation loop
  3. L3Tools

    • Custom tools
  4. L4Quality

    • Agent evaluation
    • Plan-and-execute
    • Reflection

Stack

  • Python
  • CrewAI
  • LangGraph
  • Custom tools
  • LLM APIs

Next lab build · 43 / 46

Dialogue summariser (Pegasus on SAMSum)

Fine-tunes Pegasus on SAMSum dialogues and serves summaries through FastAPI train and predict routes.

Previous: Flowise MCP tool agent

Need a system like this in production? Tell us about it.