Skip to main content

Dev

DeepAgents: Testing a journal club agent

·1678 words·8 mins· loading · loading
I document my first trial run of a non-trivial agent with a multi-step task. The aim of the project is to develop an AI agent to assist in preparing for an academic journal club. In this initial run, I explore the DeepAgents library’s capabilities by making a simple request to download a journal article and convert it to Markdown format.

DeepAgents: Getting Started

·1124 words·6 mins· loading · loading
This is the beginning of what I hope will be a series of posts about using the DeepAgents library to build powerful AI agents. This posts describes how to get started running a simple research agent locally on a MacBook.

Using a progress bar while multiprocessing in Python

·660 words·4 mins· loading · loading
Spreading out computation is made simple in Python with the built-in multiprocessing module. Yet, it is not immediately obvious how to effectively portray the completion status in a progress bar. In this brief tutorial, I demonstrate how to easily and accurately display the progress of a multiprocessing pool.

Caution when using Python's `Final` type hint on mutable objects.

·689 words·4 mins· loading · loading
In the course of my work, I stumbled across a misconception I had about the Final type annotation. I perceived it to mean that the annotated object should not be mutated. In this post, I demonstrate how this is an incorrect understanding of the Final type hint and a better solution to get help from the type checker in these situations.