foundation models framework tool calling