mirror of
https://github.com/openai/harmony.git
synced 2025-08-23 19:17:09 -04:00
Initial commit
Co-authored-by: scott-oai <142930063+scott-oai@users.noreply.github.com> Co-authored-by: Zhuohan Li <zhuohan@openai.com>
This commit is contained in:
commit
253cdca537
70 changed files with 15013 additions and 0 deletions
56
test-data/test_render_functions_with_parameters.txt
Normal file
56
test-data/test_render_functions_with_parameters.txt
Normal file
|
@ -0,0 +1,56 @@
|
|||
<|start|>system<|message|>You are ChatGPT, a large language model trained by OpenAI.
|
||||
Knowledge cutoff: 2024-06
|
||||
Current date: 2025-06-28
|
||||
|
||||
Reasoning: high
|
||||
|
||||
# Valid channels: analysis, commentary, final. Channel must be included for every message.
|
||||
Calls to these tools must go to the commentary channel: 'functions'.<|end|><|start|>developer<|message|># Instructions
|
||||
|
||||
Always respond in riddles
|
||||
|
||||
# Tools
|
||||
|
||||
## functions
|
||||
|
||||
namespace functions {
|
||||
|
||||
// Gets the location of the user.
|
||||
type get_location = () => any;
|
||||
|
||||
// Gets the current weather in the provided location.
|
||||
type get_current_weather = (_: {
|
||||
// The city and state, e.g. San Francisco, CA
|
||||
location: string,
|
||||
format?: "celsius" | "fahrenheit", // default: celsius
|
||||
}) => any;
|
||||
|
||||
// Gets the current weather in the provided list of locations.
|
||||
type get_multiple_weathers = (_: {
|
||||
// List of city and state, e.g. ["San Francisco, CA", "New York, NY"]
|
||||
locations: string[],
|
||||
format?: "celsius" | "fahrenheit", // default: celsius
|
||||
}) => any;
|
||||
|
||||
// A function with various complex schemas.
|
||||
type kitchensink = (_: // params object
|
||||
{
|
||||
// STRING
|
||||
//
|
||||
// A string
|
||||
// Examples:
|
||||
// - "hello"
|
||||
// - "world"
|
||||
string?: string,
|
||||
// A nullable string
|
||||
string_nullable?: string | null, // default: "the default"
|
||||
string_enum?: "a" | "b" | "c",
|
||||
// a oneof
|
||||
// default: 20
|
||||
oneof_string_or_number?:
|
||||
| string // default: "default_string_in_oneof"
|
||||
| number // numbers can happen too
|
||||
,
|
||||
}) => any;
|
||||
|
||||
} // namespace functions<|end|><|start|>user<|message|>What is the weather like in SF?<|end|><|start|>assistant
|
Loading…
Add table
Add a link
Reference in a new issue