21 min read11 hours ago

In our previous guide, we treated every tool as a typed morphism with a contract — essentially, each tool was like a function with a clear input and output type, and a “contract” (or specification) about what it does. This structured view helps a GPT-4 based AI agent know exactly how to use a tool correctly. Now it’s time to take the next step: how do we combine these tool-functions to solve more complex tasks? In this tutorial, we’ll explore how to compose tools both sequentially and in parallel, using the GPT-4 (0613) function-calling API. We’ll introduce the idea of a monoidal structure for tool usage — which is a fancy way of saying we can combine …

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help