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 argument
def get_current_datetime(date_format="%Y-%m-%d %H:%M:%S"): if not date_format: raise ValueError("date_format cannot be empty") return datetime.now().strftime(date_format)get_current_datetime_schema = { "name": "get_current_datetime", "description": "Returns the current date and time formatted according to the specified format", "input_schema": { "type": "object", "properties": { "date_format": { "type": "string", "description": "A string specifying the format of the returned datetime. Uses Python's strftime format codes.", "default": "%Y-%m-%d %H:%M:%S" } }, "required": [] }}
- Basically what will be attempted to be applied with AI is Moore’s law on all industries
- Warnings about concentration of power in companies that people did not elect
- Organizational leadership and AI factory buildouts requiring breaking silos and a focus on privacy and security – human leadership problems vs technology problems
- More details means more quantitative feedback
Leave a Reply