@formio/uag-gemini 2.0.0-rc.1 → 2.0.0-rc.10

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 (3) hide show
  1. package/README.md +4 -4
  2. package/index.js +1 -0
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # @formio/uag-gemini
2
2
 
3
- <sub>[Form.io UAG](https://github.com/formio/uag/blob/main/README.md) &rsaquo; [Engines](https://github.com/formio/uag/blob/main/README.md#engines-and-routing) &rsaquo; this page</sub>
3
+ <sub>[Form.io UAG](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md) &rsaquo; [Engines](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#engines-and-routing) &rsaquo; this page</sub>
4
4
 
5
- The **Gemini** agent engine for the [UAG Agent API](https://github.com/formio/uag/blob/main/README.md#agent-api): Google's Gemini models, through Google's OpenAI-compatible endpoint. It extracts and generates open values (dates, amounts, names, free text) with structured outputs. When a task lists read-only tools in `uagTools`, it researches with them first.
5
+ The **Gemini** agent engine for the [UAG Agent API](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#agent-api): Google's Gemini models, through Google's OpenAI-compatible endpoint. It extracts and generates open values (dates, amounts, names, free text) with structured outputs. When a task lists read-only tools in `uagTools`, it researches with them first.
6
6
 
7
7
  It is included in the `formio/uag` Docker image. Enable it by naming it, and set its key and model:
8
8
 
@@ -12,7 +12,7 @@ GEMINI_API_KEY=...
12
12
  GEMINI_MODEL=<a Gemini model ID>
13
13
  ```
14
14
 
15
- Its tasks are Agentic Formflow, so the UAG also needs a `LICENSE_KEY` that includes the UAG (see [License](https://github.com/formio/uag/blob/main/README.md#license)).
15
+ Its tasks are Agentic Formflow, so on a self-hosted project the UAG also needs a `LICENSE_KEY` that includes the UAG (see [License](https://github.com/formio/uag/blob/v2.0.0-rc.8/README.md#license)); a project on Form.io's hosted service needs none. A form's chat needs no license on Form.io Open Source or a hosted project.
16
16
 
17
17
  ## Settings
18
18
 
@@ -45,7 +45,7 @@ There is no default model: set `model` to a specific model ID from Google's docu
45
45
 
46
46
  ## How it works
47
47
 
48
- It is the [OpenAI engine](https://github.com/formio/uag/tree/main/engines/openai)'s agent kind with Google's endpoint and key built in: one chat completion with a strict JSON schema per extraction, and a function-calling loop over the task's read-only tools for research, ending in the same structured answer. A refusal, a truncated answer or an answer that is not JSON is an engine failure, and the UAG falls back to the next engine.
48
+ It is the [OpenAI engine](https://github.com/formio/uag/tree/v2.0.0-rc.8/engines/openai)'s agent kind with Google's endpoint and key built in: one chat completion with a strict JSON schema per extraction, and a function-calling loop over the task's read-only tools for research, ending in the same structured answer. A refusal, a truncated answer or an answer that is not JSON is an engine failure, and the UAG falls back to the next engine.
49
49
 
50
50
  Each field's format (such as `date`) and pattern are written into its description, not sent as schema constraints, so a field the input does not state stays empty instead of being invented to fit a pattern. The UAG validates every value either way.
51
51
 
package/index.js CHANGED
@@ -11,6 +11,7 @@ const { openAICompatible } = require('@formio/uag-openai/compatible');
11
11
 
12
12
  module.exports = openAICompatible({
13
13
  type: 'gemini',
14
+ title: 'Gemini',
14
15
  description: 'Google\'s Gemini models: structured extraction, with research over read-only tools.',
15
16
  baseURL: 'https://generativelanguage.googleapis.com/v1beta/openai',
16
17
  apiKey: { env: ['GEMINI_API_KEY', 'GOOGLE_API_KEY'] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/uag-gemini",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.10",
4
4
  "description": "Gemini engine for the Form.io Universal Agent Gateway (UAG): Google's Gemini models, for structured extraction with research over read-only tools.",
5
5
  "keywords": [
6
6
  "formio",
@@ -33,8 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@formio/uag-openai": "^2.0.0-rc.1",
37
- "@formio/uag-sdk": "^2.0.0-rc.1"
36
+ "@formio/uag-openai": "^2.0.0-rc.10",
37
+ "@formio/uag-sdk": "^2.0.0-rc.10"
38
38
  },
39
39
  "devDependencies": {
40
40
  "chai": "^6.3.0",