mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-03 03:12:15 +00:00
tool calls and responses end with <|emo|>
This commit is contained in:
parent
9334338928
commit
d86ee6f386
3 changed files with 32 additions and 21 deletions
|
|
@ -105,7 +105,7 @@
|
|||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant"
|
||||
"content": "You are a helpful assistant who can answer general questions or invoke tools when necessary. In addition to tool calls, you should also augement your responses by using the tool outputs."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
|
|
@ -133,7 +133,7 @@
|
|||
],
|
||||
"tool_responses": [
|
||||
{
|
||||
"response": "70 degrees and foggy"
|
||||
"response": "{'resposne': '70 degrees and foggy'}"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "NEVER invoke the same function with the same argumennts twice. Use the response of the first call instead."
|
||||
"content": "You are a helpful assistant who can answer general questions or invoke tools when necessary. In addition to tool calls, you should also augement your responses by using the tool outputs."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
|
|
@ -183,7 +183,7 @@
|
|||
],
|
||||
"tool_responses": [
|
||||
{
|
||||
"response": "70 degrees and foggy"
|
||||
"response": "{'resposne': '70 degrees and foggy'}"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
|
|
@ -207,11 +207,11 @@
|
|||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant with tools. NEVER invoke the same function with the same argumennts twice. Use the response of the first call instead."
|
||||
"content": "You are a helpful assistant who can answer general questions or invoke tools when necessary. In addition to tool calls, you should also augement your responses by using the tool outputs."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Please add a new product with name 'Widget', price 19.99, in stock, and tags ['new', 'sale']."
|
||||
"content": "Please add a new product with name 'Widget', price 19.99, in stock, and tags ['new', 'sale'] and give me the product id."
|
||||
}
|
||||
]
|
||||
],
|
||||
|
|
@ -241,7 +241,7 @@
|
|||
],
|
||||
"tool_responses": [
|
||||
{
|
||||
"response": "Successfully added product with id: 123"
|
||||
"response": "{'response': 'Successfully added product with id: 123'}"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
|
|
@ -271,7 +271,7 @@
|
|||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a peronal assistant with tools. Todays date is 2025-03-01."
|
||||
"content": "Todays date is 2025-03-01.\n\nYou are a helpful assistant who can answer general questions or invoke tools when necessary. In addition to tool calls, you should also augement your responses by using the tool outputs."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
|
|
@ -329,10 +329,10 @@
|
|||
],
|
||||
"tool_responses": [
|
||||
{
|
||||
"response": "No meetings found"
|
||||
"response": "{'response': 'No events found for 2025-03-03 at 10:00'}"
|
||||
},
|
||||
{
|
||||
"response": "Successfully created new event with id: e_123"
|
||||
"response": "{'response': 'Successfully created new event with id: e_123'}"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
|
|
@ -376,7 +376,7 @@
|
|||
[
|
||||
{
|
||||
"role": "system",
|
||||
"content": "You are a helpful assistant with tools. Todays date is 2025-03-01."
|
||||
"content": "Todays date is 2025-03-01.\n\nYou are a helpful assistant who can answer general questions or invoke tools when necessary. In addition to tool calls, you should also augement your responses by using the tool outputs."
|
||||
},
|
||||
{
|
||||
"role": "user",
|
||||
|
|
@ -386,7 +386,7 @@
|
|||
[
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Was is less than Feb of last year? Only answer with yes or no."
|
||||
"content": "Was it less than Feb of last year? Only answer with yes or no."
|
||||
}
|
||||
]
|
||||
],
|
||||
|
|
@ -396,11 +396,11 @@
|
|||
"description": "Get monthly expense summary",
|
||||
"parameters": {
|
||||
"month": {
|
||||
"param_type": "number",
|
||||
"param_type": "int",
|
||||
"description": "Month of the year (1-12)"
|
||||
},
|
||||
"year": {
|
||||
"param_type": "number",
|
||||
"param_type": "int",
|
||||
"description": "Year"
|
||||
}
|
||||
}
|
||||
|
|
@ -408,10 +408,10 @@
|
|||
],
|
||||
"tool_responses": [
|
||||
{
|
||||
"response": "Total expenses for January 2025: $1000"
|
||||
"response": "{'response': 'Total expenses for January 2025: $1000'}"
|
||||
},
|
||||
{
|
||||
"response": "Total expenses for February 2024: $2000"
|
||||
"response": "{'resposne': 'Total expenses for February 2024: $2000'}"
|
||||
}
|
||||
],
|
||||
"expected": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue