@celigo/api-specs 0.2.2 → 0.2.3-IO-168454-EPIC-fb
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.
- package/README.md +71 -80
- package/dist/account.yml +201 -3
- package/dist/agent.yml +7 -0
- package/dist/ai-agent.yml +587 -122
- package/dist/api.yml +5954 -127
- package/dist/apim.yml +0 -4
- package/dist/asynchelper.yml +117 -22
- package/dist/audit.yml +41 -2
- package/dist/bartendertemplate.yml +508 -0
- package/dist/connection.yml +1166 -125
- package/dist/ediprofile.yml +7 -0
- package/dist/editransaction.yml +250 -14
- package/dist/enduser.yml +5778 -35
- package/dist/export.yml +1028 -983
- package/dist/filedefinition.yml +37 -0
- package/dist/filedefinitionrules.yml +722 -0
- package/dist/fileserver.yml +1316 -0
- package/dist/filestorage.yml +712 -330
- package/dist/flow.yml +359 -98
- package/dist/guardrail.yml +280 -489
- package/dist/httpconnectorendpoint.yml +602 -126
- package/dist/httpconnectorresource.yml +1160 -84
- package/dist/iclient.yml +131 -76
- package/dist/import.yml +1937 -236
- package/dist/integration.yml +1024 -42
- package/dist/job.yml +180 -92
- package/dist/lookupcache.yml +7 -0
- package/dist/marketplace.yml +285 -105
- package/dist/mcp-server.yml +6745 -68
- package/dist/notification.yml +33 -8
- package/dist/processor.yml +8 -3
- package/dist/recyclebin.yml +32 -2
- package/dist/script.yml +7 -0
- package/dist/stack.yml +642 -5
- package/dist/storagequery.yml +865 -0
- package/dist/subscription.yml +254 -58
- package/dist/sync.yml +383 -72
- package/dist/template.yml +39 -1
- package/dist/tool.yml +6135 -2240
- package/dist/topic.yml +1783 -0
- package/dist/tradingpartnerconnector.yml +10 -0
- package/dist/user.yml +238 -32
- package/package.json +13 -1
- package/schemas.json +2346 -1885
package/dist/guardrail.yml
CHANGED
|
@@ -240,7 +240,11 @@ paths:
|
|
|
240
240
|
openai:
|
|
241
241
|
instructions: Validate that each record has a non-empty email field.
|
|
242
242
|
model: gpt-4.1-mini-2025-04-14
|
|
243
|
-
|
|
243
|
+
pii:
|
|
244
|
+
entities: []
|
|
245
|
+
mask: false
|
|
246
|
+
moderation:
|
|
247
|
+
categories: []
|
|
244
248
|
'401':
|
|
245
249
|
$ref: '#/components/responses/401-unauthorized'
|
|
246
250
|
'404':
|
|
@@ -578,20 +582,34 @@ components:
|
|
|
578
582
|
description: URI that identifies the resource on the MCP server.
|
|
579
583
|
examples:
|
|
580
584
|
- resource://policies/data-retention
|
|
581
|
-
|
|
585
|
+
GuardrailAiAgentConfig:
|
|
582
586
|
type: object
|
|
583
587
|
description: |
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
+
LLM configuration for an `ai_agent` guardrail — which provider and model evaluate each
|
|
589
|
+
record, with instructions, parameter tuning, and output format. Guardrails never invoke
|
|
590
|
+
tools, so unlike an AI agent import no block here accepts a `tools` array; MCP `prompts`
|
|
591
|
+
and `resources` remain available. Providers come in two families with two configuration
|
|
592
|
+
formats:
|
|
588
593
|
|
|
589
|
-
- **
|
|
590
|
-
|
|
591
|
-
|
|
594
|
+
- **Built-in providers** — each has its own configuration block.
|
|
595
|
+
- **openai**: OpenAI models (GPT-4.1, GPT-5, etc.). Configure via the `openai` object.
|
|
596
|
+
- **gemini**: Google Gemini models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.gemini`.
|
|
597
|
+
- **anthropic**: Anthropic Claude models via the LiteLLM proxy. Configure via `litellm` with overrides in `litellm._overrides.anthropic`.
|
|
598
|
+
- **Catalog providers** — `mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`. Added
|
|
599
|
+
as catalog data rather than platform code, they share one generic flat format:
|
|
600
|
+
`model`, `modelOptions`, `instructions`, `output`, and the `prompts` / `resources`
|
|
601
|
+
arrays directly on this object.
|
|
592
602
|
|
|
593
|
-
A `_connectionId`
|
|
594
|
-
|
|
603
|
+
A `_connectionId` on the parent import selects bring-your-own-key (BYOK)
|
|
604
|
+
credentials. Without one, built-in providers run on platform-managed
|
|
605
|
+
credentials; catalog providers have no platform-managed credentials, so they
|
|
606
|
+
save without a connection but cannot run until one is attached.
|
|
607
|
+
x-celigo-ai-guidance:
|
|
608
|
+
- |-
|
|
609
|
+
Do not send `tools` on any block. A non-empty array at `tools`, `openai.tools`,
|
|
610
|
+
`litellm._overrides.gemini.tools`, or `litellm._overrides.anthropic.tools` fails the
|
|
611
|
+
save with 422 `guardrail_tools_not_allowed` naming that path. Responses still echo
|
|
612
|
+
`openai.tools: []` on OpenAI guardrails; do not copy it back into a write.
|
|
595
613
|
required:
|
|
596
614
|
- provider
|
|
597
615
|
properties:
|
|
@@ -601,18 +619,169 @@ components:
|
|
|
601
619
|
- openai
|
|
602
620
|
- gemini
|
|
603
621
|
- anthropic
|
|
622
|
+
- mistral
|
|
623
|
+
- xai
|
|
624
|
+
- huggingface
|
|
625
|
+
- deepseek
|
|
626
|
+
- cohere
|
|
627
|
+
- groq
|
|
604
628
|
x-enumDescriptions:
|
|
605
|
-
openai: Use OpenAI models via the OpenAI Responses API.
|
|
606
|
-
gemini: Use Google Gemini models via the LiteLLM proxy.
|
|
607
|
-
anthropic: Use Anthropic Claude models via the LiteLLM proxy.
|
|
629
|
+
openai: Use OpenAI models via the OpenAI Responses API (built-in; `openai` block).
|
|
630
|
+
gemini: Use Google Gemini models via the LiteLLM proxy (built-in; `litellm` block).
|
|
631
|
+
anthropic: Use Anthropic Claude models via the LiteLLM proxy (built-in; `litellm` block).
|
|
632
|
+
mistral: Use Mistral models (catalog provider; generic flat format, BYOK).
|
|
633
|
+
xai: Use xAI Grok models (catalog provider; generic flat format, BYOK).
|
|
634
|
+
huggingface: Use Hugging Face inference endpoint models (catalog provider; generic flat format, BYOK).
|
|
635
|
+
deepseek: Use DeepSeek models (catalog provider; generic flat format, BYOK).
|
|
636
|
+
cohere: Use Cohere models (catalog provider; generic flat format, BYOK).
|
|
637
|
+
groq: Use Groq-hosted models (catalog provider; generic flat format, BYOK).
|
|
608
638
|
description: AI provider to use.
|
|
609
639
|
x-celigo-ai-guidance:
|
|
610
640
|
- |-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
-
|
|
615
|
-
|
|
641
|
+
The provider decides the configuration format, and the server rejects a
|
|
642
|
+
mismatch with 422 `invalid_provider_config_format`: `openai` needs the
|
|
643
|
+
`openai` block, `gemini` and `anthropic` need the `litellm` block (Gemini- or
|
|
644
|
+
Claude-specific settings under `litellm._overrides`), and the catalog
|
|
645
|
+
providers (`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) need the
|
|
646
|
+
generic flat format — `model` and `modelOptions` directly on this object,
|
|
647
|
+
never an `openai` or `litellm` block.
|
|
648
|
+
- |-
|
|
649
|
+
Catalog providers are BYOK-only at run time: the guardrail saves without a
|
|
650
|
+
`_connectionId`, but its first run fails with 422 `invalid_request` ("No API
|
|
651
|
+
key configured for provider …"). Always attach an HTTP connection to the
|
|
652
|
+
vendor's API (token auth) when the provider is a catalog provider.
|
|
653
|
+
model:
|
|
654
|
+
type: string
|
|
655
|
+
description: |-
|
|
656
|
+
Model identifier for a catalog provider (generic flat format) — for example
|
|
657
|
+
`grok-4.6`. Built-in providers set the model inside their own block
|
|
658
|
+
(`openai.model`, `litellm.model`) instead.
|
|
659
|
+
x-celigo-ai-guidance:
|
|
660
|
+
- |-
|
|
661
|
+
Required for every catalog provider — omitting it or sending an empty string
|
|
662
|
+
fails the save with 422 `missing_required_field`.
|
|
663
|
+
- |-
|
|
664
|
+
Without a `_connectionId` on the parent import the model must be one the
|
|
665
|
+
catalog lists for the provider: an unknown id fails the save with 422
|
|
666
|
+
`model_not_found`, a listed-but-disabled id with 422 `model_disabled`. With a
|
|
667
|
+
`_connectionId` (BYOK) any model string saves — the server does not check it
|
|
668
|
+
against the catalog or the vendor.
|
|
669
|
+
modelOptions:
|
|
670
|
+
type: object
|
|
671
|
+
description: |-
|
|
672
|
+
Model tuning for a catalog provider (generic flat format). Which keys, values, and
|
|
673
|
+
ranges are accepted is defined per catalog model and validated on save when the
|
|
674
|
+
model is a catalog entry.
|
|
675
|
+
properties:
|
|
676
|
+
maxOutputTokens:
|
|
677
|
+
type: number
|
|
678
|
+
description: Maximum number of tokens the model may generate.
|
|
679
|
+
temperature:
|
|
680
|
+
type: number
|
|
681
|
+
description: Sampling temperature.
|
|
682
|
+
topP:
|
|
683
|
+
type: number
|
|
684
|
+
description: Nucleus sampling threshold.
|
|
685
|
+
reasoning_effort:
|
|
686
|
+
type: string
|
|
687
|
+
enum:
|
|
688
|
+
- low
|
|
689
|
+
- medium
|
|
690
|
+
- high
|
|
691
|
+
- xhigh
|
|
692
|
+
x-enumDescriptions:
|
|
693
|
+
low: Minimal reasoning before answering.
|
|
694
|
+
medium: Moderate reasoning.
|
|
695
|
+
high: Extensive reasoning.
|
|
696
|
+
xhigh: Maximum reasoning.
|
|
697
|
+
description: Reasoning depth for models that expose it.
|
|
698
|
+
x-celigo-ai-guidance:
|
|
699
|
+
- |-
|
|
700
|
+
When the model is a catalog entry, the server validates this object against
|
|
701
|
+
that model's schema and fails the save with 422 `invalid_model_options`
|
|
702
|
+
naming the key: unknown keys are rejected, `reasoning_effort` must be one of
|
|
703
|
+
the enum values where the model accepts it at all (xAI's `grok-4.6` does;
|
|
704
|
+
DeepSeek's `deepseek-chat` rejects the key), and numeric bounds apply —
|
|
705
|
+
on `grok-4.6`, `temperature` ≤ 2, `topP` ≤ 1, `maxOutputTokens` ≥ 100.
|
|
706
|
+
- |-
|
|
707
|
+
With a `_connectionId` and a model the catalog does not list, the object is
|
|
708
|
+
passed through unvalidated — send only options the vendor's API accepts.
|
|
709
|
+
instructions:
|
|
710
|
+
type: string
|
|
711
|
+
description: |-
|
|
712
|
+
System prompt for a catalog provider (generic flat format). Built-in providers
|
|
713
|
+
set it inside their own block (`openai.instructions`,
|
|
714
|
+
`litellm._overrides.anthropic.systemInstruction`).
|
|
715
|
+
output:
|
|
716
|
+
type: object
|
|
717
|
+
description: |-
|
|
718
|
+
Output format for a catalog provider (generic flat format). Built-in providers
|
|
719
|
+
configure it inside their own block (`openai.output`, `litellm.responseFormat`).
|
|
720
|
+
properties:
|
|
721
|
+
format:
|
|
722
|
+
type: object
|
|
723
|
+
description: Controls the structure of the model's output.
|
|
724
|
+
properties:
|
|
725
|
+
type:
|
|
726
|
+
type: string
|
|
727
|
+
enum:
|
|
728
|
+
- text
|
|
729
|
+
- json_schema
|
|
730
|
+
x-enumDescriptions:
|
|
731
|
+
text: Free-form text.
|
|
732
|
+
json_schema: Structured JSON conforming to `jsonSchema`.
|
|
733
|
+
description: Output type.
|
|
734
|
+
x-celigo-ai-guidance:
|
|
735
|
+
- |-
|
|
736
|
+
`blob` is not accepted here — the save fails with 422
|
|
737
|
+
`unsupported_output_format` naming the model (verified on `grok-4.6`).
|
|
738
|
+
name:
|
|
739
|
+
type: string
|
|
740
|
+
description: Name of the JSON schema, for `json_schema` output.
|
|
741
|
+
strict:
|
|
742
|
+
type: boolean
|
|
743
|
+
description: When true, the model must conform exactly to `jsonSchema`.
|
|
744
|
+
jsonSchema:
|
|
745
|
+
type: object
|
|
746
|
+
additionalProperties: true
|
|
747
|
+
description: JSON Schema the structured output must conform to, for `json_schema` output.
|
|
748
|
+
verbose:
|
|
749
|
+
type: string
|
|
750
|
+
description: Level of detail in the model's response, for models that expose it.
|
|
751
|
+
prompts:
|
|
752
|
+
type: array
|
|
753
|
+
description: |-
|
|
754
|
+
MCP prompt entries available to a catalog-provider guardrail (generic flat format).
|
|
755
|
+
Each entry references one MCP connection and the prompt names allowed from it.
|
|
756
|
+
items:
|
|
757
|
+
type: object
|
|
758
|
+
properties:
|
|
759
|
+
type:
|
|
760
|
+
type: string
|
|
761
|
+
enum:
|
|
762
|
+
- mcp
|
|
763
|
+
x-enumDescriptions:
|
|
764
|
+
mcp: Reference prompts exposed by an MCP server.
|
|
765
|
+
description: Type of prompt entry. Always "mcp".
|
|
766
|
+
mcp:
|
|
767
|
+
type: object
|
|
768
|
+
properties:
|
|
769
|
+
_mcpConnectionId:
|
|
770
|
+
type: string
|
|
771
|
+
format: objectId
|
|
772
|
+
x-celigo-refModel: connections
|
|
773
|
+
description: Connection to the MCP server that exposes the prompts.
|
|
774
|
+
allowedPrompts:
|
|
775
|
+
type: array
|
|
776
|
+
description: Prompt names the model may fetch from the server.
|
|
777
|
+
items:
|
|
778
|
+
type: string
|
|
779
|
+
x-celigo-ai-guidance:
|
|
780
|
+
- |-
|
|
781
|
+
An unknown `_mcpConnectionId` fails the save with 422 `invalid_ref` naming
|
|
782
|
+
the array index.
|
|
783
|
+
resources:
|
|
784
|
+
$ref: '#/components/schemas/McpResources'
|
|
616
785
|
openai:
|
|
617
786
|
type: object
|
|
618
787
|
description: |
|
|
@@ -625,7 +794,7 @@ components:
|
|
|
625
794
|
type: string
|
|
626
795
|
maxLength: 1000000
|
|
627
796
|
description: |
|
|
628
|
-
System prompt that defines the
|
|
797
|
+
System prompt that defines the check's behavior, goals, and constraints.
|
|
629
798
|
examples:
|
|
630
799
|
- You are a data validation agent. Check each record for completeness.
|
|
631
800
|
x-celigo-ui-override: Required by the AI agent configuration form (the model's system prompt). Encoded here to mirror the form so builders produce connectable configurations.
|
|
@@ -643,10 +812,11 @@ components:
|
|
|
643
812
|
x-celigo-ai-guidance:
|
|
644
813
|
- |-
|
|
645
814
|
With platform-managed credentials (no `_connectionId` on the parent
|
|
646
|
-
import), the model must be
|
|
647
|
-
unlisted model
|
|
648
|
-
|
|
649
|
-
|
|
815
|
+
import), the model must be one the platform hosts. The save does not
|
|
816
|
+
check this — an unlisted model saves, and the guardrail's first run fails
|
|
817
|
+
with 422 `invalid_model`, whose message lists the hosted models. A
|
|
818
|
+
BYOK connection bypasses the hosted list and the model string is
|
|
819
|
+
passed through to the provider as-is.
|
|
650
820
|
reasoning:
|
|
651
821
|
type: object
|
|
652
822
|
description: Controls depth of reasoning for complex tasks.
|
|
@@ -665,13 +835,15 @@ components:
|
|
|
665
835
|
- medium
|
|
666
836
|
- high
|
|
667
837
|
- xhigh
|
|
838
|
+
- max
|
|
668
839
|
x-enumDescriptions:
|
|
669
840
|
none: No additional reasoning effort.
|
|
670
841
|
minimal: Least reasoning effort for simple, straightforward tasks.
|
|
671
842
|
low: Light reasoning for moderately simple tasks.
|
|
672
843
|
medium: Balanced reasoning effort for typical tasks.
|
|
673
|
-
high:
|
|
674
|
-
xhigh:
|
|
844
|
+
high: Extensive reasoning effort for complex, multi-step tasks.
|
|
845
|
+
xhigh: Extended reasoning effort beyond high for demanding tasks.
|
|
846
|
+
max: Highest available reasoning effort.
|
|
675
847
|
description: How much reasoning effort the model should invest
|
|
676
848
|
x-celigo-ai-guidance:
|
|
677
849
|
- |-
|
|
@@ -713,8 +885,7 @@ components:
|
|
|
713
885
|
type: number
|
|
714
886
|
minimum: 100
|
|
715
887
|
maximum: 128000
|
|
716
|
-
|
|
717
|
-
description: Maximum number of tokens in the model's response (server default observed live on create)
|
|
888
|
+
description: Maximum number of tokens in the model's response. Unlike an AI agent import, a guardrail does not receive a server-written value when this is omitted.
|
|
718
889
|
serviceTier:
|
|
719
890
|
type: string
|
|
720
891
|
enum:
|
|
@@ -725,7 +896,6 @@ components:
|
|
|
725
896
|
auto: Let OpenAI automatically select the appropriate service tier.
|
|
726
897
|
default: Standard service tier with normal rate limits and latency.
|
|
727
898
|
priority: Premium tier with higher rate limits and lower latency at increased cost.
|
|
728
|
-
default: default
|
|
729
899
|
description: |-
|
|
730
900
|
OpenAI service tier. "priority" provides higher rate limits and
|
|
731
901
|
lower latency at increased cost.
|
|
@@ -753,7 +923,6 @@ components:
|
|
|
753
923
|
text: Free-form text response from the model.
|
|
754
924
|
json_schema: Structured JSON output conforming to a defined schema.
|
|
755
925
|
blob: Binary data output for non-text content.
|
|
756
|
-
default: text
|
|
757
926
|
description: Output format type.
|
|
758
927
|
schemaMode:
|
|
759
928
|
type: string
|
|
@@ -773,7 +942,6 @@ components:
|
|
|
773
942
|
x-celigo-ui-override: Required by the AI agent form when output format type is json_schema. Encoded here to mirror the form so builders produce connectable configurations.
|
|
774
943
|
strict:
|
|
775
944
|
type: boolean
|
|
776
|
-
default: false
|
|
777
945
|
description: When true, enforces strict schema validation on output.
|
|
778
946
|
x-celigo-ai-guidance:
|
|
779
947
|
- Whether to enforce strict schema validation on output
|
|
@@ -812,6 +980,13 @@ components:
|
|
|
812
980
|
additionalproperties:
|
|
813
981
|
type: boolean
|
|
814
982
|
description: When true, the structured output may include properties beyond those defined in `properties`.
|
|
983
|
+
schema:
|
|
984
|
+
type: object
|
|
985
|
+
readOnly: true
|
|
986
|
+
additionalProperties: true
|
|
987
|
+
description: |-
|
|
988
|
+
Server-written copy of `jsonSchema`, present in responses once `jsonSchema`
|
|
989
|
+
is set. Send `jsonSchema`, not this field.
|
|
815
990
|
if:
|
|
816
991
|
properties:
|
|
817
992
|
type:
|
|
@@ -832,7 +1007,6 @@ components:
|
|
|
832
1007
|
low: Minimal detail in the model's response.
|
|
833
1008
|
medium: Moderate detail in the model's response, the default level.
|
|
834
1009
|
high: Maximum detail and verbosity in the model's response.
|
|
835
|
-
default: medium
|
|
836
1010
|
description: Level of detail in the model's response
|
|
837
1011
|
x-celigo-ai-guidance:
|
|
838
1012
|
- |-
|
|
@@ -841,165 +1015,11 @@ components:
|
|
|
841
1015
|
`gpt-4.1-nano`) accept only `medium` (the no-op default) — `low` and `high` are
|
|
842
1016
|
rejected by the provider at runtime.
|
|
843
1017
|
Omit the field entirely on non-GPT-5 models rather than relying on the default.
|
|
844
|
-
tools:
|
|
845
|
-
type: array
|
|
846
|
-
description: |
|
|
847
|
-
Tools available to the AI agent during processing.
|
|
848
|
-
items:
|
|
849
|
-
type: object
|
|
850
|
-
properties:
|
|
851
|
-
type:
|
|
852
|
-
type: string
|
|
853
|
-
enum:
|
|
854
|
-
- web_search
|
|
855
|
-
- mcp
|
|
856
|
-
- image_generation
|
|
857
|
-
- tool
|
|
858
|
-
x-enumDescriptions:
|
|
859
|
-
web_search: Search the web for real-time information.
|
|
860
|
-
mcp: Connect to an MCP server for additional external tools.
|
|
861
|
-
image_generation: Generate images using an AI image model.
|
|
862
|
-
tool: Reference a reusable Celigo Tool resource.
|
|
863
|
-
description: Type of tool.
|
|
864
|
-
webSearch:
|
|
865
|
-
type: object
|
|
866
|
-
description: Web search configuration (empty object to enable)
|
|
867
|
-
imageGeneration:
|
|
868
|
-
type: object
|
|
869
|
-
description: Image generation configuration
|
|
870
|
-
properties:
|
|
871
|
-
background:
|
|
872
|
-
type: string
|
|
873
|
-
description: Controls whether generated images have a transparent or opaque background; use transparent only with output formats that support it (png, webp).
|
|
874
|
-
enum:
|
|
875
|
-
- transparent
|
|
876
|
-
- opaque
|
|
877
|
-
x-enumDescriptions:
|
|
878
|
-
transparent: Generate an image with a transparent background.
|
|
879
|
-
opaque: Generate an image with a solid, non-transparent background.
|
|
880
|
-
quality:
|
|
881
|
-
type: string
|
|
882
|
-
description: Rendering quality of generated images, trading detail for generation speed and file size.
|
|
883
|
-
enum:
|
|
884
|
-
- low
|
|
885
|
-
- medium
|
|
886
|
-
- high
|
|
887
|
-
x-enumDescriptions:
|
|
888
|
-
low: Lower quality for faster generation and smaller file size.
|
|
889
|
-
medium: Balanced quality and generation speed.
|
|
890
|
-
high: Highest quality output with more detail.
|
|
891
|
-
size:
|
|
892
|
-
type: string
|
|
893
|
-
description: Pixel dimensions of generated images; choose square, portrait, or landscape to match the intended use.
|
|
894
|
-
enum:
|
|
895
|
-
- 1024x1024
|
|
896
|
-
- 1024x1536
|
|
897
|
-
- 1536x1024
|
|
898
|
-
x-enumDescriptions:
|
|
899
|
-
1024x1024: Square image at 1024 by 1024 pixels.
|
|
900
|
-
1024x1536: Portrait image at 1024 by 1536 pixels.
|
|
901
|
-
1536x1024: Landscape image at 1536 by 1024 pixels.
|
|
902
|
-
outputFormat:
|
|
903
|
-
type: string
|
|
904
|
-
description: File format of generated images; use png or webp when transparency is needed.
|
|
905
|
-
enum:
|
|
906
|
-
- png
|
|
907
|
-
- webp
|
|
908
|
-
- jpeg
|
|
909
|
-
x-enumDescriptions:
|
|
910
|
-
png: PNG format with lossless compression, supports transparency.
|
|
911
|
-
webp: WebP format with efficient compression for web use.
|
|
912
|
-
jpeg: JPEG format with lossy compression for smaller file sizes.
|
|
913
|
-
mcp:
|
|
914
|
-
type: object
|
|
915
|
-
description: MCP server tool configuration
|
|
916
|
-
properties:
|
|
917
|
-
_mcpConnectionId:
|
|
918
|
-
type: string
|
|
919
|
-
format: objectId
|
|
920
|
-
x-celigo-refModel: connections
|
|
921
|
-
description: Connection to the MCP server
|
|
922
|
-
allowedTools:
|
|
923
|
-
type: array
|
|
924
|
-
description: |-
|
|
925
|
-
Specific tools to allow from the MCP server (all if
|
|
926
|
-
omitted). Each entry is either a plain tool name (legacy
|
|
927
|
-
form) or an object carrying display metadata.
|
|
928
|
-
items:
|
|
929
|
-
type:
|
|
930
|
-
- string
|
|
931
|
-
- object
|
|
932
|
-
properties:
|
|
933
|
-
name:
|
|
934
|
-
type: string
|
|
935
|
-
maxLength: 256
|
|
936
|
-
description: Tool name as exposed by the MCP server.
|
|
937
|
-
title:
|
|
938
|
-
type: string
|
|
939
|
-
maxLength: 300
|
|
940
|
-
description: Display title shown for the tool.
|
|
941
|
-
description:
|
|
942
|
-
type: string
|
|
943
|
-
maxLength: 1000
|
|
944
|
-
description: Display description shown for the tool.
|
|
945
|
-
required:
|
|
946
|
-
- name
|
|
947
|
-
x-celigo-ai-guidance:
|
|
948
|
-
- |-
|
|
949
|
-
Object entries accept only name/title/description — any
|
|
950
|
-
other key fails validation with "unknown field(s)", and
|
|
951
|
-
an object without a non-empty name fails with a
|
|
952
|
-
missing-required-field error. String entries are the
|
|
953
|
-
legacy form and stay valid.
|
|
954
|
-
allowedPrompts:
|
|
955
|
-
type: array
|
|
956
|
-
description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
|
|
957
|
-
items:
|
|
958
|
-
type: string
|
|
959
|
-
tool:
|
|
960
|
-
type: object
|
|
961
|
-
description: |
|
|
962
|
-
Reference to a Celigo Tool resource.
|
|
963
|
-
properties:
|
|
964
|
-
_toolId:
|
|
965
|
-
type: string
|
|
966
|
-
format: objectId
|
|
967
|
-
x-celigo-refModel: tools
|
|
968
|
-
description: Reference to the Tool resource
|
|
969
|
-
overrides:
|
|
970
|
-
type: object
|
|
971
|
-
description: Per-agent overrides for the tool's internal resources
|
|
972
|
-
properties:
|
|
973
|
-
connections:
|
|
974
|
-
type: array
|
|
975
|
-
description: |
|
|
976
|
-
Remaps the tool's abstract connections for this agent. Each entry pairs
|
|
977
|
-
the tool's abstract connection placeholder (`_abstractId`) with the
|
|
978
|
-
concrete connection (`_id`) to use for this agent; entries without
|
|
979
|
-
`_id` keep the tool's own default connection.
|
|
980
|
-
items:
|
|
981
|
-
type:
|
|
982
|
-
- object
|
|
983
|
-
- 'null'
|
|
984
|
-
required:
|
|
985
|
-
- _abstractId
|
|
986
|
-
properties:
|
|
987
|
-
_abstractId:
|
|
988
|
-
type: string
|
|
989
|
-
format: objectId
|
|
990
|
-
description: The tool's abstract connection placeholder being overridden.
|
|
991
|
-
_id:
|
|
992
|
-
type: string
|
|
993
|
-
format: objectId
|
|
994
|
-
x-celigo-refModel: connections
|
|
995
|
-
description: Concrete connection to use in place of the abstract placeholder.
|
|
996
1018
|
prompts:
|
|
997
1019
|
type: array
|
|
998
|
-
description:
|
|
999
|
-
MCP prompt entries available to the
|
|
1000
|
-
and the prompt names allowed from it.
|
|
1001
|
-
stored separately; an entry's `allowedPrompts` is what distinguishes a prompt entry
|
|
1002
|
-
from an MCP tool entry (which carries `allowedTools`).
|
|
1020
|
+
description: |-
|
|
1021
|
+
MCP prompt entries available to the guardrail's model. Each item references one
|
|
1022
|
+
MCP connection and the prompt names allowed from it.
|
|
1003
1023
|
items:
|
|
1004
1024
|
type: object
|
|
1005
1025
|
properties:
|
|
@@ -1049,6 +1069,13 @@ components:
|
|
|
1049
1069
|
- claude-sonnet-4-6
|
|
1050
1070
|
- claude-opus-4-7
|
|
1051
1071
|
x-celigo-ui-override: Required by the AI agent configuration form. Encoded here to mirror the form so builders produce connectable configurations.
|
|
1072
|
+
x-celigo-ai-guidance:
|
|
1073
|
+
- |-
|
|
1074
|
+
With platform-managed credentials (no `_connectionId` on the parent
|
|
1075
|
+
import), the model must be one the platform hosts for the provider —
|
|
1076
|
+
Gemini and Anthropic Claude both have a hosted list. The save does not
|
|
1077
|
+
check this — an unlisted model saves, and the guardrail's first run fails
|
|
1078
|
+
with 422 `invalid_model`, whose message lists the hosted models.
|
|
1052
1079
|
temperature:
|
|
1053
1080
|
type: number
|
|
1054
1081
|
minimum: 0
|
|
@@ -1062,7 +1089,6 @@ components:
|
|
|
1062
1089
|
type: number
|
|
1063
1090
|
minimum: 100
|
|
1064
1091
|
maximum: 128000
|
|
1065
|
-
default: 5000
|
|
1066
1092
|
description: Maximum number of tokens in the response
|
|
1067
1093
|
topP:
|
|
1068
1094
|
type: number
|
|
@@ -1092,7 +1118,6 @@ components:
|
|
|
1092
1118
|
text: Free-form text response from the model.
|
|
1093
1119
|
json_schema: Structured JSON output conforming to a defined schema.
|
|
1094
1120
|
blob: Binary data output for non-text content.
|
|
1095
|
-
default: text
|
|
1096
1121
|
schemaMode:
|
|
1097
1122
|
type: string
|
|
1098
1123
|
enum:
|
|
@@ -1112,7 +1137,6 @@ components:
|
|
|
1112
1137
|
strict:
|
|
1113
1138
|
type: boolean
|
|
1114
1139
|
description: When true, enforces strict schema validation on output.
|
|
1115
|
-
default: false
|
|
1116
1140
|
jsonSchema:
|
|
1117
1141
|
type: object
|
|
1118
1142
|
description: JSON Schema for structured output. Required when `responseFormat.type` is "json_schema".
|
|
@@ -1175,124 +1199,11 @@ components:
|
|
|
1175
1199
|
System instruction for Gemini models. Equivalent to OpenAI's `instructions`.
|
|
1176
1200
|
Maximum 1,000,000 characters.
|
|
1177
1201
|
x-celigo-ui-override: Required by the AI agent configuration form (the model's system prompt, the Gemini equivalent of `instructions`). Encoded here to mirror the form so builders produce connectable configurations.
|
|
1178
|
-
tools:
|
|
1179
|
-
type: array
|
|
1180
|
-
description: Gemini-specific tools
|
|
1181
|
-
items:
|
|
1182
|
-
type: object
|
|
1183
|
-
properties:
|
|
1184
|
-
type:
|
|
1185
|
-
type: string
|
|
1186
|
-
enum:
|
|
1187
|
-
- googleSearch
|
|
1188
|
-
- urlContext
|
|
1189
|
-
- fileSearch
|
|
1190
|
-
- mcp
|
|
1191
|
-
- tool
|
|
1192
|
-
x-enumDescriptions:
|
|
1193
|
-
googleSearch: Use Google Search for real-time information grounding.
|
|
1194
|
-
urlContext: Retrieve and use content from specified URLs.
|
|
1195
|
-
fileSearch: Search through previously uploaded files.
|
|
1196
|
-
mcp: Connect to an MCP server for additional external tools.
|
|
1197
|
-
tool: Reference a reusable Celigo Tool resource.
|
|
1198
|
-
description: Type of Gemini tool.
|
|
1199
|
-
googleSearch:
|
|
1200
|
-
type: object
|
|
1201
|
-
description: Google Search configuration (empty object to enable)
|
|
1202
|
-
urlContext:
|
|
1203
|
-
type: object
|
|
1204
|
-
description: URL context configuration (empty object to enable)
|
|
1205
|
-
fileSearch:
|
|
1206
|
-
type: object
|
|
1207
|
-
description: File search configuration, used when type is "fileSearch".
|
|
1208
|
-
properties:
|
|
1209
|
-
fileSearchStoreNames:
|
|
1210
|
-
type: array
|
|
1211
|
-
description: Names of the file search stores the model can query.
|
|
1212
|
-
items:
|
|
1213
|
-
type: string
|
|
1214
|
-
mcp:
|
|
1215
|
-
type: object
|
|
1216
|
-
description: MCP server tool configuration, used when type is "mcp".
|
|
1217
|
-
properties:
|
|
1218
|
-
_mcpConnectionId:
|
|
1219
|
-
type: string
|
|
1220
|
-
format: objectId
|
|
1221
|
-
x-celigo-refModel: connections
|
|
1222
|
-
description: Connection to the MCP server.
|
|
1223
|
-
allowedTools:
|
|
1224
|
-
type: array
|
|
1225
|
-
description: |-
|
|
1226
|
-
Specific tools to allow from the MCP server (all if
|
|
1227
|
-
omitted). Each entry is either a plain tool name
|
|
1228
|
-
(legacy form) or an object carrying display metadata
|
|
1229
|
-
— same contract as the OpenAI `allowedTools`.
|
|
1230
|
-
items:
|
|
1231
|
-
type:
|
|
1232
|
-
- string
|
|
1233
|
-
- object
|
|
1234
|
-
properties:
|
|
1235
|
-
name:
|
|
1236
|
-
type: string
|
|
1237
|
-
maxLength: 256
|
|
1238
|
-
description: Tool name as exposed by the MCP server.
|
|
1239
|
-
title:
|
|
1240
|
-
type: string
|
|
1241
|
-
maxLength: 300
|
|
1242
|
-
description: Display title shown for the tool.
|
|
1243
|
-
description:
|
|
1244
|
-
type: string
|
|
1245
|
-
maxLength: 1000
|
|
1246
|
-
description: Display description shown for the tool.
|
|
1247
|
-
required:
|
|
1248
|
-
- name
|
|
1249
|
-
allowedPrompts:
|
|
1250
|
-
type: array
|
|
1251
|
-
description: Specific prompts to allow from the MCP server (used for MCP prompt entries; all if omitted).
|
|
1252
|
-
items:
|
|
1253
|
-
type: string
|
|
1254
|
-
tool:
|
|
1255
|
-
type: object
|
|
1256
|
-
description: Reference to a Celigo Tool resource, used when type is "tool".
|
|
1257
|
-
properties:
|
|
1258
|
-
_toolId:
|
|
1259
|
-
type: string
|
|
1260
|
-
format: objectId
|
|
1261
|
-
x-celigo-refModel: tools
|
|
1262
|
-
description: Reference to the Tool resource.
|
|
1263
|
-
overrides:
|
|
1264
|
-
type: object
|
|
1265
|
-
description: Per-agent overrides for the tool's internal resources.
|
|
1266
|
-
properties:
|
|
1267
|
-
connections:
|
|
1268
|
-
type: array
|
|
1269
|
-
description: |
|
|
1270
|
-
Remaps the tool's abstract connections for this agent. Each entry
|
|
1271
|
-
pairs the tool's abstract connection placeholder (`_abstractId`)
|
|
1272
|
-
with the concrete connection (`_id`) to use for this agent;
|
|
1273
|
-
entries without `_id` keep the tool's own default connection.
|
|
1274
|
-
items:
|
|
1275
|
-
type:
|
|
1276
|
-
- object
|
|
1277
|
-
- 'null'
|
|
1278
|
-
required:
|
|
1279
|
-
- _abstractId
|
|
1280
|
-
properties:
|
|
1281
|
-
_abstractId:
|
|
1282
|
-
type: string
|
|
1283
|
-
format: objectId
|
|
1284
|
-
description: The tool's abstract connection placeholder being overridden.
|
|
1285
|
-
_id:
|
|
1286
|
-
type: string
|
|
1287
|
-
format: objectId
|
|
1288
|
-
x-celigo-refModel: connections
|
|
1289
|
-
description: Concrete connection to use in place of the abstract placeholder.
|
|
1290
1202
|
prompts:
|
|
1291
1203
|
type: array
|
|
1292
|
-
description:
|
|
1293
|
-
MCP prompt entries available to the Gemini
|
|
1294
|
-
MCP connection and the prompt names allowed from it.
|
|
1295
|
-
`allowedPrompts` distinguishes a prompt entry from an MCP tool entry.
|
|
1204
|
+
description: |-
|
|
1205
|
+
MCP prompt entries available to the Gemini model. Each item references one
|
|
1206
|
+
MCP connection and the prompt names allowed from it.
|
|
1296
1207
|
items:
|
|
1297
1208
|
type: object
|
|
1298
1209
|
properties:
|
|
@@ -1335,8 +1246,6 @@ components:
|
|
|
1335
1246
|
x-enumDescriptions:
|
|
1336
1247
|
text: Generate text content in the response.
|
|
1337
1248
|
image: Generate image content in the response.
|
|
1338
|
-
default:
|
|
1339
|
-
- text
|
|
1340
1249
|
topK:
|
|
1341
1250
|
type: number
|
|
1342
1251
|
description: Top-K sampling parameter for Gemini
|
|
@@ -1460,7 +1369,6 @@ components:
|
|
|
1460
1369
|
enabled: Turn on extended thinking with an explicit token budget.
|
|
1461
1370
|
disabled: Turn off extended thinking.
|
|
1462
1371
|
adaptive: Let the model decide how much to think based on task complexity.
|
|
1463
|
-
default: disabled
|
|
1464
1372
|
description: Extended thinking mode.
|
|
1465
1373
|
budgetTokens:
|
|
1466
1374
|
type: number
|
|
@@ -1477,7 +1385,6 @@ components:
|
|
|
1477
1385
|
x-enumDescriptions:
|
|
1478
1386
|
summarized: Include a summarized view of the model's thinking in the response.
|
|
1479
1387
|
omitted: Exclude the model's thinking from the response.
|
|
1480
|
-
default: summarized
|
|
1481
1388
|
description: How thinking output is surfaced in the response.
|
|
1482
1389
|
effort:
|
|
1483
1390
|
type: string
|
|
@@ -1513,140 +1420,12 @@ components:
|
|
|
1513
1420
|
x-enumDescriptions:
|
|
1514
1421
|
auto: Let Anthropic select the appropriate service tier.
|
|
1515
1422
|
standard_only: Restrict processing to the standard service tier.
|
|
1516
|
-
default: auto
|
|
1517
1423
|
description: Anthropic service tier for the request.
|
|
1518
|
-
tools:
|
|
1519
|
-
type: array
|
|
1520
|
-
description: Claude-specific tools.
|
|
1521
|
-
items:
|
|
1522
|
-
type: object
|
|
1523
|
-
properties:
|
|
1524
|
-
type:
|
|
1525
|
-
type: string
|
|
1526
|
-
enum:
|
|
1527
|
-
- tool
|
|
1528
|
-
- mcp
|
|
1529
|
-
- webSearch
|
|
1530
|
-
x-enumDescriptions:
|
|
1531
|
-
tool: Reference a reusable Celigo Tool resource.
|
|
1532
|
-
mcp: Connect to an MCP server for additional external tools.
|
|
1533
|
-
webSearch: Search the web for real-time information.
|
|
1534
|
-
description: Type of Claude tool.
|
|
1535
|
-
tool:
|
|
1536
|
-
type: object
|
|
1537
|
-
description: Reference to a Celigo Tool resource, used when type is "tool".
|
|
1538
|
-
properties:
|
|
1539
|
-
_toolId:
|
|
1540
|
-
type: string
|
|
1541
|
-
format: objectId
|
|
1542
|
-
x-celigo-refModel: tools
|
|
1543
|
-
description: Reference to the Tool resource.
|
|
1544
|
-
overrides:
|
|
1545
|
-
type: object
|
|
1546
|
-
description: Per-agent overrides for the tool's internal resources.
|
|
1547
|
-
properties:
|
|
1548
|
-
connections:
|
|
1549
|
-
type: array
|
|
1550
|
-
description: |
|
|
1551
|
-
Remaps the tool's abstract connections for this agent. Each entry
|
|
1552
|
-
pairs the tool's abstract connection placeholder (`_abstractId`)
|
|
1553
|
-
with the concrete connection (`_id`) to use for this agent;
|
|
1554
|
-
entries without `_id` keep the tool's own default connection.
|
|
1555
|
-
items:
|
|
1556
|
-
type:
|
|
1557
|
-
- object
|
|
1558
|
-
- 'null'
|
|
1559
|
-
required:
|
|
1560
|
-
- _abstractId
|
|
1561
|
-
properties:
|
|
1562
|
-
_abstractId:
|
|
1563
|
-
type: string
|
|
1564
|
-
format: objectId
|
|
1565
|
-
description: The tool's abstract connection placeholder being overridden.
|
|
1566
|
-
_id:
|
|
1567
|
-
type: string
|
|
1568
|
-
format: objectId
|
|
1569
|
-
x-celigo-refModel: connections
|
|
1570
|
-
description: Concrete connection to use in place of the abstract placeholder.
|
|
1571
|
-
mcp:
|
|
1572
|
-
type: object
|
|
1573
|
-
description: MCP server tool configuration, used when type is "mcp".
|
|
1574
|
-
properties:
|
|
1575
|
-
_mcpConnectionId:
|
|
1576
|
-
type: string
|
|
1577
|
-
format: objectId
|
|
1578
|
-
x-celigo-refModel: connections
|
|
1579
|
-
description: Connection to the MCP server.
|
|
1580
|
-
allowedTools:
|
|
1581
|
-
type: array
|
|
1582
|
-
description: Specific tools to allow from the MCP server (all if omitted).
|
|
1583
|
-
items:
|
|
1584
|
-
type: string
|
|
1585
|
-
webSearch:
|
|
1586
|
-
type: object
|
|
1587
|
-
description: Web search configuration, used when type is "webSearch".
|
|
1588
|
-
x-celigo-ai-guidance:
|
|
1589
|
-
- |-
|
|
1590
|
-
`allowedDomains` and `blockedDomains` are mutually exclusive — set at most
|
|
1591
|
-
one. Sending both fails with 422 `invalid_hosted_tool`.
|
|
1592
|
-
- |-
|
|
1593
|
-
When `userLocation` is present, set at least one of `city`, `country`,
|
|
1594
|
-
`region`, or `timezone`; an empty `userLocation` fails with 422
|
|
1595
|
-
`missing_required_field`.
|
|
1596
|
-
properties:
|
|
1597
|
-
version:
|
|
1598
|
-
type: string
|
|
1599
|
-
pattern: ^\d{8}$
|
|
1600
|
-
description: |-
|
|
1601
|
-
Anthropic web search tool version (YYYYMMDD). Selects the tool version sent
|
|
1602
|
-
on the wire; unsupported versions surface as an Anthropic 400.
|
|
1603
|
-
examples:
|
|
1604
|
-
- '20250305'
|
|
1605
|
-
allowedDomains:
|
|
1606
|
-
type: array
|
|
1607
|
-
description: Domains the search may return results from. Mutually exclusive with `blockedDomains`.
|
|
1608
|
-
items:
|
|
1609
|
-
type: string
|
|
1610
|
-
blockedDomains:
|
|
1611
|
-
type: array
|
|
1612
|
-
description: Domains to exclude from search results. Mutually exclusive with `allowedDomains`.
|
|
1613
|
-
items:
|
|
1614
|
-
type: string
|
|
1615
|
-
userLocation:
|
|
1616
|
-
type: object
|
|
1617
|
-
description: |-
|
|
1618
|
-
Approximate user location used to localize search results. When present, at
|
|
1619
|
-
least one of `city`, `country`, `region`, or `timezone` must be set.
|
|
1620
|
-
properties:
|
|
1621
|
-
type:
|
|
1622
|
-
type: string
|
|
1623
|
-
enum:
|
|
1624
|
-
- approximate
|
|
1625
|
-
x-enumDescriptions:
|
|
1626
|
-
approximate: Localize results to an approximate user location.
|
|
1627
|
-
description: Location type. Always "approximate".
|
|
1628
|
-
city:
|
|
1629
|
-
type: string
|
|
1630
|
-
maxLength: 256
|
|
1631
|
-
description: City name for localizing search results.
|
|
1632
|
-
country:
|
|
1633
|
-
type: string
|
|
1634
|
-
maxLength: 8
|
|
1635
|
-
description: ISO 3166-1 alpha-2 country code for localizing search results.
|
|
1636
|
-
region:
|
|
1637
|
-
type: string
|
|
1638
|
-
maxLength: 256
|
|
1639
|
-
description: Region or state for localizing search results.
|
|
1640
|
-
timezone:
|
|
1641
|
-
type: string
|
|
1642
|
-
maxLength: 64
|
|
1643
|
-
description: IANA timezone for localizing search results.
|
|
1644
1424
|
prompts:
|
|
1645
1425
|
type: array
|
|
1646
|
-
description:
|
|
1647
|
-
MCP prompt entries available to the Claude
|
|
1648
|
-
connection and the prompt names allowed from it.
|
|
1649
|
-
distinguishes a prompt entry from an MCP tool entry.
|
|
1426
|
+
description: |-
|
|
1427
|
+
MCP prompt entries available to the Claude model. Each item references one
|
|
1428
|
+
MCP connection and the prompt names allowed from it.
|
|
1650
1429
|
items:
|
|
1651
1430
|
type: object
|
|
1652
1431
|
properties:
|
|
@@ -1703,52 +1482,43 @@ components:
|
|
|
1703
1482
|
litellm:
|
|
1704
1483
|
required:
|
|
1705
1484
|
- model
|
|
1485
|
+
else:
|
|
1486
|
+
if:
|
|
1487
|
+
properties:
|
|
1488
|
+
provider:
|
|
1489
|
+
enum:
|
|
1490
|
+
- mistral
|
|
1491
|
+
- xai
|
|
1492
|
+
- huggingface
|
|
1493
|
+
- deepseek
|
|
1494
|
+
- cohere
|
|
1495
|
+
- groq
|
|
1496
|
+
required:
|
|
1497
|
+
- provider
|
|
1498
|
+
then:
|
|
1499
|
+
required:
|
|
1500
|
+
- model
|
|
1706
1501
|
GuardrailConfig:
|
|
1707
1502
|
type: object
|
|
1708
1503
|
description: |-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
the
|
|
1715
|
-
|
|
1716
|
-
A `_connectionId` on the parent import is only needed for BYOK
|
|
1717
|
-
`ai_agent` guardrails. In responses the server echoes the active type's
|
|
1718
|
-
sub-object and applies the `confidenceThreshold` default; it also
|
|
1719
|
-
returns inactive sibling sub-objects (e.g. `moderation: {categories: []}`
|
|
1720
|
-
on a `pii` guardrail, or a populated `pii` left over from a type switch),
|
|
1721
|
-
but only the active type's sub-object is meaningful. Legacy documents
|
|
1722
|
-
may carry a server-written default `aiAgent` stub on `pii`/`moderation`
|
|
1723
|
-
guardrails; current servers strip the inactive `aiAgent` on write.
|
|
1504
|
+
Selects the check a guardrail applies and carries its settings. `type` picks the check
|
|
1505
|
+
and the matching sub-object (`pii`, `moderation`, or `aiAgent`) configures it.
|
|
1506
|
+
Responses echo the active sub-object with `confidenceThreshold` defaulted and also
|
|
1507
|
+
return the inactive `pii` / `moderation` siblings as empty stubs
|
|
1508
|
+
(`pii: {entities: [], mask: false}`, `moderation: {categories: []}`) — only the active
|
|
1509
|
+
type's sub-object is meaningful. Guardrails created before the AI-agent stub was
|
|
1510
|
+
stripped on write may still return an inert `aiAgent` on `pii` / `moderation` guardrails.
|
|
1724
1511
|
x-celigo-ai-guidance:
|
|
1725
1512
|
- |-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
rule on
|
|
1730
|
-
|
|
1731
|
-
- **pii**: Detect (and optionally mask) personally identifiable
|
|
1732
|
-
information. Local deterministic classifier; fixed enum of
|
|
1733
|
-
entity types (`pii.entities`).
|
|
1734
|
-
- **moderation**: Detect harmful / inappropriate / policy-
|
|
1735
|
-
violating CONTENT. Local deterministic classifier; fixed enum
|
|
1736
|
-
of categories (`moderation.categories` — `sexual`, `hate`,
|
|
1737
|
-
`harassment`, `self_harm`, `violence`, `illicit`, etc.). Use
|
|
1738
|
-
category names exactly as listed in the enum — e.g. `hate`
|
|
1739
|
-
(not "hate speech"), `violence` (not "violent content"). Map
|
|
1740
|
-
natural-language synonyms ("explicit" → `sexual`, "toxic" →
|
|
1741
|
-
`harassment`, etc.) to the closest enum value rather than
|
|
1742
|
-
falling back to `ai_agent`.
|
|
1743
|
-
- **ai_agent**: LLM-evaluated judgement against custom
|
|
1744
|
-
instructions. Catch-all for intents that don't fit `pii` or
|
|
1745
|
-
`moderation` — domain-specific compliance, business-policy
|
|
1746
|
-
checks, data-quality assertions, etc. Pick this LAST, not as
|
|
1747
|
-
the default.
|
|
1513
|
+
Pick exactly one type. Prefer the deterministic local classifiers (`pii`, then
|
|
1514
|
+
`moderation`) whenever the brief's intent fits; use `ai_agent` only for custom
|
|
1515
|
+
judgement that has no `pii.entities` / `moderation.categories` analogue — the full
|
|
1516
|
+
decision rule is on `type`.
|
|
1748
1517
|
- |-
|
|
1749
|
-
|
|
1750
|
-
`
|
|
1751
|
-
|
|
1518
|
+
Guardrails never invoke tools. A non-empty `tools` array anywhere under `aiAgent`
|
|
1519
|
+
(`aiAgent.tools`, `aiAgent.openai.tools`, `aiAgent.litellm._overrides.gemini.tools`,
|
|
1520
|
+
`aiAgent.litellm._overrides.anthropic.tools`) fails the save with 422
|
|
1521
|
+
`guardrail_tools_not_allowed`; MCP `prompts` and `resources` are still accepted.
|
|
1752
1522
|
properties:
|
|
1753
1523
|
type:
|
|
1754
1524
|
type: string
|
|
@@ -1860,9 +1630,10 @@ components:
|
|
|
1860
1630
|
aiAgent:
|
|
1861
1631
|
type: object
|
|
1862
1632
|
description: |-
|
|
1863
|
-
|
|
1864
|
-
`pii
|
|
1865
|
-
appear here — it is inert, and current servers strip it on
|
|
1633
|
+
LLM configuration for the check; set when `type` is `ai_agent` and validated
|
|
1634
|
+
against `GuardrailAiAgentConfig`. On `pii` / `moderation` guardrails a legacy
|
|
1635
|
+
server-written stub may appear here — it is inert, and current servers strip it on
|
|
1636
|
+
write.
|
|
1866
1637
|
pii:
|
|
1867
1638
|
type: object
|
|
1868
1639
|
required:
|
|
@@ -2082,7 +1853,7 @@ components:
|
|
|
2082
1853
|
- aiAgent
|
|
2083
1854
|
properties:
|
|
2084
1855
|
aiAgent:
|
|
2085
|
-
$ref: '#/components/schemas/
|
|
1856
|
+
$ref: '#/components/schemas/GuardrailAiAgentConfig'
|
|
2086
1857
|
MappingField:
|
|
2087
1858
|
type: object
|
|
2088
1859
|
description: One Mapper 1.0 field-mapping entry.
|
|
@@ -2355,7 +2126,7 @@ components:
|
|
|
2355
2126
|
type: string
|
|
2356
2127
|
format: objectId
|
|
2357
2128
|
x-celigo-refModel: connections
|
|
2358
|
-
description: BYOK connection backing an `ai_agent` guardrail. Absent when platform-managed credentials
|
|
2129
|
+
description: BYOK connection backing an `ai_agent` guardrail. Absent when a built-in provider runs on platform-managed credentials.
|
|
2359
2130
|
examples:
|
|
2360
2131
|
- 68ae48d6b5f755d2dd38c294
|
|
2361
2132
|
_sourceId:
|
|
@@ -2471,6 +2242,14 @@ components:
|
|
|
2471
2242
|
description: |-
|
|
2472
2243
|
Configuration for a guardrail import. `_connectionId` is only
|
|
2473
2244
|
required for BYOK `ai_agent` guardrails.
|
|
2245
|
+
x-celigo-ai-guidance:
|
|
2246
|
+
- |-
|
|
2247
|
+
Guardrails evaluate structured records only. Do not send the import-level `blob` or
|
|
2248
|
+
`blobKeyPath` fields — either one fails the save with 422 `not_supported`
|
|
2249
|
+
("Field "blob" is not supported for this import type").
|
|
2250
|
+
- |-
|
|
2251
|
+
Do not put a `tools` array anywhere under `guardrail.aiAgent` — a non-empty array on
|
|
2252
|
+
any provider block fails the save with 422 `guardrail_tools_not_allowed`.
|
|
2474
2253
|
properties:
|
|
2475
2254
|
name:
|
|
2476
2255
|
type: string
|
|
@@ -2489,7 +2268,12 @@ components:
|
|
|
2489
2268
|
type: string
|
|
2490
2269
|
format: objectId
|
|
2491
2270
|
x-celigo-refModel: connections
|
|
2492
|
-
description:
|
|
2271
|
+
description: |-
|
|
2272
|
+
Connection for BYOK (bring your own key) — only meaningful for `ai_agent` type
|
|
2273
|
+
guardrails. Optional for the built-in providers (`openai`, `gemini`, `anthropic`),
|
|
2274
|
+
which run on platform-managed credentials when it is omitted; catalog providers
|
|
2275
|
+
(`mistral`, `xai`, `huggingface`, `deepseek`, `cohere`, `groq`) have no platform-managed
|
|
2276
|
+
credentials and need it to run.
|
|
2493
2277
|
examples:
|
|
2494
2278
|
- 68ae48d6b5f755d2dd38c294
|
|
2495
2279
|
adaptorType:
|
|
@@ -2609,6 +2393,13 @@ components:
|
|
|
2609
2393
|
description: Display name of the dependent resource.
|
|
2610
2394
|
examples:
|
|
2611
2395
|
- Import Orders to NetSuite
|
|
2396
|
+
type:
|
|
2397
|
+
type: string
|
|
2398
|
+
description: |-
|
|
2399
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
2400
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
2401
|
+
examples:
|
|
2402
|
+
- stream
|
|
2612
2403
|
paths:
|
|
2613
2404
|
type: array
|
|
2614
2405
|
description: |-
|