Category: ai
-
Build Day Took various iterations to have all fields populated and parsed for each column, even with latest model it took several asks and tries Ended up tossing out initial build and various database parsers and extractions, although it was a valuable learning exercise to build my own parser tools, stand-up web app, and work…
-
Taking Building with the Claude API. Notes from today Claude has a native Text Editor tool that lets it create, read, and edit both directories and files Only JSON schema is built into Claude – we have to write functions to use the tools It essential gives Claude the ability to act as a software…
-
Taking Building with the Claude API. Notes from today Claude hangs on to chunks to do validation steps to return proper JSON, eg. waiting for a closing quote on key-value pair and compare against JSON schema If this pause is not acceptable for use case, Fine Grained Tool Calling disables JSON validation step, but the…
-
Taking Building with the Claude API. Notes from today Create the tool function implementation Define the tool schema Add the schema to the tools list in run_conversation Add a case for the tool in run_tool Couch to 5K for AI If you’re stuck on technical problems, you can explain what you’re trying to do in…
-
Taking Building with the Claude API. Notes from today Send user message to Claude with available tools Claude responds with text and/or tool requests Execute all requested tools and create result blocks Send tool results back as a user message Repeat until Claude provides a final answer Couch to 5K for AI Teach AI to…
-
Taking Building with the Claude API. Notes from today Tool use may require multi-turn tool calls in order to answer. Handling this pattern is a conversation loop that continues until Claude stops request tools Process: Write a tool function -> Write a JSON Schema -> Call Claude with JSON Schema -> Run Tool -> Add…
-
Taking Building with the Claude API. Notes from today Tool Schema helps Claude understand how to call our tool functions After you run tool function, you send results black to Claude using a tool result block Why is Meta destroying its engineering organization? Turned its crown jewel engineering org and culture into a cost center…
-
(Travel Day) Opinion | Dear A.I. Companies: The Doom Trolling Needs to Stop – The New York Times “Like a cat leaving a dead bird at your doorstep, Anthropic catalogs the grim future that its products might produce, shrugs its shoulders and then returns to its furious efforts to make these warnings a reality.” “They…
-
Taking Building with the Claude API. Notes from today You can pass tools as a kw arg in client.messages.create() or use a ToolUseBlock() Couch to 5K for AI Day 3 You need to explicitly ask otherwise it will just give you generalized recommendations A frontier without an ecosystem is not stable | sn scratchpad “This…
-
Taking Building with the Claude API. Notes from today Example of importing datetime and creating datetime function as Tool Function You can use JSON schema to define tool use and validation. Best practice is to write 3-4 sentences on what hte tool does, when claude should use it, data it returns, and descriptions for each…