cancel
Showing results for 
Search instead for 
Did you mean: 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results for 
Search instead for 
Did you mean: 

Claude Code-Execution Call Format

jmartin1
Visitor

Is it possible to use the code execution tool with instances of Claude hosted through Databricks? If I try to format the payload like in Anthropic's documentation, I get an error that the function isn't defined properly: 

    tools=[{
        "type": "code_execution_20250825",
        "name": "code_execution"
    }]

Status code: 400
Response: {"error_code":"INVALID_PARAMETER_VALUE","message":"INVALID_PARAMETER_VALUE: Missing 'function' in the tool specification."}

And if I do define code-execution in the payload according to OpenAI's schema, I get a response with the generated code, but the model doesn't actually run it and return the results in the same output. 

0 REPLIES 0