@@ -19,7 +19,6 @@ eachModel('$modelName', ({ model }) => {
1919 task : async ( input : string ) => {
2020 const client = await initializeClient ( /* Pass necessary mocks/config */ )
2121 const { promptOutput, toolCalls } = await runTask ( client , model , input )
22-
2322 const toolCall = toolCalls . find (
2423 ( call ) => call . toolName === KV_NAMESPACE_TOOLS . kv_namespace_create
2524 )
@@ -41,7 +40,6 @@ eachModel('$modelName', ({ model }) => {
4140 task : async ( input : string ) => {
4241 const client = await initializeClient ( /* Pass necessary mocks/config */ )
4342 const { promptOutput, toolCalls } = await runTask ( client , model , input )
44-
4543 const toolCall = toolCalls . find (
4644 ( call ) => call . toolName === KV_NAMESPACE_TOOLS . kv_namespaces_list
4745 )
@@ -56,15 +54,13 @@ eachModel('$modelName', ({ model }) => {
5654 describeEval ( 'Rename Cloudflare KV Namespace' , {
5755 data : async ( ) => [
5856 {
59- input :
60- 'Rename my Cloudflare KV Namespace called "my-test-namespace" to "my-new-test-namespace".' ,
57+ input : 'Rename my Cloudflare KV Namespace with ID 1234 to "my-new-test-namespace".' ,
6158 expected : `The ${ KV_NAMESPACE_TOOLS . kv_namespace_update } tool should be called to rename the kv namespace.` ,
6259 } ,
6360 ] ,
6461 task : async ( input : string ) => {
6562 const client = await initializeClient ( /* Pass necessary mocks/config */ )
6663 const { promptOutput, toolCalls } = await runTask ( client , model , input )
67-
6864 const toolCall = toolCalls . find (
6965 ( call ) => call . toolName === KV_NAMESPACE_TOOLS . kv_namespace_update
7066 )
@@ -79,14 +75,13 @@ eachModel('$modelName', ({ model }) => {
7975 describeEval ( 'Get Cloudflare KV Namespace Details' , {
8076 data : async ( ) => [
8177 {
82- input : 'Get details of my Cloudflare KV Namespace called "my-new-test-namespace" .' ,
78+ input : 'Get details of my Cloudflare KV Namespace with ID 1234 .' ,
8379 expected : `The ${ KV_NAMESPACE_TOOLS . kv_namespace_get } tool should be called to retrieve the details of the kv namespace.` ,
8480 } ,
8581 ] ,
8682 task : async ( input : string ) => {
8783 const client = await initializeClient ( /* Pass necessary mocks/config */ )
8884 const { promptOutput, toolCalls } = await runTask ( client , model , input )
89-
9085 const toolCall = toolCalls . find (
9186 ( call ) => call . toolName === KV_NAMESPACE_TOOLS . kv_namespace_get
9287 )
@@ -101,14 +96,13 @@ eachModel('$modelName', ({ model }) => {
10196 describeEval ( 'Delete Cloudflare KV Namespace' , {
10297 data : async ( ) => [
10398 {
104- input : 'Look up the id of my only KV namespace and delete it .' ,
99+ input : 'Delete the kv namespace with ID 1234 .' ,
105100 expected : `The ${ KV_NAMESPACE_TOOLS . kv_namespace_delete } tool should be called to delete the kv namespace.` ,
106101 } ,
107102 ] ,
108103 task : async ( input : string ) => {
109104 const client = await initializeClient ( /* Pass necessary mocks/config */ )
110105 const { promptOutput, toolCalls } = await runTask ( client , model , input )
111-
112106 const toolCall = toolCalls . find (
113107 ( call ) => call . toolName === KV_NAMESPACE_TOOLS . kv_namespace_delete
114108 )
0 commit comments