mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
Nullable param type is not supported, e.g. ['string', 'null'], since it fails type validation. Tests: Run inference with messages: - content: You are a helpful assistant that can use tools to get information. role: system - content: What's the temperature in San Francisco in celsius? role: user tools: - function: description: Get current temperature for a given location. name: get_weather parameters: additionalProperties: false properties: location: description: "City and country e.g. Bogot\xE1, Colombia" type: string unit: description: "Unit of temperature, default to celsius" type: [string, "null"] # <= nullable type required: - location type: object type: function Co-authored-by: Eric Huang <erichuang@fb.com> |
||
---|---|---|
.. | ||
apis | ||
cli | ||
distribution | ||
models | ||
providers | ||
strong_typing | ||
templates | ||
__init__.py | ||
env.py | ||
log.py | ||
schema_utils.py |