## Update `agents.functions.update(strpath_function_uuid, FunctionUpdateParams**kwargs) -> FunctionUpdateResponse` **put** `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}` To update the function route, send a PUT request to `/v2/gen-ai/agents/{agent_uuid}/functions/{function_uuid}`. ### Parameters - **agent\_uuid:** `str` - **function\_uuid:** `str` - **agent\_uuid:** `str` - **description:** `str` Funciton description - **faas\_name:** `str` The name of the function in the DigitalOcean functions platform - **faas\_namespace:** `str` The namespace of the function in the DigitalOcean functions platform - **function\_name:** `str` Function name - **function\_uuid:** `str` - **input\_schema:** `object` Describe the input schema for the function so the agent may call it - **output\_schema:** `object` Describe the output schema for the function so the agent handle its response ### Returns - `class FunctionUpdateResponse` The updated agent - **agent:** `Optional[APIAgent]` An Agent ### Example ```python from do_gradientai import GradientAI client = GradientAI() function = client.agents.functions.update( path_function_uuid="\"123e4567-e89b-12d3-a456-426614174000\"", path_agent_uuid="\"123e4567-e89b-12d3-a456-426614174000\"", ) print(function.agent) ```