You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Returns all entities of type {entity}. Use this tool with"
351
-
+f' entity = "{entity}" and'
352
-
+' operation = "LIST_ENTITIES" only. Dont ask these values'
353
-
" from"
354
-
+' user. Always use ""'
355
-
+' as filter clause and ""'
356
-
+" as page token and 50 as page size until user specifies a"
357
-
" different value otherwise. Use single quotes for strings in"
358
-
f" filter clause. {tool_instructions}"
350
+
f"""Returns the list of {entity} data. If the page token was available in the response, let users know there are more records available. Ask if the user wants to fetch the next page of results. When passing filter use the
351
+
following format: `field_name1='value1' AND field_name2='value2'
352
+
`. {tool_instructions}"""
359
353
),
354
+
"x-operation": "LIST_ENTITIES",
355
+
"x-entity": f"{entity}",
360
356
"operationId": f"{tool_name}_list_{entity}",
361
357
"requestBody": {
362
358
"content": {
@@ -401,14 +397,11 @@ def get_operation(
401
397
"post": {
402
398
"summary": f"Get {entity}",
403
399
"description": (
404
-
(
405
-
f"Returns the details of the {entity}. Use this tool with"
406
-
f' entity = "{entity}" and'
407
-
)
408
-
+' operation = "GET_ENTITY" only. Dont ask these values from'
409
-
f" user. {tool_instructions}"
400
+
f"Returns the details of the {entity}. {tool_instructions}"
410
401
),
411
402
"operationId": f"{tool_name}_get_{entity}",
403
+
"x-operation": "GET_ENTITY",
404
+
"x-entity": f"{entity}",
412
405
"requestBody": {
413
406
"content": {
414
407
"application/json": {
@@ -445,17 +438,10 @@ def create_operation(
445
438
) ->Dict[str, Any]:
446
439
return {
447
440
"post": {
448
-
"summary": f"Create {entity}",
449
-
"description": (
450
-
(
451
-
f"Creates a new entity of type {entity}. Use this tool with"
452
-
f' entity = "{entity}" and'
453
-
)
454
-
+' operation = "CREATE_ENTITY" only. Dont ask these values'
455
-
" from"
456
-
+" user. Follow the schema of the entity provided in the"
457
-
f" instructions to create {entity}. {tool_instructions}"
458
-
),
441
+
"summary": f"Creates a new {entity}",
442
+
"description": f"Creates a new {entity}. {tool_instructions}",
443
+
"x-operation": "CREATE_ENTITY",
444
+
"x-entity": f"{entity}",
459
445
"operationId": f"{tool_name}_create_{entity}",
460
446
"requestBody": {
461
447
"content": {
@@ -491,18 +477,10 @@ def update_operation(
491
477
) ->Dict[str, Any]:
492
478
return {
493
479
"post": {
494
-
"summary": f"Update {entity}",
495
-
"description": (
496
-
(
497
-
f"Updates an entity of type {entity}. Use this tool with"
498
-
f' entity = "{entity}" and'
499
-
)
500
-
+' operation = "UPDATE_ENTITY" only. Dont ask these values'
501
-
" from"
502
-
+" user. Use entityId to uniquely identify the entity to"
503
-
" update. Follow the schema of the entity provided in the"
504
-
f" instructions to update {entity}. {tool_instructions}"
505
-
),
480
+
"summary": f"Updates the {entity}",
481
+
"description": f"Updates the {entity}. {tool_instructions}",
482
+
"x-operation": "UPDATE_ENTITY",
483
+
"x-entity": f"{entity}",
506
484
"operationId": f"{tool_name}_update_{entity}",
507
485
"requestBody": {
508
486
"content": {
@@ -538,16 +516,10 @@ def delete_operation(
538
516
) ->Dict[str, Any]:
539
517
return {
540
518
"post": {
541
-
"summary": f"Delete {entity}",
542
-
"description": (
543
-
(
544
-
f"Deletes an entity of type {entity}. Use this tool with"
545
-
f' entity = "{entity}" and'
546
-
)
547
-
+' operation = "DELETE_ENTITY" only. Dont ask these values'
548
-
" from"
549
-
f" user. {tool_instructions}"
550
-
),
519
+
"summary": f"Delete the {entity}",
520
+
"description": f"Deletes the {entity}. {tool_instructions}",
0 commit comments