agent-contracts-runtime 0.36.16 → 0.36.17

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 CHANGED
@@ -94,7 +94,7 @@ DSL-derived contracts
94
94
  ↓
95
95
  Agent SDK adapter
96
96
  ↓
97
- Claude / OpenAI Agents SDK / Google ADK / custom runner
97
+ Claude / OpenAI Agents SDK / custom runner
98
98
  ```
99
99
 
100
100
  Agent SDKs execute LLM agents. `agent-contracts-runtime` lets application code invoke reusable, DSL-defined agent workflows without hand-writing SDK-specific orchestration for each workflow.
@@ -263,7 +263,7 @@ const adapter = await createAdapter("claude", {
263
263
  });
264
264
  ```
265
265
 
266
- Accepted adapter names: `mock`, `claude`, `openai`, `gemini`.
266
+ Accepted adapter names: `mock`, `claude`, `openai`.
267
267
 
268
268
  The runtime provides three API levels:
269
269
 
@@ -595,7 +595,7 @@ runtime:
595
595
 
596
596
  ```bash
597
597
  agent-runtime run --file ./invocation.yaml --adapter claude
598
- # or: --adapter gemini, --adapter mock
598
+ # or: --adapter openai, --adapter mock
599
599
  ```
600
600
 
601
601
  For full CLI reference with exit codes and output schemas, see [docs/cli-reference.md](docs/cli-reference.md).
@@ -607,7 +607,6 @@ The CLI specification is managed contract-first via [`cli-contracts`](https://ww
607
607
  | Adapter | SDK | Status |
608
608
  |---------|-----|--------|
609
609
  | `claude` | Claude Agent SDK (`@anthropic-ai/claude-agent-sdk`) | Implemented |
610
- | `gemini` | Google ADK (`@google/adk`) | Implemented |
611
610
  | `openai` | OpenAI Agents SDK (`@openai/agents`) | Implemented |
612
611
  | `mock` | Simulated responses for testing/demo | Implemented |
613
612
 
@@ -722,59 +721,6 @@ Internally the adapter creates a fresh `Agent` for each `send()` call with the c
722
721
 
723
722
  > **Note:** `@openai/agents` requires `zod@^4.0.0` as a peer dependency. This runtime uses `zod@^4.0.0` natively.
724
723
 
725
- ### Google Gemini adapter
726
-
727
- The Gemini adapter wraps `@google/genai`, Google's TypeScript SDK for Gemini models.
728
-
729
- ```typescript
730
- import { GeminiSdkAdapter } from "agent-contracts-runtime/adapters/gemini-sdk";
731
-
732
- const adapter = new GeminiSdkAdapter({
733
- model: "gemini-2.5-flash", // optional, defaults to gemini-2.5-flash
734
- apiKey: process.env.GEMINI_API_KEY, // optional, falls back to env var
735
- temperature: 0.7, // optional
736
- maxOutputTokens: 8192, // optional
737
- guardrailHooks, // optional guardrail enforcement
738
- });
739
- ```
740
-
741
- Internally the adapter creates a chat session via `ai.chats.create()` for each `send()` call, then calls `chat.sendMessage()`. This maintains conversation state for `followUp()` within the same chat session.
742
-
743
- | Config option | Description | Default |
744
- |---------------|-------------|---------|
745
- | `apiKey` | Gemini API key (or set `GEMINI_API_KEY` env var) | Env var |
746
- | `model` | Model identifier (e.g. `"gemini-2.5-flash"`, `"gemini-2.5-pro"`) | `"gemini-2.5-flash"` |
747
- | `systemInstruction` | System instruction prepended to conversations | None |
748
- | `temperature` | Temperature for generation (0.0–2.0) | SDK default |
749
- | `maxOutputTokens` | Maximum output tokens | SDK default |
750
- | `guardrailHooks` | Runtime guardrail hooks (evaluated locally on responses) | None |
751
-
752
- > **Note:** The `gemini` adapter name routes to the ADK adapter (see below). `GeminiSdkAdapter` (`agent-contracts-runtime/adapters/gemini-sdk`) remains available as a legacy alias.
753
-
754
- ### Google ADK adapter
755
-
756
- The ADK adapter wraps `@google/adk` (Google Agent Development Kit), which provides native sub-agent routing via `LlmAgent.subAgents`. The `gemini` adapter name routes to this implementation.
757
-
758
- ```typescript
759
- import { AdkSdkAdapter } from "agent-contracts-runtime/adapters/adk-sdk";
760
-
761
- const adapter = new AdkSdkAdapter({
762
- model: "gemini-2.5-flash",
763
- apiKey: process.env.GEMINI_API_KEY,
764
- guardrailHooks,
765
- });
766
- ```
767
-
768
- | Config option | Description | Default |
769
- |---------------|-------------|---------|
770
- | `apiKey` | Gemini API key (or set `GEMINI_API_KEY` env var) | Env var |
771
- | `model` | Model identifier (e.g. `"gemini-2.5-flash"`) | `"gemini-2.5-flash"` |
772
- | `rootAgentName` | Name for the root agent | `"root_agent"` |
773
- | `guardrailHooks` | Runtime guardrail hooks | None |
774
- | `cacheConfig` | Prompt caching config `{ enabled: boolean }` | `{ enabled: true }` |
775
-
776
- > **Note:** The ADK adapter does not support `followUp()` (session resume). Recovery uses fresh `send()`.
777
-
778
724
  ## Handoff validation
779
725
 
780
726
  The runtime validates both input and output handoffs against generated Zod schemas.
@@ -967,8 +913,8 @@ templates_dir: ./custom-templates # optional, overrides built-in templa
967
913
 
968
914
  model_mapping: # optional, per-task LLM routing
969
915
  fast:
970
- adapter: gemini
971
- model: gemini-2.5-flash
916
+ adapter: openai
917
+ model: gpt-4.1-mini
972
918
  standard:
973
919
  adapter: claude
974
920
  model: claude-sonnet-4-20250514
@@ -996,7 +942,7 @@ Tasks in the DSL can declare a `model_class` (`fast`, `standard`, or `thinking`)
996
942
 
997
943
  Environment variable format is `adapter:model` (colon-separated). Omitting the model part (`claude:`) uses the adapter default. Omitting the adapter part (`claude-haiku`, no colon) uses the `--adapter` value.
998
944
 
999
- This enables cross-provider routing — e.g. fast tasks on Gemini, thinking tasks on Claude — within a single workflow execution.
945
+ This enables cross-provider routing — e.g. fast tasks on OpenAI, thinking tasks on Claude — within a single workflow execution.
1000
946
 
1001
947
  ## Exports
1002
948
 
@@ -1006,8 +952,6 @@ This enables cross-provider routing — e.g. fast tasks on Gemini, thinking task
1006
952
  | `agent-contracts-runtime` | Types (`WorkflowInvocation`, `HandoffInput`, `AgentExecutionRequest`, `WorkflowRegistries`, `SdkAdapter`, `ModelAwareSdkAdapterFactory`, `ModelResolver`, `ModelClass`, `TaskContext`, `TaskOutcome`, etc.) |
1007
953
  | `agent-contracts-runtime/generator` | Generator API (`generate`, `checkFreshness`, `buildContractContext`) |
1008
954
  | `agent-contracts-runtime/adapters/claude-agent-sdk` | Claude Agent SDK adapter |
1009
- | `agent-contracts-runtime/adapters/adk-sdk` | Google ADK adapter |
1010
- | `agent-contracts-runtime/adapters/gemini-sdk` | Google Gemini adapter (legacy alias) |
1011
955
  | `agent-contracts-runtime/adapters/openai-agents-sdk` | OpenAI Agents SDK adapter |
1012
956
  | `agent-contracts-runtime/adapters/mock` | Mock adapter for testing |
1013
957
 
@@ -1019,7 +963,6 @@ This enables cross-provider routing — e.g. fast tasks on Gemini, thinking task
1019
963
  |----------|---------|-------------|
1020
964
  | `ANTHROPIC_API_KEY` | `claude` | Anthropic Claude API key |
1021
965
  | `OPENAI_API_KEY` | `openai` | OpenAI API key |
1022
- | `GEMINI_API_KEY` | `gemini` | Google Gemini/ADK API key |
1023
966
 
1024
967
  ### Model Configuration
1025
968
 
@@ -1047,8 +990,6 @@ Tools that integrate with `agent-contracts-runtime` define their LLM agents, tas
1047
990
  - `tsx` (bundled as a dependency — used by the CLI to load generated `.ts` contracts and plugins at runtime)
1048
991
  - `agent-contracts` (optional peer dependency for DSL resolution)
1049
992
  - `@anthropic-ai/claude-agent-sdk` (optional, for Claude adapter — requires zod ^4.0.0)
1050
- - `@google/adk` (optional, for Gemini/ADK adapter)
1051
- - `@google/genai` (optional, for legacy Gemini adapter)
1052
993
  - `@openai/agents` (optional, for OpenAI adapter — requires zod ^4.0.0)
1053
994
 
1054
995
  ## License
package/cli-contract.yaml CHANGED
@@ -2,7 +2,7 @@ cli_contracts: 0.1.0
2
2
 
3
3
  info:
4
4
  title: agent-runtime CLI
5
- version: 0.36.16
5
+ version: 0.36.17
6
6
  description: |
7
7
  Runtime bridge for executing agent-contracts workflows on Agent SDKs.
8
8
  Generates typed contracts, handoff validators, and guardrail hooks from DSL,
@@ -55,7 +55,7 @@ command_sets:
55
55
  description: Default SDK adapter to configure.
56
56
  schema:
57
57
  type: string
58
- enum: [claude, gemini, openai, mock]
58
+ enum: [claude, openai, mock]
59
59
  default: mock
60
60
 
61
61
  - name: output
@@ -188,7 +188,7 @@ command_sets:
188
188
  description: SDK adapter to use. Overrides config.
189
189
  schema:
190
190
  type: string
191
- enum: [claude, gemini, openai, mock]
191
+ enum: [claude, openai, mock]
192
192
 
193
193
  - name: max-retries
194
194
  aliases: [r]