Home > Videos

๐Ÿค–๐Ÿ”—โฌ†๏ธโœ… 12-Factor Agents: Patterns of reliable LLM applicationsย โ€”ย Dex Horthy, HumanLayer

๐Ÿ“๐Ÿ’ Human Notes

  • ๐Ÿค Focused prompt โ†’ โœ… quality response
  • ๐Ÿค– Strength: ๐Ÿ—ฃ๏ธ natural language โ†’ โš™๏ธ JSON
  • ๐ŸŒ Context Engineering is everything
    • โœ๏ธ Prompt
    • ๐Ÿง  Memory
    • ๐Ÿ“š RAG
    • โณ History
    • ๐Ÿงฑ Structured Output
  • ๐ŸŽฏ Prefer small, focused agents
  • โžก๏ธ Agents should be stateless

๐Ÿค– AI Summary

The video discusses several challenges and issues related to building reliable AI agents ๐Ÿค– and LLM applications, drawing parallels to traditional software engineering principles.

  • โš ๏ธ Difficulty in achieving high quality with agents [00:45]: Itโ€™s challenging to get agents beyond 70-80% functionality ๐Ÿ“ˆ, often requiring deep dives ๐Ÿคฟ into call stacks and prompt engineering.
  • โš™๏ธ Over-engineering with agents [01:00]: Not every problem requires an agent ๐Ÿค–; some can be solved with simpler scripts ๐Ÿ“.
  • ๐ŸŽญ Lack of โ€œagenticโ€ behavior in production agents [01:54]: Many production agents function more like traditional software ๐Ÿ’ป than truly โ€œagenticโ€ systems.
  • โณ Challenges with long context windows [02:27]: The reliability and quality of results ๐Ÿ“‰ decrease significantly with longer LLM context windows.
  • โš ๏ธ Tool use being โ€œharmfulโ€ (in a specific context) [04:26]: The abstraction of โ€œtool useโ€ as a magical interaction โœจ makes it harder; it should be viewed as an LLM outputting JSON ๐Ÿ’ป processed by deterministic code.
  • ๐Ÿ” Naive agent loop limitations [06:21]: Simple agent loops donโ€™t work well for longer workflows ๐Ÿ“‰ due to context window issues.
  • ๐Ÿ› Blindly adding errors to context [10:54]: Adding full error messages โš ๏ธ or stack traces to the context can cause the agent to spin out or get stuck.
  • ๐Ÿค” Avoiding the choice between tool call and human message [12:25]: Builders often avoid deciding whether an agentโ€™s output should be a tool call or a message ๐Ÿ’ฌ to a human, leading to less effective interactions.
  • ๐Ÿ–ฑ๏ธ Users needing to open multiple tabs for agents [12:13]: The current user experience often requires interacting with different agents across various tabs ๐Ÿ“‘, highlighting a need for agents to be accessible through common communication channels ๐Ÿ’ฌ.
  • ๐Ÿ—๏ธ Frameworks abstracting away hard AI parts [15:48]: Current frameworks often hide complex AI aspects of agent building ๐Ÿงฑ, when they should instead handle other hard parts, allowing developers to focus on critical AI elements.

๐Ÿ“š Book Recommendations

๐Ÿฆ Tweet