otomato-sdk 2.0.315 → 2.0.316
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7398,6 +7398,49 @@ export const ACTIONS = {
|
|
|
7398
7398
|
],
|
|
7399
7399
|
"blockId": 100042,
|
|
7400
7400
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/AI.webp"
|
|
7401
|
+
},
|
|
7402
|
+
"AI_TEXT": {
|
|
7403
|
+
"name": "AI Text",
|
|
7404
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `${env.parameters.prompt}`\n );\n }",
|
|
7405
|
+
"type": 6,
|
|
7406
|
+
"description": "Use AI to generate text based on a prompt and context",
|
|
7407
|
+
"output": {
|
|
7408
|
+
"result": "string"
|
|
7409
|
+
},
|
|
7410
|
+
"parameters": [
|
|
7411
|
+
{
|
|
7412
|
+
"key": "prompt",
|
|
7413
|
+
"type": "paragraph",
|
|
7414
|
+
"description": "Instructions for what text to generate",
|
|
7415
|
+
"mandatory": true,
|
|
7416
|
+
"category": 0
|
|
7417
|
+
},
|
|
7418
|
+
{
|
|
7419
|
+
"key": "context",
|
|
7420
|
+
"type": "paragraph",
|
|
7421
|
+
"description": "The context to base the text generation on",
|
|
7422
|
+
"mandatory": true,
|
|
7423
|
+
"category": 0
|
|
7424
|
+
},
|
|
7425
|
+
],
|
|
7426
|
+
"examples": [
|
|
7427
|
+
{
|
|
7428
|
+
"name": "Top 3 Supply Yield Summary",
|
|
7429
|
+
"description": "Generate a summary of the top 3 supply rates",
|
|
7430
|
+
"parameters": [
|
|
7431
|
+
{
|
|
7432
|
+
"key": "prompt",
|
|
7433
|
+
"value": "Return a summary with the 3 best current supply rates"
|
|
7434
|
+
},
|
|
7435
|
+
{
|
|
7436
|
+
"key": "context",
|
|
7437
|
+
"value": "IONIC USDC yield (base): {{external.functions.ionicLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | AAVE USDC yield (base): {{external.functions.aaveLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | Compound USDC yield (base): {{external.functions.compoundLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0)}}% | Ironclad USDC yield (base): {{external.functions.ironcladLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | Moonwell USDC yield (base): {{external.functions.moonwellLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}%"
|
|
7438
|
+
}
|
|
7439
|
+
]
|
|
7440
|
+
}
|
|
7441
|
+
],
|
|
7442
|
+
"blockId": 100039,
|
|
7443
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/AI.webp"
|
|
7401
7444
|
}
|
|
7402
7445
|
}
|
|
7403
7446
|
},
|
|
@@ -10689,6 +10732,49 @@ export const ACTIONS = {
|
|
|
10689
10732
|
],
|
|
10690
10733
|
"blockId": 100042,
|
|
10691
10734
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/AI.webp"
|
|
10735
|
+
},
|
|
10736
|
+
"AI_TEXT": {
|
|
10737
|
+
"name": "AI Text",
|
|
10738
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `${env.parameters.prompt}`\n );\n }",
|
|
10739
|
+
"type": 6,
|
|
10740
|
+
"description": "Use AI to generate text based on a prompt and context",
|
|
10741
|
+
"output": {
|
|
10742
|
+
"result": "string"
|
|
10743
|
+
},
|
|
10744
|
+
"parameters": [
|
|
10745
|
+
{
|
|
10746
|
+
"key": "prompt",
|
|
10747
|
+
"type": "paragraph",
|
|
10748
|
+
"description": "Instructions for what text to generate",
|
|
10749
|
+
"mandatory": true,
|
|
10750
|
+
"category": 0
|
|
10751
|
+
},
|
|
10752
|
+
{
|
|
10753
|
+
"key": "context",
|
|
10754
|
+
"type": "paragraph",
|
|
10755
|
+
"description": "The context to base the text generation on",
|
|
10756
|
+
"mandatory": true,
|
|
10757
|
+
"category": 0
|
|
10758
|
+
},
|
|
10759
|
+
],
|
|
10760
|
+
"examples": [
|
|
10761
|
+
{
|
|
10762
|
+
"name": "Top 3 Supply Yield Summary",
|
|
10763
|
+
"description": "Generate a summary of the top 3 supply rates",
|
|
10764
|
+
"parameters": [
|
|
10765
|
+
{
|
|
10766
|
+
"key": "prompt",
|
|
10767
|
+
"value": "Return a summary with the 3 best current supply rates"
|
|
10768
|
+
},
|
|
10769
|
+
{
|
|
10770
|
+
"key": "context",
|
|
10771
|
+
"value": "IONIC USDC yield (base): {{external.functions.ionicLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | AAVE USDC yield (base): {{external.functions.aaveLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | Compound USDC yield (base): {{external.functions.compoundLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913,0)}}% | Ironclad USDC yield (base): {{external.functions.ironcladLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}% | Moonwell USDC yield (base): {{external.functions.moonwellLendingRate(8453,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913)}}%"
|
|
10772
|
+
}
|
|
10773
|
+
]
|
|
10774
|
+
}
|
|
10775
|
+
],
|
|
10776
|
+
"blockId": 100039,
|
|
10777
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/AI.webp"
|
|
10692
10778
|
}
|
|
10693
10779
|
}
|
|
10694
10780
|
},
|
|
@@ -2862,6 +2862,26 @@ export declare const ACTIONS: {
|
|
|
2862
2862
|
blockId: number;
|
|
2863
2863
|
image: string;
|
|
2864
2864
|
};
|
|
2865
|
+
AI_TEXT: {
|
|
2866
|
+
name: string;
|
|
2867
|
+
dynamicName: string;
|
|
2868
|
+
type: number;
|
|
2869
|
+
description: string;
|
|
2870
|
+
output: {
|
|
2871
|
+
result: string;
|
|
2872
|
+
};
|
|
2873
|
+
parameters: Parameter[];
|
|
2874
|
+
examples: {
|
|
2875
|
+
name: string;
|
|
2876
|
+
description: string;
|
|
2877
|
+
parameters: {
|
|
2878
|
+
key: string;
|
|
2879
|
+
value: string;
|
|
2880
|
+
}[];
|
|
2881
|
+
}[];
|
|
2882
|
+
blockId: number;
|
|
2883
|
+
image: string;
|
|
2884
|
+
};
|
|
2865
2885
|
};
|
|
2866
2886
|
};
|
|
2867
2887
|
CORE: {
|
|
@@ -4277,6 +4297,26 @@ export declare const ACTIONS: {
|
|
|
4277
4297
|
blockId: number;
|
|
4278
4298
|
image: string;
|
|
4279
4299
|
};
|
|
4300
|
+
AI_TEXT: {
|
|
4301
|
+
name: string;
|
|
4302
|
+
dynamicName: string;
|
|
4303
|
+
type: number;
|
|
4304
|
+
description: string;
|
|
4305
|
+
output: {
|
|
4306
|
+
result: string;
|
|
4307
|
+
};
|
|
4308
|
+
parameters: Parameter[];
|
|
4309
|
+
examples: {
|
|
4310
|
+
name: string;
|
|
4311
|
+
description: string;
|
|
4312
|
+
parameters: {
|
|
4313
|
+
key: string;
|
|
4314
|
+
value: string;
|
|
4315
|
+
}[];
|
|
4316
|
+
}[];
|
|
4317
|
+
blockId: number;
|
|
4318
|
+
image: string;
|
|
4319
|
+
};
|
|
4280
4320
|
};
|
|
4281
4321
|
};
|
|
4282
4322
|
OTHERS: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.316";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|