fix: Add fictional liquids to get_boiling_point

gpt-4o needs a hint to use get_boiling_point for fictional
liquids.

Signed-off-by: Derek Higgins <derekh@redhat.com>
This commit is contained in:
Derek Higgins 2025-05-14 12:14:37 +01:00
parent 3c9a10d2fe
commit 643c0bb747

View file

@ -22,7 +22,7 @@ from llama_stack.apis.agents.agents import (
def get_boiling_point(liquid_name: str, celcius: bool = True) -> int:
"""
Returns the boiling point of a liquid in Celcius or Fahrenheit.
Returns the boiling point of a liquid in Celcius or Fahrenheit (even fictional liquids).
:param liquid_name: The name of the liquid
:param celcius: Whether to return the boiling point in Celcius
@ -39,7 +39,7 @@ def get_boiling_point(liquid_name: str, celcius: bool = True) -> int:
def get_boiling_point_with_metadata(liquid_name: str, celcius: bool = True) -> dict[str, Any]:
"""
Returns the boiling point of a liquid in Celcius or Fahrenheit
Returns the boiling point of a liquid in Celcius or Fahrenheit (even fictional liquids).
:param liquid_name: The name of the liquid
:param celcius: Whether to return the boiling point in Celcius