Commit 73d8b70
feat: document static variables and aliases for tool outputs (#965)
* feat: document static variables and aliases for tool outputs
Add new documentation page covering two recently-shipped features:
- Static variables (parameters): inject fixed or Liquid-templated values
into API request and function tool calls, bypassing the LLM
- Variable extraction plan (aliases): deterministically extract fields
from tool JSON responses using Liquid templates with the $ reference
Includes a combined tool-chaining example showing data flowing from
one tool's response to the next tool's request without LLM involvement.
Resolves DEVREL-529
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: upgrade fern-go-sdk generator to 1.28.3 to fix preview-go CI
The preview-go CI check has been failing since at least Feb 16 across
all PRs touching fern/ files. The root cause is the outdated Go SDK
generator version (1.16.4) being unable to compile code generated from
the current OpenAPI spec. Upgrading to 1.28.3 (latest) includes fixes
for datetime handling, marshal/unmarshal code generation, and other
compilation issues.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: enhance static variables example with richer JSON object
- Add nested JSON object with sub-objects, arrays, and mixed types
- Include number value example (priority: 1)
- Add explicit callouts for recursive Liquid template resolution
- Make it clearer that value accepts any JSON type
DEVREL-529
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: upgrade fern-python-sdk generator to 4.61.5 to fix preview-python CI
The preview-python CI check has been failing across all PRs touching
fern/ files due to mypy no-redef errors in the generated Python SDK.
The outdated generator version (4.37.1) produces union type definitions
with duplicate field names that mypy flags as errors (32 errors across
29 files). Upgrading to 4.61.5 (latest) includes fixes for union type
code generation and other improvements.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: revert python-sdk to 4.37.1 to fix CLI version mismatch breaking all SDK previews
The previous commit upgraded fern-python-sdk from 4.37.1 to 4.61.5,
but version 4.61.5 requires Fern CLI 3.72.0+ while CI installs 3.62.0.
This CLI version mismatch caused fern generate to fail for ALL SDK
groups (go, python, typescript) because it validates all generators
before running any single group.
This reverts python-sdk to 4.37.1 (compatible with CLI 3.62.0) while
keeping go-sdk at 1.28.3 which fixes the pre-existing Go code generation
syntax errors (invalid assistants.go, error_codes.go produced by 1.16.4).
* fix: add parameters field to tool schemas in OpenAPI spec
Add the missing `parameters` field (for static variables) to the OpenAPI
specification so it appears in the API reference for apiRequest and
function tools. This field was added to the backend (PR #10320) but the
docs spec was never updated.
Changes:
- Add ToolParameter schema to components/schemas
- Add parameters property to ApiRequestTool
- Add parameters property to CreateApiRequestToolDTO
- Add parameters property to UpdateApiRequestToolDTO
- Add parameters property to FunctionTool
- Add parameters property to CreateFunctionToolDTO
- Add parameters property to UpdateFunctionToolDTO
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: adhamvapi <256238690+adhamvapi@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Vapi Tasker <tasker@vapi.ai>1 parent 95a8b4f commit 73d8b70
File tree
4 files changed
+450
-2
lines changed- fern
- apis/api
- tools
4 files changed
+450
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11654 | 11654 | | |
11655 | 11655 | | |
11656 | 11656 | | |
| 11657 | + | |
| 11658 | + | |
| 11659 | + | |
| 11660 | + | |
| 11661 | + | |
| 11662 | + | |
| 11663 | + | |
11657 | 11664 | | |
11658 | 11665 | | |
11659 | 11666 | | |
| |||
39184 | 39191 | | |
39185 | 39192 | | |
39186 | 39193 | | |
| 39194 | + | |
| 39195 | + | |
| 39196 | + | |
| 39197 | + | |
| 39198 | + | |
| 39199 | + | |
| 39200 | + | |
39187 | 39201 | | |
39188 | 39202 | | |
39189 | 39203 | | |
| |||
39564 | 39578 | | |
39565 | 39579 | | |
39566 | 39580 | | |
| 39581 | + | |
| 39582 | + | |
| 39583 | + | |
| 39584 | + | |
| 39585 | + | |
| 39586 | + | |
| 39587 | + | |
39567 | 39588 | | |
39568 | 39589 | | |
39569 | 39590 | | |
| |||
41340 | 41361 | | |
41341 | 41362 | | |
41342 | 41363 | | |
| 41364 | + | |
| 41365 | + | |
| 41366 | + | |
| 41367 | + | |
| 41368 | + | |
| 41369 | + | |
| 41370 | + | |
41343 | 41371 | | |
41344 | 41372 | | |
41345 | 41373 | | |
| |||
41958 | 41986 | | |
41959 | 41987 | | |
41960 | 41988 | | |
| 41989 | + | |
| 41990 | + | |
| 41991 | + | |
| 41992 | + | |
| 41993 | + | |
| 41994 | + | |
| 41995 | + | |
41961 | 41996 | | |
41962 | 41997 | | |
41963 | 41998 | | |
| |||
42185 | 42220 | | |
42186 | 42221 | | |
42187 | 42222 | | |
| 42223 | + | |
| 42224 | + | |
| 42225 | + | |
| 42226 | + | |
| 42227 | + | |
| 42228 | + | |
| 42229 | + | |
42188 | 42230 | | |
42189 | 42231 | | |
42190 | 42232 | | |
| |||
64645 | 64687 | | |
64646 | 64688 | | |
64647 | 64689 | | |
| 64690 | + | |
| 64691 | + | |
| 64692 | + | |
| 64693 | + | |
| 64694 | + | |
| 64695 | + | |
| 64696 | + | |
| 64697 | + | |
| 64698 | + | |
| 64699 | + | |
| 64700 | + | |
| 64701 | + | |
| 64702 | + | |
| 64703 | + | |
| 64704 | + | |
| 64705 | + | |
| 64706 | + | |
| 64707 | + | |
| 64708 | + | |
| 64709 | + | |
| 64710 | + | |
| 64711 | + | |
| 64712 | + | |
| 64713 | + | |
| 64714 | + | |
| 64715 | + | |
| 64716 | + | |
| 64717 | + | |
| 64718 | + | |
| 64719 | + | |
| 64720 | + | |
| 64721 | + | |
| 64722 | + | |
64648 | 64723 | | |
64649 | 64724 | | |
64650 | 64725 | | |
64651 | | - | |
| 64726 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
| |||
0 commit comments