@agentxin-ai/plugin-gemini 0.0.2

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.
Files changed (52) hide show
  1. package/README.md +59 -0
  2. package/dist/_assets/icon_l_en.svg +15 -0
  3. package/dist/_assets/icon_s_en.svg +11 -0
  4. package/dist/gemini.yaml +47 -0
  5. package/dist/llm/_position.yaml +12 -0
  6. package/dist/llm/gemini-1.5-flash-001.yaml +42 -0
  7. package/dist/llm/gemini-1.5-flash-002.yaml +42 -0
  8. package/dist/llm/gemini-1.5-flash-8b-exp-0827.yaml +42 -0
  9. package/dist/llm/gemini-1.5-flash-8b-exp-0924.yaml +42 -0
  10. package/dist/llm/gemini-1.5-flash-exp-0827.yaml +42 -0
  11. package/dist/llm/gemini-1.5-flash-latest.yaml +45 -0
  12. package/dist/llm/gemini-1.5-flash.yaml +45 -0
  13. package/dist/llm/gemini-1.5-pro-001.yaml +42 -0
  14. package/dist/llm/gemini-1.5-pro-002.yaml +42 -0
  15. package/dist/llm/gemini-1.5-pro-exp-0801.yaml +42 -0
  16. package/dist/llm/gemini-1.5-pro-exp-0827.yaml +42 -0
  17. package/dist/llm/gemini-1.5-pro-latest.yaml +45 -0
  18. package/dist/llm/gemini-1.5-pro.yaml +45 -0
  19. package/dist/llm/gemini-2.0-flash-001.yaml +44 -0
  20. package/dist/llm/gemini-2.0-flash-exp.yaml +44 -0
  21. package/dist/llm/gemini-2.0-flash-lite-001.yaml +41 -0
  22. package/dist/llm/gemini-2.0-flash-lite-preview-02-05.yaml +42 -0
  23. package/dist/llm/gemini-2.0-flash-lite-preview.yaml +42 -0
  24. package/dist/llm/gemini-2.0-flash-lite.yaml +44 -0
  25. package/dist/llm/gemini-2.0-flash-preview-image-generation.yaml +42 -0
  26. package/dist/llm/gemini-2.0-flash-thinking-exp-01-21.yaml +43 -0
  27. package/dist/llm/gemini-2.0-flash-thinking-exp-1219.yaml +43 -0
  28. package/dist/llm/gemini-2.0-flash.yaml +82 -0
  29. package/dist/llm/gemini-2.0-pro-exp-02-05.yaml +45 -0
  30. package/dist/llm/gemini-2.0-pro-exp.yaml +45 -0
  31. package/dist/llm/gemini-2.5-flash-image.yaml +64 -0
  32. package/dist/llm/gemini-2.5-flash-lite-preview-06-17.yaml +92 -0
  33. package/dist/llm/gemini-2.5-flash-lite.yaml +115 -0
  34. package/dist/llm/gemini-2.5-flash-preview-04-17.yaml +91 -0
  35. package/dist/llm/gemini-2.5-flash-preview-05-20.yaml +92 -0
  36. package/dist/llm/gemini-2.5-flash.yaml +115 -0
  37. package/dist/llm/gemini-2.5-pro-exp-03-25.yaml +81 -0
  38. package/dist/llm/gemini-2.5-pro-preview-03-25.yaml +81 -0
  39. package/dist/llm/gemini-2.5-pro-preview-05-06.yaml +82 -0
  40. package/dist/llm/gemini-2.5-pro-preview-06-05.yaml +82 -0
  41. package/dist/llm/gemini-2.5-pro.yaml +105 -0
  42. package/dist/llm/gemini-3-pro-image-preview.yaml +104 -0
  43. package/dist/llm/gemini-3-pro-preview.yaml +142 -0
  44. package/dist/llm/gemini-exp-1114.yaml +42 -0
  45. package/dist/llm/gemini-exp-1121.yaml +42 -0
  46. package/dist/llm/gemini-exp-1206.yaml +42 -0
  47. package/dist/llm/gemini-flash-latest.yaml +115 -0
  48. package/dist/llm/gemini-flash-lite-latest.yaml +115 -0
  49. package/dist/llm/gemini-pro-vision.yaml +35 -0
  50. package/dist/llm/gemini-pro.yaml +39 -0
  51. package/dist/llm/learnlm-1.5-pro-experimental.yaml +42 -0
  52. package/package.json +50 -0
@@ -0,0 +1,115 @@
1
+ # https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-preview
2
+ model: gemini-flash-latest
3
+ label:
4
+ en_US: Gemini Flash Latest
5
+ model_type: llm
6
+ features:
7
+ - tool-call
8
+ - multi-tool-call
9
+ - agent-thought
10
+ - vision
11
+ - stream-tool-call
12
+ - document
13
+ - video
14
+ - audio
15
+ model_properties:
16
+ mode: chat
17
+ context_size: 1048576
18
+ parameter_rules:
19
+ - name: temperature
20
+ use_template: temperature
21
+ default: 1
22
+ min: 0
23
+ max: 2
24
+ - name: top_p
25
+ use_template: top_p
26
+ - name: top_k
27
+ label:
28
+ zh_Hans: 取样数量
29
+ en_US: Top k
30
+ type: int
31
+ help:
32
+ zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
33
+ en_US: Only sample from the top K options for each subsequent token.
34
+ required: false
35
+ - name: max_output_tokens
36
+ use_template: max_tokens
37
+ default: 65536
38
+ min: 1
39
+ max: 65536
40
+ - name: include_thoughts
41
+ type: boolean
42
+ required: false
43
+ default: false
44
+ label:
45
+ en_US: Include thoughts
46
+ zh_Hans: 返回思考过程
47
+ help:
48
+ en_US: Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.
49
+ zh_Hans: 是否返回思考过程。若为 true 则只有模型支持思考且启动思考模式时才返回思考过程。
50
+ - name: thinking_mode
51
+ type: boolean
52
+ required: true
53
+ default: true
54
+ label:
55
+ en_US: Thinking mode
56
+ zh_Hans: 思考模式
57
+ help:
58
+ en_US: Whether to enable thinking mode. If true and thinking_budget is not set, turn on dynamic thinking.
59
+ zh_Hans: 是否开启思考模式。若为 true 且 thinking_budget 未设置,则开启动态预算推理。
60
+ - name: thinking_budget
61
+ type: int
62
+ required: false
63
+ default: 8000
64
+ min: 0
65
+ max: 24576
66
+ label:
67
+ en_US: Set thinking budget
68
+ zh_Hans: 思考预算
69
+ help:
70
+ en_US: Indicates the thinking budget in tokens. This value is valid only when thinking mode is enabled. The default values and allowed ranges are model dependent. When enabling the thinking mode, if the thinking budget is not set, the default is to enable dynamic budget reasoning.
71
+ zh_Hans: 大模型的思考预算。仅在思考模式启动时该值有效。默认值和允许范围取决于模型。开启思考模式时,若未设置思考预算,则默认开启动态预算推理。
72
+ - name: grounding
73
+ type: boolean
74
+ required: true
75
+ default: false
76
+ label:
77
+ en_US: Grounding
78
+ zh_Hans: 事实核查
79
+ ja_JP: 事実チェック
80
+ help:
81
+ en_US: Grounding with Google Search
82
+ zh_Hans: Google 事实核查
83
+ ja_JP: Google検索に基づいた応答をします。
84
+ - name: url_context
85
+ type: boolean
86
+ required: true
87
+ default: false
88
+ label:
89
+ en_US: URL context
90
+ zh_Hans: 链接详情
91
+ ja_JP: 網羅閲覧
92
+ help:
93
+ en_US: Browse the url context
94
+ zh_Hans: 获取并分析该链接的详细信息,为回答提供参考依据。
95
+ ja_JP: リンク先の詳細情報を取得し、文脈を理解します。
96
+ - name: code_execution
97
+ type: boolean
98
+ required: true
99
+ default: false
100
+ label:
101
+ en_US: Code execution
102
+ zh_Hans: 代码执行
103
+ ja_JP: コード実行
104
+ help:
105
+ en_US: Lets Gemini use code to solve complex tasks
106
+ zh_Hans: 让 Gemini 使用代码来解决复杂任务。
107
+ ja_JP: Gemini にコードを使って複雑なタスクを解決させましょう。
108
+ - name: json_schema
109
+ use_template: json_schema
110
+ # https://ai.google.dev/gemini-api/docs/pricing?hl=zh-cn#gemini-2.5-flash-preview
111
+ pricing:
112
+ input: '0.30'
113
+ output: '2.50'
114
+ unit: '0.000001'
115
+ currency: USD
@@ -0,0 +1,115 @@
1
+ # https://ai.google.dev/gemini-api/docs/models?hl=zh-cn#gemini-2.5-flash-lite-preview
2
+ model: gemini-flash-lite-latest
3
+ label:
4
+ en_US: Gemini Flash-Lite Latest
5
+ model_type: llm
6
+ features:
7
+ - tool-call
8
+ - multi-tool-call
9
+ - agent-thought
10
+ - vision
11
+ - stream-tool-call
12
+ - document
13
+ - video
14
+ - audio
15
+ model_properties:
16
+ mode: chat
17
+ context_size: 1048576
18
+ parameter_rules:
19
+ - name: temperature
20
+ use_template: temperature
21
+ default: 1
22
+ min: 0
23
+ max: 2
24
+ - name: top_p
25
+ use_template: top_p
26
+ - name: top_k
27
+ label:
28
+ zh_Hans: 取样数量
29
+ en_US: Top k
30
+ type: int
31
+ help:
32
+ zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
33
+ en_US: Only sample from the top K options for each subsequent token.
34
+ required: false
35
+ - name: max_output_tokens
36
+ use_template: max_tokens
37
+ default: 65536
38
+ min: 1
39
+ max: 65536
40
+ - name: include_thoughts
41
+ type: boolean
42
+ required: false
43
+ default: false
44
+ label:
45
+ en_US: Include thoughts
46
+ zh_Hans: 返回思考过程
47
+ help:
48
+ en_US: Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.
49
+ zh_Hans: 是否返回思考过程。若为 true 则只有模型支持思考且启动思考模式时才返回思考过程。
50
+ - name: thinking_mode
51
+ type: boolean
52
+ required: true
53
+ default: true
54
+ label:
55
+ en_US: Thinking mode
56
+ zh_Hans: 思考模式
57
+ help:
58
+ en_US: Whether to enable thinking mode. If true and thinking_budget is not set, turn on dynamic thinking.
59
+ zh_Hans: 是否开启思考模式。若为 true 且 thinking_budget 未设置,则开启动态预算推理。
60
+ - name: thinking_budget
61
+ type: int
62
+ required: false
63
+ default: 8192
64
+ min: 512
65
+ max: 24576
66
+ label:
67
+ en_US: Set thinking budget
68
+ zh_Hans: 思考预算
69
+ help:
70
+ en_US: Indicates the thinking budget in tokens. This value is valid only when thinking mode is enabled. The default values and allowed ranges are model dependent. When enabling the thinking mode, if the thinking budget is not set, the default is to enable dynamic budget reasoning.
71
+ zh_Hans: 大模型的思考预算。仅在思考模式启动时该值有效。默认值和允许范围取决于模型。开启思考模式时,若未设置思考预算,则默认开启动态预算推理。
72
+ - name: grounding
73
+ type: boolean
74
+ required: true
75
+ default: false
76
+ label:
77
+ en_US: Grounding
78
+ zh_Hans: 事实核查
79
+ ja_JP: 事実チェック
80
+ help:
81
+ en_US: Grounding with Google Search
82
+ zh_Hans: Google 事实核查
83
+ ja_JP: Google検索に基づいた応答をします。
84
+ - name: url_context
85
+ type: boolean
86
+ required: true
87
+ default: false
88
+ label:
89
+ en_US: URL context
90
+ zh_Hans: 链接详情
91
+ ja_JP: 網羅閲覧
92
+ help:
93
+ en_US: Browse the url context
94
+ zh_Hans: 获取并分析该链接的详细信息,为回答提供参考依据。
95
+ ja_JP: リンク先の詳細情報を取得し、文脈を理解します。
96
+ - name: code_execution
97
+ type: boolean
98
+ required: true
99
+ default: false
100
+ label:
101
+ en_US: Code execution
102
+ zh_Hans: 代码执行
103
+ ja_JP: コード実行
104
+ help:
105
+ en_US: Lets Gemini use code to solve complex tasks
106
+ zh_Hans: 让 Gemini 使用代码来解决复杂任务。
107
+ ja_JP: Gemini にコードを使って複雑なタスクを解決させましょう。
108
+ - name: json_schema
109
+ use_template: json_schema
110
+ # https://ai.google.dev/gemini-api/docs/pricing?hl=zh-cn#gemini-2.5-flash-lite-preview
111
+ pricing:
112
+ input: '0.10'
113
+ output: '0.40'
114
+ unit: '0.000001'
115
+ currency: USD
@@ -0,0 +1,35 @@
1
+ model: gemini-pro-vision
2
+ label:
3
+ en_US: Gemini Pro Vision
4
+ model_type: llm
5
+ features:
6
+ - vision
7
+ model_properties:
8
+ mode: chat
9
+ context_size: 12288
10
+ parameter_rules:
11
+ - name: temperature
12
+ use_template: temperature
13
+ - name: top_p
14
+ use_template: top_p
15
+ - name: top_k
16
+ label:
17
+ zh_Hans: 取样数量
18
+ en_US: Top k
19
+ type: int
20
+ help:
21
+ zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
22
+ en_US: Only sample from the top K options for each subsequent token.
23
+ required: false
24
+ - name: max_tokens_to_sample
25
+ use_template: max_tokens
26
+ required: true
27
+ default: 4096
28
+ min: 1
29
+ max: 4096
30
+ pricing:
31
+ input: '0.00'
32
+ output: '0.00'
33
+ unit: '0.000001'
34
+ currency: USD
35
+ deprecated: true
@@ -0,0 +1,39 @@
1
+ model: gemini-pro
2
+ label:
3
+ en_US: Gemini Pro
4
+ model_type: llm
5
+ features:
6
+ - agent-thought
7
+ - tool-call
8
+ - stream-tool-call
9
+ model_properties:
10
+ mode: chat
11
+ context_size: 30720
12
+ parameter_rules:
13
+ - name: temperature
14
+ use_template: temperature
15
+ - name: top_p
16
+ use_template: top_p
17
+ - name: top_k
18
+ label:
19
+ zh_Hans: 取样数量
20
+ en_US: Top k
21
+ type: int
22
+ help:
23
+ zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
24
+ en_US: Only sample from the top K options for each subsequent token.
25
+ required: false
26
+ - name: max_tokens_to_sample
27
+ use_template: max_tokens
28
+ required: true
29
+ default: 2048
30
+ min: 1
31
+ max: 2048
32
+ - name: response_format
33
+ use_template: response_format
34
+ pricing:
35
+ input: '0.00'
36
+ output: '0.00'
37
+ unit: '0.000001'
38
+ currency: USD
39
+ deprecated: true
@@ -0,0 +1,42 @@
1
+ model: learnlm-1.5-pro-experimental
2
+ label:
3
+ en_US: LearnLM 1.5 Pro Experimental
4
+ model_type: llm
5
+ features:
6
+ - agent-thought
7
+ - vision
8
+ - tool-call
9
+ - stream-tool-call
10
+ - document
11
+ - video
12
+ - audio
13
+ model_properties:
14
+ mode: chat
15
+ context_size: 32767
16
+ parameter_rules:
17
+ - name: temperature
18
+ use_template: temperature
19
+ - name: top_p
20
+ use_template: top_p
21
+ - name: top_k
22
+ label:
23
+ zh_Hans: 取样数量
24
+ en_US: Top k
25
+ type: int
26
+ help:
27
+ zh_Hans: 仅从每个后续标记的前 K 个选项中采样。
28
+ en_US: Only sample from the top K options for each subsequent token.
29
+ required: false
30
+ - name: max_output_tokens
31
+ use_template: max_tokens
32
+ default: 8192
33
+ min: 1
34
+ max: 8192
35
+ - name: json_schema
36
+ use_template: json_schema
37
+ pricing:
38
+ input: '0.00'
39
+ output: '0.00'
40
+ unit: '0.000001'
41
+ currency: USD
42
+ deprecated: true
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@agentxin-ai/plugin-gemini",
3
+ "version": "0.0.2",
4
+ "author": {
5
+ "name": "AgentXinAI",
6
+ "url": "https://agentxinai.cn"
7
+ },
8
+ "license": "AGPL-3.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/agentxin-ai/agentxin-plugins.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/agentxin-ai/agentxin-plugins/issues"
15
+ },
16
+ "type": "module",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ "./package.json": "./package.json",
22
+ ".": {
23
+ "@agentxin-plugins-starter/source": "./src/index.ts",
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "default": "./dist/index.js"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "!**/*.tsbuildinfo"
32
+ ],
33
+ "scripts": {
34
+ "test": "jest",
35
+ "prepack": "node ./scripts/copy-assets.mjs"
36
+ },
37
+ "dependencies": {
38
+ "@langchain/google-genai": "^0.2.18",
39
+ "tslib": "^2.3.0"
40
+ },
41
+ "peerDependencies": {
42
+ "@metad/contracts": "^3.6.2",
43
+ "@nestjs/common": "^11.1.6",
44
+ "@nestjs/config": "^4.0.2",
45
+ "@agentxin-ai/plugin-sdk": "^3.6.5",
46
+ "lodash-es": "4.17.21",
47
+ "chalk": "4.1.2",
48
+ "zod": "3.25.67"
49
+ }
50
+ }