From c04dcbddb6218dfb6fdb0b120dfab3aa52b5fb99 Mon Sep 17 00:00:00 2001 From: moonyue-w <300878504+moonyue-w@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:38:00 +0800 Subject: [PATCH 1/5] feat(docs): deterministic API reference generator via pinned gomarkdoc Add internal/docs Go tool that shells out to gomarkdoc@v1.1.0 with --repository.default-branch main, wipes docs/api/ and rewrites a single docs/api/reference.md, then post-processes to strip #Lxx line anchors so the committed reference is a byte-stable artifact of the current commit. New Makefile targets: docs / docs-check / lint. docs-check is stubbed and implemented in the follow-up task. Discovery spike observations (retained in the task ledger): - source links only appear with explicit --repository.* flags - all 3802 QoderAI URLs land on blob/main/... with #Lxx(-Lyy) anchors - two runs at the same commit + Go toolchain are byte-identical - no timestamps / absolute paths / user identifiers observed Task: 1789870148 --- Makefile | 25 +- docs/api/reference.md | 66239 +++++++++++++++++++++++++++ internal/docs/cmd/generate/main.go | 17 + internal/docs/generate.go | 116 + internal/docs/generate_test.go | 58 + 5 files changed, 66454 insertions(+), 1 deletion(-) create mode 100644 docs/api/reference.md create mode 100644 internal/docs/cmd/generate/main.go create mode 100644 internal/docs/generate.go create mode 100644 internal/docs/generate_test.go diff --git a/Makefile b/Makefile index d927dda..006eed1 100644 --- a/Makefile +++ b/Makefile @@ -2,11 +2,34 @@ PYTHON ?= python3 LIVE_ENV_FILE ?= .env.live .DEFAULT_GOAL := test -.PHONY: build test test-unit test-contract test-live test-live-check test-live-managed test-live-managed-check test-live-all check-version +.PHONY: build test test-unit test-contract test-live test-live-check test-live-managed test-live-managed-check test-live-all check-version docs docs-check lint build: go build ./... +# Regenerate the committed API reference from source (public forward / managed +# / convention packages via a pinned gomarkdoc; see internal/docs). +docs: + go run ./internal/docs/cmd/generate + +# Drift + normalization + coarse core-surface + internal-link gate. Red when +# committed docs/api/reference.md lags source, when any source link still +# carries a #Lxx anchor, when the core public surface is missing from the +# output, or when an internal relative link is broken. +docs-check: + go run ./internal/docs/cmd/check + +# gofmt + go vet gate. Fails if any tracked .go file is not gofmt'd or if vet +# reports a diagnostic. Wired into the CI matrix (see .github/workflows/ci.yml). +lint: + @unformatted=$$(gofmt -l .); \ + if test -n "$$unformatted"; then \ + echo "gofmt reports unformatted files:" >&2; \ + echo "$$unformatted" >&2; \ + exit 1; \ + fi + go vet ./... + # Run before tagging a release: the reported version is a compile-time constant, # so tagging without bumping it makes the SDK report a version it is not. check-version: diff --git a/docs/api/reference.md b/docs/api/reference.md new file mode 100644 index 0000000..5137f36 --- /dev/null +++ b/docs/api/reference.md @@ -0,0 +1,66239 @@ + + +# forward + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/forward" +``` + +## Index + +- [Constants](<#constants>) +- [func Bool\(v bool\) param.Opt\[bool\]](<#Bool>) +- [func Float\(v float64\) param.Opt\[float64\]](<#Float>) +- [func Int\(v int64\) param.Opt\[int64\]](<#Int>) +- [func String\(v string\) param.Opt\[string\]](<#String>) +- [type Batch](<#Batch>) + - [func \(r Batch\) RawJSON\(\) string](<#Batch.RawJSON>) + - [func \(r \*Batch\) UnmarshalJSON\(data \[\]byte\) error](<#Batch.UnmarshalJSON>) +- [type BatchCancelParams](<#BatchCancelParams>) + - [func \(r BatchCancelParams\) URLQuery\(\) \(url.Values, error\)](<#BatchCancelParams.URLQuery>) +- [type BatchFile](<#BatchFile>) + - [func \(r BatchFile\) RawJSON\(\) string](<#BatchFile.RawJSON>) + - [func \(r \*BatchFile\) UnmarshalJSON\(data \[\]byte\) error](<#BatchFile.UnmarshalJSON>) +- [type BatchListParams](<#BatchListParams>) + - [func \(r BatchListParams\) URLQuery\(\) \(url.Values, error\)](<#BatchListParams.URLQuery>) +- [type BatchNewParams](<#BatchNewParams>) + - [func \(r BatchNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#BatchNewParams.MarshalJSON>) + - [func \(r \*BatchNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#BatchNewParams.UnmarshalJSON>) +- [type BatchRequestCounts](<#BatchRequestCounts>) + - [func \(r BatchRequestCounts\) RawJSON\(\) string](<#BatchRequestCounts.RawJSON>) + - [func \(r \*BatchRequestCounts\) UnmarshalJSON\(data \[\]byte\) error](<#BatchRequestCounts.UnmarshalJSON>) +- [type BatchService](<#BatchService>) + - [func NewBatchService\(opts ...option.RequestOption\) BatchService](<#NewBatchService>) + - [func \(r \*BatchService\) Cancel\(ctx context.Context, batchID string, params BatchCancelParams, opts ...option.RequestOption\) \(res \*Batch, err error\)](<#BatchService.Cancel>) + - [func \(r \*BatchService\) Get\(ctx context.Context, batchID string, opts ...option.RequestOption\) \(res \*Batch, err error\)](<#BatchService.Get>) + - [func \(r \*BatchService\) GetError\(ctx context.Context, batchID string, opts ...option.RequestOption\) \(res \*BatchFile, err error\)](<#BatchService.GetError>) + - [func \(r \*BatchService\) GetOutput\(ctx context.Context, batchID string, opts ...option.RequestOption\) \(res \*BatchFile, err error\)](<#BatchService.GetOutput>) + - [func \(r \*BatchService\) List\(ctx context.Context, params BatchListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Batch\], err error\)](<#BatchService.List>) + - [func \(r \*BatchService\) ListAutoPaging\(ctx context.Context, params BatchListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Batch\]](<#BatchService.ListAutoPaging>) + - [func \(r \*BatchService\) New\(ctx context.Context, params BatchNewParams, opts ...option.RequestOption\) \(res \*Batch, err error\)](<#BatchService.New>) +- [type BatchTask](<#BatchTask>) + - [func \(r BatchTask\) RawJSON\(\) string](<#BatchTask.RawJSON>) + - [func \(r \*BatchTask\) UnmarshalJSON\(data \[\]byte\) error](<#BatchTask.UnmarshalJSON>) +- [type BatchTaskArtifactsItem](<#BatchTaskArtifactsItem>) + - [func \(r BatchTaskArtifactsItem\) RawJSON\(\) string](<#BatchTaskArtifactsItem.RawJSON>) + - [func \(r \*BatchTaskArtifactsItem\) UnmarshalJSON\(data \[\]byte\) error](<#BatchTaskArtifactsItem.UnmarshalJSON>) +- [type BatchTaskError](<#BatchTaskError>) + - [func \(r BatchTaskError\) RawJSON\(\) string](<#BatchTaskError.RawJSON>) + - [func \(r \*BatchTaskError\) UnmarshalJSON\(data \[\]byte\) error](<#BatchTaskError.UnmarshalJSON>) +- [type BatchTaskListParams](<#BatchTaskListParams>) + - [func \(r BatchTaskListParams\) URLQuery\(\) \(url.Values, error\)](<#BatchTaskListParams.URLQuery>) +- [type BatchTaskService](<#BatchTaskService>) + - [func NewBatchTaskService\(opts ...option.RequestOption\) BatchTaskService](<#NewBatchTaskService>) + - [func \(r \*BatchTaskService\) List\(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[BatchTask\], err error\)](<#BatchTaskService.List>) + - [func \(r \*BatchTaskService\) ListAutoPaging\(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[BatchTask\]](<#BatchTaskService.ListAutoPaging>) +- [type BatchTaskUsage](<#BatchTaskUsage>) + - [func \(r BatchTaskUsage\) RawJSON\(\) string](<#BatchTaskUsage.RawJSON>) + - [func \(r \*BatchTaskUsage\) UnmarshalJSON\(data \[\]byte\) error](<#BatchTaskUsage.UnmarshalJSON>) +- [type BatchUsage](<#BatchUsage>) + - [func \(r BatchUsage\) RawJSON\(\) string](<#BatchUsage.RawJSON>) + - [func \(r \*BatchUsage\) UnmarshalJSON\(data \[\]byte\) error](<#BatchUsage.UnmarshalJSON>) +- [type Channel](<#Channel>) + - [func \(r Channel\) RawJSON\(\) string](<#Channel.RawJSON>) + - [func \(r \*Channel\) UnmarshalJSON\(data \[\]byte\) error](<#Channel.UnmarshalJSON>) +- [type ChannelChannelConfig](<#ChannelChannelConfig>) + - [func \(r ChannelChannelConfig\) RawJSON\(\) string](<#ChannelChannelConfig.RawJSON>) + - [func \(r \*ChannelChannelConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelChannelConfig.UnmarshalJSON>) +- [type ChannelChannelConfigResponseOptions](<#ChannelChannelConfigResponseOptions>) + - [func \(r ChannelChannelConfigResponseOptions\) RawJSON\(\) string](<#ChannelChannelConfigResponseOptions.RawJSON>) + - [func \(r \*ChannelChannelConfigResponseOptions\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelChannelConfigResponseOptions.UnmarshalJSON>) +- [type ChannelIdentityResolution](<#ChannelIdentityResolution>) + - [func \(r ChannelIdentityResolution\) RawJSON\(\) string](<#ChannelIdentityResolution.RawJSON>) + - [func \(r \*ChannelIdentityResolution\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelIdentityResolution.UnmarshalJSON>) +- [type ChannelListParams](<#ChannelListParams>) + - [func \(r ChannelListParams\) URLQuery\(\) \(url.Values, error\)](<#ChannelListParams.URLQuery>) +- [type ChannelNewParams](<#ChannelNewParams>) + - [func \(r ChannelNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChannelNewParams.MarshalJSON>) + - [func \(r \*ChannelNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelNewParams.UnmarshalJSON>) +- [type ChannelPairing](<#ChannelPairing>) + - [func \(r ChannelPairing\) RawJSON\(\) string](<#ChannelPairing.RawJSON>) + - [func \(r \*ChannelPairing\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelPairing.UnmarshalJSON>) +- [type ChannelPairingNewParams](<#ChannelPairingNewParams>) + - [func \(r ChannelPairingNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChannelPairingNewParams.MarshalJSON>) + - [func \(r \*ChannelPairingNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelPairingNewParams.UnmarshalJSON>) +- [type ChannelPairingService](<#ChannelPairingService>) + - [func NewChannelPairingService\(opts ...option.RequestOption\) ChannelPairingService](<#NewChannelPairingService>) + - [func \(r \*ChannelPairingService\) Delete\(ctx context.Context, pairingID string, opts ...option.RequestOption\) \(res \*DeletedChannelPairing, err error\)](<#ChannelPairingService.Delete>) + - [func \(r \*ChannelPairingService\) New\(ctx context.Context, params ChannelPairingNewParams, opts ...option.RequestOption\) \(res \*ChannelPairing, err error\)](<#ChannelPairingService.New>) +- [type ChannelQRSession](<#ChannelQRSession>) + - [func \(r ChannelQRSession\) RawJSON\(\) string](<#ChannelQRSession.RawJSON>) + - [func \(r \*ChannelQRSession\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelQRSession.UnmarshalJSON>) +- [type ChannelQRSessionNewParams](<#ChannelQRSessionNewParams>) + - [func \(r ChannelQRSessionNewParams\) URLQuery\(\) \(url.Values, error\)](<#ChannelQRSessionNewParams.URLQuery>) +- [type ChannelQRSessionService](<#ChannelQRSessionService>) + - [func NewChannelQRSessionService\(opts ...option.RequestOption\) ChannelQRSessionService](<#NewChannelQRSessionService>) + - [func \(r \*ChannelQRSessionService\) Get\(ctx context.Context, sessionKey string, opts ...option.RequestOption\) \(res \*ChannelQRSession, err error\)](<#ChannelQRSessionService.Get>) + - [func \(r \*ChannelQRSessionService\) New\(ctx context.Context, channelID string, params ChannelQRSessionNewParams, opts ...option.RequestOption\) \(res \*ChannelQRSession, err error\)](<#ChannelQRSessionService.New>) +- [type ChannelService](<#ChannelService>) + - [func NewChannelService\(opts ...option.RequestOption\) ChannelService](<#NewChannelService>) + - [func \(r \*ChannelService\) Delete\(ctx context.Context, channelID string, opts ...option.RequestOption\) \(res \*DeletedChannel, err error\)](<#ChannelService.Delete>) + - [func \(r \*ChannelService\) Get\(ctx context.Context, channelID string, opts ...option.RequestOption\) \(res \*Channel, err error\)](<#ChannelService.Get>) + - [func \(r \*ChannelService\) List\(ctx context.Context, params ChannelListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Channel\], err error\)](<#ChannelService.List>) + - [func \(r \*ChannelService\) ListAutoPaging\(ctx context.Context, params ChannelListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Channel\]](<#ChannelService.ListAutoPaging>) + - [func \(r \*ChannelService\) New\(ctx context.Context, params ChannelNewParams, opts ...option.RequestOption\) \(res \*Channel, err error\)](<#ChannelService.New>) + - [func \(r \*ChannelService\) Update\(ctx context.Context, channelID string, params ChannelUpdateParams, opts ...option.RequestOption\) \(res \*Channel, err error\)](<#ChannelService.Update>) +- [type ChannelUpdateParams](<#ChannelUpdateParams>) + - [func \(r ChannelUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ChannelUpdateParams.MarshalJSON>) + - [func \(r \*ChannelUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ChannelUpdateParams.UnmarshalJSON>) +- [type Client](<#Client>) + - [func NewClient\(opts ...option.RequestOption\) Client](<#NewClient>) +- [type ContentBlock](<#ContentBlock>) + - [func \(r ContentBlock\) RawJSON\(\) string](<#ContentBlock.RawJSON>) + - [func \(r \*ContentBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ContentBlock.UnmarshalJSON>) +- [type ContentBlockParam](<#ContentBlockParam>) + - [func \(r ContentBlockParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockParam.MarshalJSON>) + - [func \(r \*ContentBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ContentBlockParam.UnmarshalJSON>) +- [type DeletedChannel](<#DeletedChannel>) + - [func \(r DeletedChannel\) RawJSON\(\) string](<#DeletedChannel.RawJSON>) + - [func \(r \*DeletedChannel\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedChannel.UnmarshalJSON>) +- [type DeletedChannelPairing](<#DeletedChannelPairing>) + - [func \(r DeletedChannelPairing\) RawJSON\(\) string](<#DeletedChannelPairing.RawJSON>) + - [func \(r \*DeletedChannelPairing\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedChannelPairing.UnmarshalJSON>) +- [type DeletedIdentity](<#DeletedIdentity>) + - [func \(r DeletedIdentity\) RawJSON\(\) string](<#DeletedIdentity.RawJSON>) + - [func \(r \*DeletedIdentity\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedIdentity.UnmarshalJSON>) +- [type DeletedMemory](<#DeletedMemory>) + - [func \(r DeletedMemory\) RawJSON\(\) string](<#DeletedMemory.RawJSON>) + - [func \(r \*DeletedMemory\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedMemory.UnmarshalJSON>) +- [type DeletedMemoryStore](<#DeletedMemoryStore>) + - [func \(r DeletedMemoryStore\) RawJSON\(\) string](<#DeletedMemoryStore.RawJSON>) + - [func \(r \*DeletedMemoryStore\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedMemoryStore.UnmarshalJSON>) +- [type DeletedMemoryStoreMount](<#DeletedMemoryStoreMount>) + - [func \(r DeletedMemoryStoreMount\) RawJSON\(\) string](<#DeletedMemoryStoreMount.RawJSON>) + - [func \(r \*DeletedMemoryStoreMount\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedMemoryStoreMount.UnmarshalJSON>) +- [type DeletedSkillVersion](<#DeletedSkillVersion>) + - [func \(r DeletedSkillVersion\) RawJSON\(\) string](<#DeletedSkillVersion.RawJSON>) + - [func \(r \*DeletedSkillVersion\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedSkillVersion.UnmarshalJSON>) +- [type EffectiveConfig](<#EffectiveConfig>) + - [func \(r EffectiveConfig\) RawJSON\(\) string](<#EffectiveConfig.RawJSON>) + - [func \(r \*EffectiveConfig\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfig.UnmarshalJSON>) +- [type EffectiveConfigAgent](<#EffectiveConfigAgent>) + - [func \(r EffectiveConfigAgent\) RawJSON\(\) string](<#EffectiveConfigAgent.RawJSON>) + - [func \(r \*EffectiveConfigAgent\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfigAgent.UnmarshalJSON>) +- [type EffectiveConfigAgentToolsItem](<#EffectiveConfigAgentToolsItem>) + - [func \(r EffectiveConfigAgentToolsItem\) RawJSON\(\) string](<#EffectiveConfigAgentToolsItem.RawJSON>) + - [func \(r \*EffectiveConfigAgentToolsItem\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfigAgentToolsItem.UnmarshalJSON>) +- [type EffectiveConfigAgentToolsItemConfigsItem](<#EffectiveConfigAgentToolsItemConfigsItem>) + - [func \(r EffectiveConfigAgentToolsItemConfigsItem\) RawJSON\(\) string](<#EffectiveConfigAgentToolsItemConfigsItem.RawJSON>) + - [func \(r \*EffectiveConfigAgentToolsItemConfigsItem\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfigAgentToolsItemConfigsItem.UnmarshalJSON>) +- [type EffectiveConfigSession](<#EffectiveConfigSession>) + - [func \(r EffectiveConfigSession\) RawJSON\(\) string](<#EffectiveConfigSession.RawJSON>) + - [func \(r \*EffectiveConfigSession\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfigSession.UnmarshalJSON>) +- [type EffectiveConfigSessionResourcesItem](<#EffectiveConfigSessionResourcesItem>) + - [func \(r EffectiveConfigSessionResourcesItem\) RawJSON\(\) string](<#EffectiveConfigSessionResourcesItem.RawJSON>) + - [func \(r \*EffectiveConfigSessionResourcesItem\) UnmarshalJSON\(data \[\]byte\) error](<#EffectiveConfigSessionResourcesItem.UnmarshalJSON>) +- [type Environment](<#Environment>) + - [func \(r Environment\) RawJSON\(\) string](<#Environment.RawJSON>) + - [func \(r \*Environment\) UnmarshalJSON\(data \[\]byte\) error](<#Environment.UnmarshalJSON>) +- [type EnvironmentConfig](<#EnvironmentConfig>) + - [func \(r EnvironmentConfig\) RawJSON\(\) string](<#EnvironmentConfig.RawJSON>) + - [func \(r \*EnvironmentConfig\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentConfig.UnmarshalJSON>) +- [type EnvironmentConfigPackages](<#EnvironmentConfigPackages>) + - [func \(r EnvironmentConfigPackages\) RawJSON\(\) string](<#EnvironmentConfigPackages.RawJSON>) + - [func \(r \*EnvironmentConfigPackages\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentConfigPackages.UnmarshalJSON>) +- [type EnvironmentListParams](<#EnvironmentListParams>) + - [func \(r EnvironmentListParams\) URLQuery\(\) \(url.Values, error\)](<#EnvironmentListParams.URLQuery>) +- [type EnvironmentNewParams](<#EnvironmentNewParams>) + - [func \(r EnvironmentNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentNewParams.MarshalJSON>) + - [func \(r \*EnvironmentNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentNewParams.UnmarshalJSON>) +- [type EnvironmentService](<#EnvironmentService>) + - [func NewEnvironmentService\(opts ...option.RequestOption\) EnvironmentService](<#NewEnvironmentService>) + - [func \(r \*EnvironmentService\) Archive\(ctx context.Context, id string, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Archive>) + - [func \(r \*EnvironmentService\) Delete\(ctx context.Context, id string, opts ...option.RequestOption\) \(err error\)](<#EnvironmentService.Delete>) + - [func \(r \*EnvironmentService\) Get\(ctx context.Context, id string, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Get>) + - [func \(r \*EnvironmentService\) List\(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Environment\], err error\)](<#EnvironmentService.List>) + - [func \(r \*EnvironmentService\) ListAutoPaging\(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Environment\]](<#EnvironmentService.ListAutoPaging>) + - [func \(r \*EnvironmentService\) New\(ctx context.Context, params EnvironmentNewParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.New>) + - [func \(r \*EnvironmentService\) Update\(ctx context.Context, id string, params EnvironmentUpdateParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Update>) +- [type EnvironmentUpdateParams](<#EnvironmentUpdateParams>) + - [func \(r EnvironmentUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentUpdateParams.MarshalJSON>) + - [func \(r \*EnvironmentUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentUpdateParams.UnmarshalJSON>) +- [type EnvironmentVariableOverride](<#EnvironmentVariableOverride>) + - [func \(r EnvironmentVariableOverride\) RawJSON\(\) string](<#EnvironmentVariableOverride.RawJSON>) + - [func \(r \*EnvironmentVariableOverride\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentVariableOverride.UnmarshalJSON>) +- [type EnvironmentVariableOverrideParam](<#EnvironmentVariableOverrideParam>) + - [func \(r EnvironmentVariableOverrideParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentVariableOverrideParam.MarshalJSON>) + - [func \(r \*EnvironmentVariableOverrideParam\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentVariableOverrideParam.UnmarshalJSON>) +- [type EnvironmentVariablesUnionParam](<#EnvironmentVariablesUnionParam>) + - [func \(r EnvironmentVariablesUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentVariablesUnionParam.MarshalJSON>) + - [func \(r \*EnvironmentVariablesUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentVariablesUnionParam.UnmarshalJSON>) +- [type Error](<#Error>) +- [type EventContentUnionParam](<#EventContentUnionParam>) + - [func \(r EventContentUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#EventContentUnionParam.MarshalJSON>) + - [func \(r \*EventContentUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#EventContentUnionParam.UnmarshalJSON>) +- [type FileListParams](<#FileListParams>) + - [func \(r FileListParams\) URLQuery\(\) \(url.Values, error\)](<#FileListParams.URLQuery>) +- [type FileMetadata](<#FileMetadata>) + - [func \(r FileMetadata\) RawJSON\(\) string](<#FileMetadata.RawJSON>) + - [func \(r \*FileMetadata\) UnmarshalJSON\(data \[\]byte\) error](<#FileMetadata.UnmarshalJSON>) +- [type FileService](<#FileService>) + - [func NewFileService\(opts ...option.RequestOption\) FileService](<#NewFileService>) + - [func \(r \*FileService\) Delete\(ctx context.Context, fileID string, opts ...option.RequestOption\) \(err error\)](<#FileService.Delete>) + - [func \(r \*FileService\) Download\(ctx context.Context, fileID string, opts ...option.RequestOption\) \(res \*http.Response, err error\)](<#FileService.Download>) + - [func \(r \*FileService\) GetMetadata\(ctx context.Context, fileID string, opts ...option.RequestOption\) \(res \*FileMetadata, err error\)](<#FileService.GetMetadata>) + - [func \(r \*FileService\) List\(ctx context.Context, params FileListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[FileMetadata\], err error\)](<#FileService.List>) + - [func \(r \*FileService\) ListAutoPaging\(ctx context.Context, params FileListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[FileMetadata\]](<#FileService.ListAutoPaging>) + - [func \(r \*FileService\) Upload\(ctx context.Context, params FileUploadParams, opts ...option.RequestOption\) \(res \*FileMetadata, err error\)](<#FileService.Upload>) +- [type FileUploadParams](<#FileUploadParams>) + - [func \(r FileUploadParams\) MarshalMultipart\(\) \(\[\]byte, string, error\)](<#FileUploadParams.MarshalMultipart>) +- [type GitHubRepository](<#GitHubRepository>) + - [func \(r GitHubRepository\) RawJSON\(\) string](<#GitHubRepository.RawJSON>) + - [func \(r \*GitHubRepository\) UnmarshalJSON\(data \[\]byte\) error](<#GitHubRepository.UnmarshalJSON>) +- [type GitHubRepositoryParam](<#GitHubRepositoryParam>) + - [func \(r GitHubRepositoryParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#GitHubRepositoryParam.MarshalJSON>) + - [func \(r \*GitHubRepositoryParam\) UnmarshalJSON\(data \[\]byte\) error](<#GitHubRepositoryParam.UnmarshalJSON>) +- [type Identity](<#Identity>) + - [func \(r Identity\) RawJSON\(\) string](<#Identity.RawJSON>) + - [func \(r \*Identity\) UnmarshalJSON\(data \[\]byte\) error](<#Identity.UnmarshalJSON>) +- [type IdentityClearParams](<#IdentityClearParams>) + - [func \(r IdentityClearParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityClearParams.MarshalJSON>) + - [func \(r \*IdentityClearParams\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityClearParams.UnmarshalJSON>) +- [type IdentityClearResponse](<#IdentityClearResponse>) + - [func \(r IdentityClearResponse\) RawJSON\(\) string](<#IdentityClearResponse.RawJSON>) + - [func \(r \*IdentityClearResponse\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityClearResponse.UnmarshalJSON>) +- [type IdentityClearResponseSummary](<#IdentityClearResponseSummary>) + - [func \(r IdentityClearResponseSummary\) RawJSON\(\) string](<#IdentityClearResponseSummary.RawJSON>) + - [func \(r \*IdentityClearResponseSummary\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityClearResponseSummary.UnmarshalJSON>) +- [type IdentityConfig](<#IdentityConfig>) + - [func \(r IdentityConfig\) RawJSON\(\) string](<#IdentityConfig.RawJSON>) + - [func \(r \*IdentityConfig\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityConfig.UnmarshalJSON>) +- [type IdentityConfigListParams](<#IdentityConfigListParams>) + - [func \(r IdentityConfigListParams\) URLQuery\(\) \(url.Values, error\)](<#IdentityConfigListParams.URLQuery>) +- [type IdentityConfigService](<#IdentityConfigService>) + - [func NewIdentityConfigService\(opts ...option.RequestOption\) IdentityConfigService](<#NewIdentityConfigService>) + - [func \(r \*IdentityConfigService\) Get\(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption\) \(res \*IdentityConfig, err error\)](<#IdentityConfigService.Get>) + - [func \(r \*IdentityConfigService\) GetEffective\(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption\) \(res \*EffectiveConfig, err error\)](<#IdentityConfigService.GetEffective>) + - [func \(r \*IdentityConfigService\) List\(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[IdentityConfig\], err error\)](<#IdentityConfigService.List>) + - [func \(r \*IdentityConfigService\) ListAutoPaging\(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[IdentityConfig\]](<#IdentityConfigService.ListAutoPaging>) + - [func \(r \*IdentityConfigService\) Upsert\(ctx context.Context, identityID string, templateID string, params IdentityConfigUpsertParams, opts ...option.RequestOption\) \(res \*IdentityConfig, err error\)](<#IdentityConfigService.Upsert>) +- [type IdentityConfigSpec](<#IdentityConfigSpec>) + - [func \(r IdentityConfigSpec\) RawJSON\(\) string](<#IdentityConfigSpec.RawJSON>) + - [func \(r \*IdentityConfigSpec\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityConfigSpec.UnmarshalJSON>) +- [type IdentityConfigSpecParam](<#IdentityConfigSpecParam>) + - [func \(r IdentityConfigSpecParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityConfigSpecParam.MarshalJSON>) + - [func \(r \*IdentityConfigSpecParam\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityConfigSpecParam.UnmarshalJSON>) +- [type IdentityConfigUpsertParams](<#IdentityConfigUpsertParams>) + - [func \(r IdentityConfigUpsertParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityConfigUpsertParams.MarshalJSON>) + - [func \(r \*IdentityConfigUpsertParams\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityConfigUpsertParams.UnmarshalJSON>) +- [type IdentityListParams](<#IdentityListParams>) + - [func \(r IdentityListParams\) URLQuery\(\) \(url.Values, error\)](<#IdentityListParams.URLQuery>) +- [type IdentityListTemplatesResponse](<#IdentityListTemplatesResponse>) + - [func \(r IdentityListTemplatesResponse\) RawJSON\(\) string](<#IdentityListTemplatesResponse.RawJSON>) + - [func \(r \*IdentityListTemplatesResponse\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityListTemplatesResponse.UnmarshalJSON>) +- [type IdentityMemoryStoreListResponse](<#IdentityMemoryStoreListResponse>) + - [func \(r IdentityMemoryStoreListResponse\) RawJSON\(\) string](<#IdentityMemoryStoreListResponse.RawJSON>) + - [func \(r \*IdentityMemoryStoreListResponse\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityMemoryStoreListResponse.UnmarshalJSON>) +- [type IdentityMemoryStoreMountParams](<#IdentityMemoryStoreMountParams>) + - [func \(r IdentityMemoryStoreMountParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityMemoryStoreMountParams.MarshalJSON>) + - [func \(r \*IdentityMemoryStoreMountParams\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityMemoryStoreMountParams.UnmarshalJSON>) +- [type IdentityMemoryStoreService](<#IdentityMemoryStoreService>) + - [func NewIdentityMemoryStoreService\(opts ...option.RequestOption\) IdentityMemoryStoreService](<#NewIdentityMemoryStoreService>) + - [func \(r \*IdentityMemoryStoreService\) Detach\(ctx context.Context, identityID string, templateID string, memoryStoreID string, opts ...option.RequestOption\) \(res \*DeletedMemoryStoreMount, err error\)](<#IdentityMemoryStoreService.Detach>) + - [func \(r \*IdentityMemoryStoreService\) List\(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption\) \(res \*IdentityMemoryStoreListResponse, err error\)](<#IdentityMemoryStoreService.List>) + - [func \(r \*IdentityMemoryStoreService\) Mount\(ctx context.Context, identityID string, templateID string, params IdentityMemoryStoreMountParams, opts ...option.RequestOption\) \(res \*MemoryStoreMount, err error\)](<#IdentityMemoryStoreService.Mount>) +- [type IdentityNewParams](<#IdentityNewParams>) + - [func \(r IdentityNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityNewParams.MarshalJSON>) + - [func \(r \*IdentityNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityNewParams.UnmarshalJSON>) +- [type IdentityService](<#IdentityService>) + - [func NewIdentityService\(opts ...option.RequestOption\) IdentityService](<#NewIdentityService>) + - [func \(r \*IdentityService\) Clear\(ctx context.Context, identityID string, params IdentityClearParams, opts ...option.RequestOption\) \(res \*IdentityClearResponse, err error\)](<#IdentityService.Clear>) + - [func \(r \*IdentityService\) Delete\(ctx context.Context, identityID string, opts ...option.RequestOption\) \(res \*DeletedIdentity, err error\)](<#IdentityService.Delete>) + - [func \(r \*IdentityService\) Disable\(ctx context.Context, identityID string, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.Disable>) + - [func \(r \*IdentityService\) Enable\(ctx context.Context, identityID string, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.Enable>) + - [func \(r \*IdentityService\) EnsureAdmin\(ctx context.Context, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.EnsureAdmin>) + - [func \(r \*IdentityService\) Get\(ctx context.Context, identityID string, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.Get>) + - [func \(r \*IdentityService\) List\(ctx context.Context, params IdentityListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Identity\], err error\)](<#IdentityService.List>) + - [func \(r \*IdentityService\) ListAutoPaging\(ctx context.Context, params IdentityListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Identity\]](<#IdentityService.ListAutoPaging>) + - [func \(r \*IdentityService\) ListTemplates\(ctx context.Context, identityID string, opts ...option.RequestOption\) \(res \*IdentityListTemplatesResponse, err error\)](<#IdentityService.ListTemplates>) + - [func \(r \*IdentityService\) New\(ctx context.Context, params IdentityNewParams, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.New>) + - [func \(r \*IdentityService\) Stats\(ctx context.Context, opts ...option.RequestOption\) \(res \*IdentityStats, err error\)](<#IdentityService.Stats>) + - [func \(r \*IdentityService\) Update\(ctx context.Context, identityID string, params IdentityUpdateParams, opts ...option.RequestOption\) \(res \*Identity, err error\)](<#IdentityService.Update>) +- [type IdentityStats](<#IdentityStats>) + - [func \(r IdentityStats\) RawJSON\(\) string](<#IdentityStats.RawJSON>) + - [func \(r \*IdentityStats\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityStats.UnmarshalJSON>) +- [type IdentityTemplate](<#IdentityTemplate>) + - [func \(r IdentityTemplate\) RawJSON\(\) string](<#IdentityTemplate.RawJSON>) + - [func \(r \*IdentityTemplate\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityTemplate.UnmarshalJSON>) +- [type IdentityUpdateParams](<#IdentityUpdateParams>) + - [func \(r IdentityUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#IdentityUpdateParams.MarshalJSON>) + - [func \(r \*IdentityUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#IdentityUpdateParams.UnmarshalJSON>) +- [type ImageSource](<#ImageSource>) + - [func \(r ImageSource\) RawJSON\(\) string](<#ImageSource.RawJSON>) + - [func \(r \*ImageSource\) UnmarshalJSON\(data \[\]byte\) error](<#ImageSource.UnmarshalJSON>) +- [type ImageSourceParam](<#ImageSourceParam>) + - [func \(r ImageSourceParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ImageSourceParam.MarshalJSON>) + - [func \(r \*ImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ImageSourceParam.UnmarshalJSON>) +- [type MCPServer](<#MCPServer>) + - [func \(r MCPServer\) RawJSON\(\) string](<#MCPServer.RawJSON>) + - [func \(r \*MCPServer\) UnmarshalJSON\(data \[\]byte\) error](<#MCPServer.UnmarshalJSON>) +- [type MCPServerOverride](<#MCPServerOverride>) + - [func \(r MCPServerOverride\) RawJSON\(\) string](<#MCPServerOverride.RawJSON>) + - [func \(r \*MCPServerOverride\) UnmarshalJSON\(data \[\]byte\) error](<#MCPServerOverride.UnmarshalJSON>) +- [type MCPServerOverrideParam](<#MCPServerOverrideParam>) + - [func \(r MCPServerOverrideParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPServerOverrideParam.MarshalJSON>) + - [func \(r \*MCPServerOverrideParam\) UnmarshalJSON\(data \[\]byte\) error](<#MCPServerOverrideParam.UnmarshalJSON>) +- [type MCPServerParam](<#MCPServerParam>) + - [func \(r MCPServerParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPServerParam.MarshalJSON>) + - [func \(r \*MCPServerParam\) UnmarshalJSON\(data \[\]byte\) error](<#MCPServerParam.UnmarshalJSON>) +- [type Memory](<#Memory>) + - [func \(r Memory\) RawJSON\(\) string](<#Memory.RawJSON>) + - [func \(r \*Memory\) UnmarshalJSON\(data \[\]byte\) error](<#Memory.UnmarshalJSON>) +- [type MemoryStore](<#MemoryStore>) + - [func \(r MemoryStore\) RawJSON\(\) string](<#MemoryStore.RawJSON>) + - [func \(r \*MemoryStore\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStore.UnmarshalJSON>) +- [type MemoryStoreListParams](<#MemoryStoreListParams>) + - [func \(r MemoryStoreListParams\) URLQuery\(\) \(url.Values, error\)](<#MemoryStoreListParams.URLQuery>) +- [type MemoryStoreMemoryListParams](<#MemoryStoreMemoryListParams>) + - [func \(r MemoryStoreMemoryListParams\) URLQuery\(\) \(url.Values, error\)](<#MemoryStoreMemoryListParams.URLQuery>) +- [type MemoryStoreMemoryNewParams](<#MemoryStoreMemoryNewParams>) + - [func \(r MemoryStoreMemoryNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreMemoryNewParams.MarshalJSON>) + - [func \(r \*MemoryStoreMemoryNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreMemoryNewParams.UnmarshalJSON>) +- [type MemoryStoreMemoryService](<#MemoryStoreMemoryService>) + - [func NewMemoryStoreMemoryService\(opts ...option.RequestOption\) MemoryStoreMemoryService](<#NewMemoryStoreMemoryService>) + - [func \(r \*MemoryStoreMemoryService\) Delete\(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption\) \(res \*DeletedMemory, err error\)](<#MemoryStoreMemoryService.Delete>) + - [func \(r \*MemoryStoreMemoryService\) Get\(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption\) \(res \*Memory, err error\)](<#MemoryStoreMemoryService.Get>) + - [func \(r \*MemoryStoreMemoryService\) List\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Memory\], err error\)](<#MemoryStoreMemoryService.List>) + - [func \(r \*MemoryStoreMemoryService\) ListAutoPaging\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Memory\]](<#MemoryStoreMemoryService.ListAutoPaging>) + - [func \(r \*MemoryStoreMemoryService\) New\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryNewParams, opts ...option.RequestOption\) \(res \*Memory, err error\)](<#MemoryStoreMemoryService.New>) + - [func \(r \*MemoryStoreMemoryService\) Update\(ctx context.Context, memoryStoreID string, memoryID string, params MemoryStoreMemoryUpdateParams, opts ...option.RequestOption\) \(res \*Memory, err error\)](<#MemoryStoreMemoryService.Update>) +- [type MemoryStoreMemoryUpdateParams](<#MemoryStoreMemoryUpdateParams>) + - [func \(r MemoryStoreMemoryUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreMemoryUpdateParams.MarshalJSON>) + - [func \(r \*MemoryStoreMemoryUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreMemoryUpdateParams.UnmarshalJSON>) +- [type MemoryStoreMemoryVersionListParams](<#MemoryStoreMemoryVersionListParams>) + - [func \(r MemoryStoreMemoryVersionListParams\) URLQuery\(\) \(url.Values, error\)](<#MemoryStoreMemoryVersionListParams.URLQuery>) +- [type MemoryStoreMemoryVersionService](<#MemoryStoreMemoryVersionService>) + - [func NewMemoryStoreMemoryVersionService\(opts ...option.RequestOption\) MemoryStoreMemoryVersionService](<#NewMemoryStoreMemoryVersionService>) + - [func \(r \*MemoryStoreMemoryVersionService\) Get\(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption\) \(res \*MemoryVersion, err error\)](<#MemoryStoreMemoryVersionService.Get>) + - [func \(r \*MemoryStoreMemoryVersionService\) List\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[MemoryVersion\], err error\)](<#MemoryStoreMemoryVersionService.List>) + - [func \(r \*MemoryStoreMemoryVersionService\) ListAutoPaging\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[MemoryVersion\]](<#MemoryStoreMemoryVersionService.ListAutoPaging>) + - [func \(r \*MemoryStoreMemoryVersionService\) Redact\(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption\) \(res \*MemoryVersion, err error\)](<#MemoryStoreMemoryVersionService.Redact>) +- [type MemoryStoreMount](<#MemoryStoreMount>) + - [func \(r MemoryStoreMount\) RawJSON\(\) string](<#MemoryStoreMount.RawJSON>) + - [func \(r \*MemoryStoreMount\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreMount.UnmarshalJSON>) +- [type MemoryStoreNewParams](<#MemoryStoreNewParams>) + - [func \(r MemoryStoreNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreNewParams.MarshalJSON>) + - [func \(r \*MemoryStoreNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreNewParams.UnmarshalJSON>) +- [type MemoryStoreService](<#MemoryStoreService>) + - [func NewMemoryStoreService\(opts ...option.RequestOption\) MemoryStoreService](<#NewMemoryStoreService>) + - [func \(r \*MemoryStoreService\) Archive\(ctx context.Context, memoryStoreID string, opts ...option.RequestOption\) \(res \*MemoryStore, err error\)](<#MemoryStoreService.Archive>) + - [func \(r \*MemoryStoreService\) Delete\(ctx context.Context, memoryStoreID string, opts ...option.RequestOption\) \(res \*DeletedMemoryStore, err error\)](<#MemoryStoreService.Delete>) + - [func \(r \*MemoryStoreService\) Get\(ctx context.Context, memoryStoreID string, opts ...option.RequestOption\) \(res \*MemoryStore, err error\)](<#MemoryStoreService.Get>) + - [func \(r \*MemoryStoreService\) List\(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[MemoryStore\], err error\)](<#MemoryStoreService.List>) + - [func \(r \*MemoryStoreService\) ListAutoPaging\(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[MemoryStore\]](<#MemoryStoreService.ListAutoPaging>) + - [func \(r \*MemoryStoreService\) New\(ctx context.Context, params MemoryStoreNewParams, opts ...option.RequestOption\) \(res \*MemoryStore, err error\)](<#MemoryStoreService.New>) + - [func \(r \*MemoryStoreService\) Update\(ctx context.Context, memoryStoreID string, params MemoryStoreUpdateParams, opts ...option.RequestOption\) \(res \*MemoryStore, err error\)](<#MemoryStoreService.Update>) +- [type MemoryStoreUpdateParams](<#MemoryStoreUpdateParams>) + - [func \(r MemoryStoreUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreUpdateParams.MarshalJSON>) + - [func \(r \*MemoryStoreUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreUpdateParams.UnmarshalJSON>) +- [type MemoryVersion](<#MemoryVersion>) + - [func \(r MemoryVersion\) RawJSON\(\) string](<#MemoryVersion.RawJSON>) + - [func \(r \*MemoryVersion\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryVersion.UnmarshalJSON>) +- [type Model](<#Model>) + - [func \(r Model\) RawJSON\(\) string](<#Model.RawJSON>) + - [func \(r \*Model\) UnmarshalJSON\(data \[\]byte\) error](<#Model.UnmarshalJSON>) +- [type ModelConfig](<#ModelConfig>) + - [func \(r ModelConfig\) RawJSON\(\) string](<#ModelConfig.RawJSON>) + - [func \(r \*ModelConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ModelConfig.UnmarshalJSON>) +- [type ModelConfigParam](<#ModelConfigParam>) + - [func \(r ModelConfigParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ModelConfigParam.MarshalJSON>) + - [func \(r \*ModelConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#ModelConfigParam.UnmarshalJSON>) +- [type ModelConfigUnionParam](<#ModelConfigUnionParam>) + - [func \(r ModelConfigUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ModelConfigUnionParam.MarshalJSON>) + - [func \(r \*ModelConfigUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ModelConfigUnionParam.UnmarshalJSON>) +- [type ModelListResponse](<#ModelListResponse>) + - [func \(r ModelListResponse\) RawJSON\(\) string](<#ModelListResponse.RawJSON>) + - [func \(r \*ModelListResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ModelListResponse.UnmarshalJSON>) +- [type ModelService](<#ModelService>) + - [func NewModelService\(opts ...option.RequestOption\) ModelService](<#NewModelService>) + - [func \(r \*ModelService\) List\(ctx context.Context, opts ...option.RequestOption\) \(res \*ModelListResponse, err error\)](<#ModelService.List>) +- [type MultiagentConfig](<#MultiagentConfig>) + - [func \(r MultiagentConfig\) RawJSON\(\) string](<#MultiagentConfig.RawJSON>) + - [func \(r \*MultiagentConfig\) UnmarshalJSON\(data \[\]byte\) error](<#MultiagentConfig.UnmarshalJSON>) +- [type MultiagentConfigParam](<#MultiagentConfigParam>) + - [func \(r MultiagentConfigParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#MultiagentConfigParam.MarshalJSON>) + - [func \(r \*MultiagentConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#MultiagentConfigParam.UnmarshalJSON>) +- [type MultiagentEntry](<#MultiagentEntry>) + - [func \(r MultiagentEntry\) RawJSON\(\) string](<#MultiagentEntry.RawJSON>) + - [func \(r \*MultiagentEntry\) UnmarshalJSON\(data \[\]byte\) error](<#MultiagentEntry.UnmarshalJSON>) +- [type MultiagentEntryParam](<#MultiagentEntryParam>) + - [func \(r MultiagentEntryParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#MultiagentEntryParam.MarshalJSON>) + - [func \(r \*MultiagentEntryParam\) UnmarshalJSON\(data \[\]byte\) error](<#MultiagentEntryParam.UnmarshalJSON>) +- [type PermissionPolicy](<#PermissionPolicy>) + - [func \(r PermissionPolicy\) RawJSON\(\) string](<#PermissionPolicy.RawJSON>) + - [func \(r \*PermissionPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#PermissionPolicy.UnmarshalJSON>) +- [type PermissionPolicyParam](<#PermissionPolicyParam>) + - [func \(r PermissionPolicyParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#PermissionPolicyParam.MarshalJSON>) + - [func \(r \*PermissionPolicyParam\) UnmarshalJSON\(data \[\]byte\) error](<#PermissionPolicyParam.UnmarshalJSON>) +- [type ResourceBinding](<#ResourceBinding>) + - [func \(r ResourceBinding\) RawJSON\(\) string](<#ResourceBinding.RawJSON>) + - [func \(r \*ResourceBinding\) UnmarshalJSON\(data \[\]byte\) error](<#ResourceBinding.UnmarshalJSON>) +- [type ResourceBindingParam](<#ResourceBindingParam>) + - [func \(r ResourceBindingParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ResourceBindingParam.MarshalJSON>) + - [func \(r \*ResourceBindingParam\) UnmarshalJSON\(data \[\]byte\) error](<#ResourceBindingParam.UnmarshalJSON>) +- [type ResumableSessionEventStream](<#ResumableSessionEventStream>) + - [func \(s \*ResumableSessionEventStream\) Close\(\) error](<#ResumableSessionEventStream.Close>) + - [func \(s \*ResumableSessionEventStream\) Current\(\) SessionEvent](<#ResumableSessionEventStream.Current>) + - [func \(s \*ResumableSessionEventStream\) Err\(\) error](<#ResumableSessionEventStream.Err>) + - [func \(s \*ResumableSessionEventStream\) LastEventID\(\) string](<#ResumableSessionEventStream.LastEventID>) + - [func \(s \*ResumableSessionEventStream\) Next\(\) bool](<#ResumableSessionEventStream.Next>) +- [type Schedule](<#Schedule>) + - [func \(r Schedule\) RawJSON\(\) string](<#Schedule.RawJSON>) + - [func \(r \*Schedule\) UnmarshalJSON\(data \[\]byte\) error](<#Schedule.UnmarshalJSON>) +- [type ScheduleArchiveManyParams](<#ScheduleArchiveManyParams>) + - [func \(r ScheduleArchiveManyParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ScheduleArchiveManyParams.MarshalJSON>) + - [func \(r \*ScheduleArchiveManyParams\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleArchiveManyParams.UnmarshalJSON>) +- [type ScheduleArchiveManyResponse](<#ScheduleArchiveManyResponse>) + - [func \(r ScheduleArchiveManyResponse\) RawJSON\(\) string](<#ScheduleArchiveManyResponse.RawJSON>) + - [func \(r \*ScheduleArchiveManyResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleArchiveManyResponse.UnmarshalJSON>) +- [type ScheduleArchiveParams](<#ScheduleArchiveParams>) + - [func \(r ScheduleArchiveParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleArchiveParams.URLQuery>) +- [type ScheduleExecution](<#ScheduleExecution>) + - [func \(r ScheduleExecution\) RawJSON\(\) string](<#ScheduleExecution.RawJSON>) + - [func \(r \*ScheduleExecution\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleExecution.UnmarshalJSON>) +- [type ScheduleInitialEventsItem](<#ScheduleInitialEventsItem>) + - [func \(r ScheduleInitialEventsItem\) RawJSON\(\) string](<#ScheduleInitialEventsItem.RawJSON>) + - [func \(r \*ScheduleInitialEventsItem\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleInitialEventsItem.UnmarshalJSON>) +- [type ScheduleListParams](<#ScheduleListParams>) + - [func \(r ScheduleListParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleListParams.URLQuery>) +- [type ScheduleNewParams](<#ScheduleNewParams>) + - [func \(r ScheduleNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ScheduleNewParams.MarshalJSON>) + - [func \(r \*ScheduleNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleNewParams.UnmarshalJSON>) +- [type SchedulePauseParams](<#SchedulePauseParams>) + - [func \(r SchedulePauseParams\) URLQuery\(\) \(url.Values, error\)](<#SchedulePauseParams.URLQuery>) +- [type SchedulePausedReason](<#SchedulePausedReason>) + - [func \(r SchedulePausedReason\) RawJSON\(\) string](<#SchedulePausedReason.RawJSON>) + - [func \(r \*SchedulePausedReason\) UnmarshalJSON\(data \[\]byte\) error](<#SchedulePausedReason.UnmarshalJSON>) +- [type ScheduleRun](<#ScheduleRun>) + - [func \(r ScheduleRun\) RawJSON\(\) string](<#ScheduleRun.RawJSON>) + - [func \(r \*ScheduleRun\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleRun.UnmarshalJSON>) +- [type ScheduleRunGetParams](<#ScheduleRunGetParams>) + - [func \(r ScheduleRunGetParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleRunGetParams.URLQuery>) +- [type ScheduleRunListParams](<#ScheduleRunListParams>) + - [func \(r ScheduleRunListParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleRunListParams.URLQuery>) +- [type ScheduleRunParams](<#ScheduleRunParams>) + - [func \(r ScheduleRunParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleRunParams.URLQuery>) +- [type ScheduleRunService](<#ScheduleRunService>) + - [func NewScheduleRunService\(opts ...option.RequestOption\) ScheduleRunService](<#NewScheduleRunService>) + - [func \(r \*ScheduleRunService\) Get\(ctx context.Context, runID string, params ScheduleRunGetParams, opts ...option.RequestOption\) \(res \*ScheduleRun, err error\)](<#ScheduleRunService.Get>) + - [func \(r \*ScheduleRunService\) List\(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[ScheduleRun\], err error\)](<#ScheduleRunService.List>) + - [func \(r \*ScheduleRunService\) ListAutoPaging\(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[ScheduleRun\]](<#ScheduleRunService.ListAutoPaging>) +- [type ScheduleRunTriggerContext](<#ScheduleRunTriggerContext>) + - [func \(r ScheduleRunTriggerContext\) RawJSON\(\) string](<#ScheduleRunTriggerContext.RawJSON>) + - [func \(r \*ScheduleRunTriggerContext\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleRunTriggerContext.UnmarshalJSON>) +- [type ScheduleService](<#ScheduleService>) + - [func NewScheduleService\(opts ...option.RequestOption\) ScheduleService](<#NewScheduleService>) + - [func \(r \*ScheduleService\) Archive\(ctx context.Context, scheduleID string, params ScheduleArchiveParams, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.Archive>) + - [func \(r \*ScheduleService\) ArchiveMany\(ctx context.Context, params ScheduleArchiveManyParams, opts ...option.RequestOption\) \(res \*ScheduleArchiveManyResponse, err error\)](<#ScheduleService.ArchiveMany>) + - [func \(r \*ScheduleService\) Get\(ctx context.Context, scheduleID string, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.Get>) + - [func \(r \*ScheduleService\) List\(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Schedule\], err error\)](<#ScheduleService.List>) + - [func \(r \*ScheduleService\) ListAutoPaging\(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Schedule\]](<#ScheduleService.ListAutoPaging>) + - [func \(r \*ScheduleService\) New\(ctx context.Context, params ScheduleNewParams, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.New>) + - [func \(r \*ScheduleService\) Pause\(ctx context.Context, scheduleID string, params SchedulePauseParams, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.Pause>) + - [func \(r \*ScheduleService\) Run\(ctx context.Context, scheduleID string, params ScheduleRunParams, opts ...option.RequestOption\) \(res \*ScheduleRun, err error\)](<#ScheduleService.Run>) + - [func \(r \*ScheduleService\) Unpause\(ctx context.Context, scheduleID string, params ScheduleUnpauseParams, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.Unpause>) + - [func \(r \*ScheduleService\) Update\(ctx context.Context, scheduleID string, params ScheduleUpdateParams, opts ...option.RequestOption\) \(res \*Schedule, err error\)](<#ScheduleService.Update>) +- [type ScheduleSinksItem](<#ScheduleSinksItem>) + - [func \(r ScheduleSinksItem\) RawJSON\(\) string](<#ScheduleSinksItem.RawJSON>) + - [func \(r \*ScheduleSinksItem\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleSinksItem.UnmarshalJSON>) +- [type ScheduleSinksItemTarget](<#ScheduleSinksItemTarget>) + - [func \(r ScheduleSinksItemTarget\) RawJSON\(\) string](<#ScheduleSinksItemTarget.RawJSON>) + - [func \(r \*ScheduleSinksItemTarget\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleSinksItemTarget.UnmarshalJSON>) +- [type ScheduleTriggerPolicy](<#ScheduleTriggerPolicy>) + - [func \(r ScheduleTriggerPolicy\) RawJSON\(\) string](<#ScheduleTriggerPolicy.RawJSON>) + - [func \(r \*ScheduleTriggerPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleTriggerPolicy.UnmarshalJSON>) +- [type ScheduleUnpauseParams](<#ScheduleUnpauseParams>) + - [func \(r ScheduleUnpauseParams\) URLQuery\(\) \(url.Values, error\)](<#ScheduleUnpauseParams.URLQuery>) +- [type ScheduleUpdateParams](<#ScheduleUpdateParams>) + - [func \(r ScheduleUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#ScheduleUpdateParams.MarshalJSON>) + - [func \(r \*ScheduleUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ScheduleUpdateParams.UnmarshalJSON>) +- [type Session](<#Session>) + - [func \(r Session\) RawJSON\(\) string](<#Session.RawJSON>) + - [func \(r \*Session\) UnmarshalJSON\(data \[\]byte\) error](<#Session.UnmarshalJSON>) +- [type SessionArchiveParams](<#SessionArchiveParams>) + - [func \(r SessionArchiveParams\) URLQuery\(\) \(url.Values, error\)](<#SessionArchiveParams.URLQuery>) +- [type SessionCancelParams](<#SessionCancelParams>) + - [func \(r SessionCancelParams\) URLQuery\(\) \(url.Values, error\)](<#SessionCancelParams.URLQuery>) +- [type SessionConfig](<#SessionConfig>) + - [func \(r SessionConfig\) RawJSON\(\) string](<#SessionConfig.RawJSON>) + - [func \(r \*SessionConfig\) UnmarshalJSON\(data \[\]byte\) error](<#SessionConfig.UnmarshalJSON>) +- [type SessionEvent](<#SessionEvent>) + - [func \(r SessionEvent\) ContentBlocks\(\) \(\[\]ContentBlock, error\)](<#SessionEvent.ContentBlocks>) + - [func \(r SessionEvent\) RawJSON\(\) string](<#SessionEvent.RawJSON>) + - [func \(r \*SessionEvent\) UnmarshalJSON\(data \[\]byte\) error](<#SessionEvent.UnmarshalJSON>) +- [type SessionEventListParams](<#SessionEventListParams>) + - [func \(r SessionEventListParams\) URLQuery\(\) \(url.Values, error\)](<#SessionEventListParams.URLQuery>) +- [type SessionEventParam](<#SessionEventParam>) + - [func \(r SessionEventParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionEventParam.MarshalJSON>) + - [func \(r \*SessionEventParam\) UnmarshalJSON\(data \[\]byte\) error](<#SessionEventParam.UnmarshalJSON>) +- [type SessionEventSendParams](<#SessionEventSendParams>) + - [func \(r SessionEventSendParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionEventSendParams.MarshalJSON>) + - [func \(r \*SessionEventSendParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionEventSendParams.UnmarshalJSON>) +- [type SessionEventSendResponse](<#SessionEventSendResponse>) + - [func \(r SessionEventSendResponse\) RawJSON\(\) string](<#SessionEventSendResponse.RawJSON>) + - [func \(r \*SessionEventSendResponse\) UnmarshalJSON\(data \[\]byte\) error](<#SessionEventSendResponse.UnmarshalJSON>) +- [type SessionEventService](<#SessionEventService>) + - [func NewSessionEventService\(opts ...option.RequestOption\) SessionEventService](<#NewSessionEventService>) + - [func \(r \*SessionEventService\) List\(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[SessionEvent\], err error\)](<#SessionEventService.List>) + - [func \(r \*SessionEventService\) ListAutoPaging\(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[SessionEvent\]](<#SessionEventService.ListAutoPaging>) + - [func \(r \*SessionEventService\) NewResumableStream\(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption\) \*ResumableSessionEventStream](<#SessionEventService.NewResumableStream>) + - [func \(r \*SessionEventService\) Send\(ctx context.Context, sessionID string, params SessionEventSendParams, opts ...option.RequestOption\) \(res \*SessionEventSendResponse, err error\)](<#SessionEventService.Send>) + - [func \(r \*SessionEventService\) StreamEvents\(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption\) \*ssestream.Stream\[SessionEvent\]](<#SessionEventService.StreamEvents>) +- [type SessionEventStreamParams](<#SessionEventStreamParams>) + - [func \(r SessionEventStreamParams\) URLQuery\(\) \(url.Values, error\)](<#SessionEventStreamParams.URLQuery>) +- [type SessionListParams](<#SessionListParams>) + - [func \(r SessionListParams\) URLQuery\(\) \(url.Values, error\)](<#SessionListParams.URLQuery>) +- [type SessionNewParams](<#SessionNewParams>) + - [func \(r SessionNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionNewParams.MarshalJSON>) + - [func \(r \*SessionNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParams.UnmarshalJSON>) +- [type SessionNewParamsConfigParam](<#SessionNewParamsConfigParam>) + - [func \(r SessionNewParamsConfigParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionNewParamsConfigParam.MarshalJSON>) + - [func \(r \*SessionNewParamsConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParamsConfigParam.UnmarshalJSON>) +- [type SessionResource](<#SessionResource>) + - [func \(r SessionResource\) RawJSON\(\) string](<#SessionResource.RawJSON>) + - [func \(r \*SessionResource\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResource.UnmarshalJSON>) +- [type SessionResourceAddParams](<#SessionResourceAddParams>) + - [func \(r SessionResourceAddParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionResourceAddParams.MarshalJSON>) + - [func \(r \*SessionResourceAddParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceAddParams.UnmarshalJSON>) +- [type SessionResourceService](<#SessionResourceService>) + - [func NewSessionResourceService\(opts ...option.RequestOption\) SessionResourceService](<#NewSessionResourceService>) + - [func \(r \*SessionResourceService\) Add\(ctx context.Context, sessionID string, params SessionResourceAddParams, opts ...option.RequestOption\) \(res \*SessionResource, err error\)](<#SessionResourceService.Add>) +- [type SessionResourceSpec](<#SessionResourceSpec>) + - [func \(r SessionResourceSpec\) RawJSON\(\) string](<#SessionResourceSpec.RawJSON>) + - [func \(r \*SessionResourceSpec\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceSpec.UnmarshalJSON>) +- [type SessionResourceSpecParam](<#SessionResourceSpecParam>) + - [func \(r SessionResourceSpecParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionResourceSpecParam.MarshalJSON>) + - [func \(r \*SessionResourceSpecParam\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceSpecParam.UnmarshalJSON>) +- [type SessionService](<#SessionService>) + - [func NewSessionService\(opts ...option.RequestOption\) SessionService](<#NewSessionService>) + - [func \(r \*SessionService\) Archive\(ctx context.Context, sessionID string, params SessionArchiveParams, opts ...option.RequestOption\) \(res \*Session, err error\)](<#SessionService.Archive>) + - [func \(r \*SessionService\) Cancel\(ctx context.Context, sessionID string, params SessionCancelParams, opts ...option.RequestOption\) \(res \*Session, err error\)](<#SessionService.Cancel>) + - [func \(r \*SessionService\) Get\(ctx context.Context, sessionID string, opts ...option.RequestOption\) \(res \*Session, err error\)](<#SessionService.Get>) + - [func \(r \*SessionService\) List\(ctx context.Context, params SessionListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Session\], err error\)](<#SessionService.List>) + - [func \(r \*SessionService\) ListAutoPaging\(ctx context.Context, params SessionListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Session\]](<#SessionService.ListAutoPaging>) + - [func \(r \*SessionService\) New\(ctx context.Context, params SessionNewParams, opts ...option.RequestOption\) \(res \*Session, err error\)](<#SessionService.New>) + - [func \(r \*SessionService\) Update\(ctx context.Context, sessionID string, params SessionUpdateParams, opts ...option.RequestOption\) \(res \*Session, err error\)](<#SessionService.Update>) +- [type SessionStats](<#SessionStats>) + - [func \(r SessionStats\) RawJSON\(\) string](<#SessionStats.RawJSON>) + - [func \(r \*SessionStats\) UnmarshalJSON\(data \[\]byte\) error](<#SessionStats.UnmarshalJSON>) +- [type SessionTemplate](<#SessionTemplate>) + - [func \(r SessionTemplate\) RawJSON\(\) string](<#SessionTemplate.RawJSON>) + - [func \(r \*SessionTemplate\) UnmarshalJSON\(data \[\]byte\) error](<#SessionTemplate.UnmarshalJSON>) +- [type SessionThread](<#SessionThread>) + - [func \(r SessionThread\) RawJSON\(\) string](<#SessionThread.RawJSON>) + - [func \(r \*SessionThread\) UnmarshalJSON\(data \[\]byte\) error](<#SessionThread.UnmarshalJSON>) +- [type SessionThreadArchiveParams](<#SessionThreadArchiveParams>) + - [func \(r SessionThreadArchiveParams\) URLQuery\(\) \(url.Values, error\)](<#SessionThreadArchiveParams.URLQuery>) +- [type SessionThreadEventListParams](<#SessionThreadEventListParams>) + - [func \(r SessionThreadEventListParams\) URLQuery\(\) \(url.Values, error\)](<#SessionThreadEventListParams.URLQuery>) +- [type SessionThreadEventService](<#SessionThreadEventService>) + - [func NewSessionThreadEventService\(opts ...option.RequestOption\) SessionThreadEventService](<#NewSessionThreadEventService>) + - [func \(r \*SessionThreadEventService\) List\(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[SessionEvent\], err error\)](<#SessionThreadEventService.List>) + - [func \(r \*SessionThreadEventService\) ListAutoPaging\(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[SessionEvent\]](<#SessionThreadEventService.ListAutoPaging>) + - [func \(r \*SessionThreadEventService\) StreamEvents\(ctx context.Context, sessionID string, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption\) \*ssestream.Stream\[SessionEvent\]](<#SessionThreadEventService.StreamEvents>) +- [type SessionThreadEventStreamParams](<#SessionThreadEventStreamParams>) + - [func \(r SessionThreadEventStreamParams\) URLQuery\(\) \(url.Values, error\)](<#SessionThreadEventStreamParams.URLQuery>) +- [type SessionThreadListParams](<#SessionThreadListParams>) + - [func \(r SessionThreadListParams\) URLQuery\(\) \(url.Values, error\)](<#SessionThreadListParams.URLQuery>) +- [type SessionThreadService](<#SessionThreadService>) + - [func NewSessionThreadService\(opts ...option.RequestOption\) SessionThreadService](<#NewSessionThreadService>) + - [func \(r \*SessionThreadService\) Archive\(ctx context.Context, sessionID string, threadID string, params SessionThreadArchiveParams, opts ...option.RequestOption\) \(res \*SessionThread, err error\)](<#SessionThreadService.Archive>) + - [func \(r \*SessionThreadService\) Get\(ctx context.Context, sessionID string, threadID string, opts ...option.RequestOption\) \(res \*SessionThread, err error\)](<#SessionThreadService.Get>) + - [func \(r \*SessionThreadService\) List\(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[SessionThread\], err error\)](<#SessionThreadService.List>) + - [func \(r \*SessionThreadService\) ListAutoPaging\(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[SessionThread\]](<#SessionThreadService.ListAutoPaging>) +- [type SessionThreadStopReason](<#SessionThreadStopReason>) + - [func \(r SessionThreadStopReason\) RawJSON\(\) string](<#SessionThreadStopReason.RawJSON>) + - [func \(r \*SessionThreadStopReason\) UnmarshalJSON\(data \[\]byte\) error](<#SessionThreadStopReason.UnmarshalJSON>) +- [type SessionUpdateParams](<#SessionUpdateParams>) + - [func \(r SessionUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionUpdateParams.MarshalJSON>) + - [func \(r \*SessionUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionUpdateParams.UnmarshalJSON>) +- [type SessionUpdateParamsConfigParam](<#SessionUpdateParamsConfigParam>) + - [func \(r SessionUpdateParamsConfigParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionUpdateParamsConfigParam.MarshalJSON>) + - [func \(r \*SessionUpdateParamsConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#SessionUpdateParamsConfigParam.UnmarshalJSON>) +- [type SessionUsage](<#SessionUsage>) + - [func \(r SessionUsage\) RawJSON\(\) string](<#SessionUsage.RawJSON>) + - [func \(r \*SessionUsage\) UnmarshalJSON\(data \[\]byte\) error](<#SessionUsage.UnmarshalJSON>) +- [type Skill](<#Skill>) + - [func \(r Skill\) RawJSON\(\) string](<#Skill.RawJSON>) + - [func \(r \*Skill\) UnmarshalJSON\(data \[\]byte\) error](<#Skill.UnmarshalJSON>) +- [type SkillBinding](<#SkillBinding>) + - [func \(r SkillBinding\) RawJSON\(\) string](<#SkillBinding.RawJSON>) + - [func \(r \*SkillBinding\) UnmarshalJSON\(data \[\]byte\) error](<#SkillBinding.UnmarshalJSON>) +- [type SkillBindingParam](<#SkillBindingParam>) + - [func \(r SkillBindingParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillBindingParam.MarshalJSON>) + - [func \(r \*SkillBindingParam\) UnmarshalJSON\(data \[\]byte\) error](<#SkillBindingParam.UnmarshalJSON>) +- [type SkillGetParams](<#SkillGetParams>) + - [func \(r SkillGetParams\) URLQuery\(\) \(url.Values, error\)](<#SkillGetParams.URLQuery>) +- [type SkillListParams](<#SkillListParams>) + - [func \(r SkillListParams\) URLQuery\(\) \(url.Values, error\)](<#SkillListParams.URLQuery>) +- [type SkillNewParams](<#SkillNewParams>) + - [func \(r SkillNewParams\) MarshalMultipart\(\) \(\[\]byte, string, error\)](<#SkillNewParams.MarshalMultipart>) +- [type SkillOverride](<#SkillOverride>) + - [func \(r SkillOverride\) RawJSON\(\) string](<#SkillOverride.RawJSON>) + - [func \(r \*SkillOverride\) UnmarshalJSON\(data \[\]byte\) error](<#SkillOverride.UnmarshalJSON>) +- [type SkillOverrideParam](<#SkillOverrideParam>) + - [func \(r SkillOverrideParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillOverrideParam.MarshalJSON>) + - [func \(r \*SkillOverrideParam\) UnmarshalJSON\(data \[\]byte\) error](<#SkillOverrideParam.UnmarshalJSON>) +- [type SkillService](<#SkillService>) + - [func NewSkillService\(opts ...option.RequestOption\) SkillService](<#NewSkillService>) + - [func \(r \*SkillService\) Delete\(ctx context.Context, id string, opts ...option.RequestOption\) \(err error\)](<#SkillService.Delete>) + - [func \(r \*SkillService\) Get\(ctx context.Context, id string, params SkillGetParams, opts ...option.RequestOption\) \(res \*Skill, err error\)](<#SkillService.Get>) + - [func \(r \*SkillService\) List\(ctx context.Context, params SkillListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Skill\], err error\)](<#SkillService.List>) + - [func \(r \*SkillService\) ListAutoPaging\(ctx context.Context, params SkillListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Skill\]](<#SkillService.ListAutoPaging>) + - [func \(r \*SkillService\) New\(ctx context.Context, params SkillNewParams, opts ...option.RequestOption\) \(res \*Skill, err error\)](<#SkillService.New>) + - [func \(r \*SkillService\) Update\(ctx context.Context, id string, params SkillUpdateParams, opts ...option.RequestOption\) \(res \*Skill, err error\)](<#SkillService.Update>) +- [type SkillUpdateParams](<#SkillUpdateParams>) + - [func \(r SkillUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillUpdateParams.MarshalJSON>) + - [func \(r \*SkillUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#SkillUpdateParams.UnmarshalJSON>) +- [type SkillVersion](<#SkillVersion>) + - [func \(r SkillVersion\) RawJSON\(\) string](<#SkillVersion.RawJSON>) + - [func \(r \*SkillVersion\) UnmarshalJSON\(data \[\]byte\) error](<#SkillVersion.UnmarshalJSON>) +- [type SkillVersionListParams](<#SkillVersionListParams>) + - [func \(r SkillVersionListParams\) URLQuery\(\) \(url.Values, error\)](<#SkillVersionListParams.URLQuery>) +- [type SkillVersionNewParams](<#SkillVersionNewParams>) + - [func \(r SkillVersionNewParams\) MarshalMultipart\(\) \(\[\]byte, string, error\)](<#SkillVersionNewParams.MarshalMultipart>) +- [type SkillVersionService](<#SkillVersionService>) + - [func NewSkillVersionService\(opts ...option.RequestOption\) SkillVersionService](<#NewSkillVersionService>) + - [func \(r \*SkillVersionService\) Delete\(ctx context.Context, id string, version string, opts ...option.RequestOption\) \(res \*DeletedSkillVersion, err error\)](<#SkillVersionService.Delete>) + - [func \(r \*SkillVersionService\) Download\(ctx context.Context, id string, version string, opts ...option.RequestOption\) \(res \*http.Response, err error\)](<#SkillVersionService.Download>) + - [func \(r \*SkillVersionService\) Get\(ctx context.Context, id string, version string, opts ...option.RequestOption\) \(res \*SkillVersion, err error\)](<#SkillVersionService.Get>) + - [func \(r \*SkillVersionService\) List\(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[SkillVersion\], err error\)](<#SkillVersionService.List>) + - [func \(r \*SkillVersionService\) ListAutoPaging\(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[SkillVersion\]](<#SkillVersionService.ListAutoPaging>) + - [func \(r \*SkillVersionService\) New\(ctx context.Context, id string, params SkillVersionNewParams, opts ...option.RequestOption\) \(res \*SkillVersion, err error\)](<#SkillVersionService.New>) +- [type SystemOverride](<#SystemOverride>) + - [func \(r SystemOverride\) RawJSON\(\) string](<#SystemOverride.RawJSON>) + - [func \(r \*SystemOverride\) UnmarshalJSON\(data \[\]byte\) error](<#SystemOverride.UnmarshalJSON>) +- [type SystemOverrideParam](<#SystemOverrideParam>) + - [func \(r SystemOverrideParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#SystemOverrideParam.MarshalJSON>) + - [func \(r \*SystemOverrideParam\) UnmarshalJSON\(data \[\]byte\) error](<#SystemOverrideParam.UnmarshalJSON>) +- [type Template](<#Template>) + - [func \(r Template\) RawJSON\(\) string](<#Template.RawJSON>) + - [func \(r \*Template\) UnmarshalJSON\(data \[\]byte\) error](<#Template.UnmarshalJSON>) +- [type TemplateArchiveParams](<#TemplateArchiveParams>) + - [func \(r TemplateArchiveParams\) URLQuery\(\) \(url.Values, error\)](<#TemplateArchiveParams.URLQuery>) +- [type TemplateCloneParams](<#TemplateCloneParams>) + - [func \(r TemplateCloneParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#TemplateCloneParams.MarshalJSON>) + - [func \(r \*TemplateCloneParams\) UnmarshalJSON\(data \[\]byte\) error](<#TemplateCloneParams.UnmarshalJSON>) +- [type TemplateListParams](<#TemplateListParams>) + - [func \(r TemplateListParams\) URLQuery\(\) \(url.Values, error\)](<#TemplateListParams.URLQuery>) +- [type TemplateNewParams](<#TemplateNewParams>) + - [func \(r TemplateNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#TemplateNewParams.MarshalJSON>) + - [func \(r \*TemplateNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#TemplateNewParams.UnmarshalJSON>) +- [type TemplateService](<#TemplateService>) + - [func NewTemplateService\(opts ...option.RequestOption\) TemplateService](<#NewTemplateService>) + - [func \(r \*TemplateService\) Archive\(ctx context.Context, templateID string, params TemplateArchiveParams, opts ...option.RequestOption\) \(res \*Template, err error\)](<#TemplateService.Archive>) + - [func \(r \*TemplateService\) Clone\(ctx context.Context, templateID string, params TemplateCloneParams, opts ...option.RequestOption\) \(res \*Template, err error\)](<#TemplateService.Clone>) + - [func \(r \*TemplateService\) Get\(ctx context.Context, templateID string, opts ...option.RequestOption\) \(res \*Template, err error\)](<#TemplateService.Get>) + - [func \(r \*TemplateService\) List\(ctx context.Context, params TemplateListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[Template\], err error\)](<#TemplateService.List>) + - [func \(r \*TemplateService\) ListAutoPaging\(ctx context.Context, params TemplateListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[Template\]](<#TemplateService.ListAutoPaging>) + - [func \(r \*TemplateService\) New\(ctx context.Context, params TemplateNewParams, opts ...option.RequestOption\) \(res \*Template, err error\)](<#TemplateService.New>) + - [func \(r \*TemplateService\) Update\(ctx context.Context, templateID string, params TemplateUpdateParams, opts ...option.RequestOption\) \(res \*Template, err error\)](<#TemplateService.Update>) +- [type TemplateUpdateParams](<#TemplateUpdateParams>) + - [func \(r TemplateUpdateParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#TemplateUpdateParams.MarshalJSON>) + - [func \(r \*TemplateUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#TemplateUpdateParams.UnmarshalJSON>) +- [type Tool](<#Tool>) + - [func \(r Tool\) RawJSON\(\) string](<#Tool.RawJSON>) + - [func \(r \*Tool\) UnmarshalJSON\(data \[\]byte\) error](<#Tool.UnmarshalJSON>) +- [type ToolConfig](<#ToolConfig>) + - [func \(r ToolConfig\) RawJSON\(\) string](<#ToolConfig.RawJSON>) + - [func \(r \*ToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ToolConfig.UnmarshalJSON>) +- [type ToolConfigParam](<#ToolConfigParam>) + - [func \(r ToolConfigParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolConfigParam.MarshalJSON>) + - [func \(r \*ToolConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolConfigParam.UnmarshalJSON>) +- [type ToolOverride](<#ToolOverride>) + - [func \(r ToolOverride\) RawJSON\(\) string](<#ToolOverride.RawJSON>) + - [func \(r \*ToolOverride\) UnmarshalJSON\(data \[\]byte\) error](<#ToolOverride.UnmarshalJSON>) +- [type ToolOverrideParam](<#ToolOverrideParam>) + - [func \(r ToolOverrideParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolOverrideParam.MarshalJSON>) + - [func \(r \*ToolOverrideParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolOverrideParam.UnmarshalJSON>) +- [type ToolParam](<#ToolParam>) + - [func \(r ToolParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolParam.MarshalJSON>) + - [func \(r \*ToolParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolParam.UnmarshalJSON>) +- [type Vault](<#Vault>) + - [func \(r Vault\) RawJSON\(\) string](<#Vault.RawJSON>) + - [func \(r \*Vault\) UnmarshalJSON\(data \[\]byte\) error](<#Vault.UnmarshalJSON>) +- [type VaultCredential](<#VaultCredential>) + - [func \(r VaultCredential\) RawJSON\(\) string](<#VaultCredential.RawJSON>) + - [func \(r \*VaultCredential\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredential.UnmarshalJSON>) +- [type VaultCredentialAuth](<#VaultCredentialAuth>) + - [func \(r VaultCredentialAuth\) RawJSON\(\) string](<#VaultCredentialAuth.RawJSON>) + - [func \(r \*VaultCredentialAuth\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialAuth.UnmarshalJSON>) +- [type VaultCredentialListParams](<#VaultCredentialListParams>) + - [func \(r VaultCredentialListParams\) URLQuery\(\) \(url.Values, error\)](<#VaultCredentialListParams.URLQuery>) +- [type VaultCredentialNewParams](<#VaultCredentialNewParams>) + - [func \(r VaultCredentialNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialNewParams.MarshalJSON>) + - [func \(r \*VaultCredentialNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialNewParams.UnmarshalJSON>) +- [type VaultCredentialService](<#VaultCredentialService>) + - [func NewVaultCredentialService\(opts ...option.RequestOption\) VaultCredentialService](<#NewVaultCredentialService>) + - [func \(r \*VaultCredentialService\) Delete\(ctx context.Context, id string, credID string, opts ...option.RequestOption\) \(err error\)](<#VaultCredentialService.Delete>) + - [func \(r \*VaultCredentialService\) Get\(ctx context.Context, id string, credID string, opts ...option.RequestOption\) \(res \*VaultCredential, err error\)](<#VaultCredentialService.Get>) + - [func \(r \*VaultCredentialService\) List\(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[VaultCredential\], err error\)](<#VaultCredentialService.List>) + - [func \(r \*VaultCredentialService\) ListAutoPaging\(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[VaultCredential\]](<#VaultCredentialService.ListAutoPaging>) + - [func \(r \*VaultCredentialService\) New\(ctx context.Context, id string, params VaultCredentialNewParams, opts ...option.RequestOption\) \(res \*VaultCredential, err error\)](<#VaultCredentialService.New>) +- [type VaultListParams](<#VaultListParams>) + - [func \(r VaultListParams\) URLQuery\(\) \(url.Values, error\)](<#VaultListParams.URLQuery>) +- [type VaultNewParams](<#VaultNewParams>) + - [func \(r VaultNewParams\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultNewParams.MarshalJSON>) + - [func \(r \*VaultNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#VaultNewParams.UnmarshalJSON>) +- [type VaultService](<#VaultService>) + - [func NewVaultService\(opts ...option.RequestOption\) VaultService](<#NewVaultService>) + - [func \(r \*VaultService\) Delete\(ctx context.Context, id string, opts ...option.RequestOption\) \(err error\)](<#VaultService.Delete>) + - [func \(r \*VaultService\) Get\(ctx context.Context, id string, opts ...option.RequestOption\) \(res \*Vault, err error\)](<#VaultService.Get>) + - [func \(r \*VaultService\) List\(ctx context.Context, params VaultListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Vault\], err error\)](<#VaultService.List>) + - [func \(r \*VaultService\) ListAutoPaging\(ctx context.Context, params VaultListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Vault\]](<#VaultService.ListAutoPaging>) + - [func \(r \*VaultService\) New\(ctx context.Context, params VaultNewParams, opts ...option.RequestOption\) \(res \*Vault, err error\)](<#VaultService.New>) + + +## Constants + + + +```go +const DefaultBaseURL = "https://api.qoder.com/api/v1/forward/" +``` + + +## func [Bool]() + +```go +func Bool(v bool) param.Opt[bool] +``` + + + + +## func [Float]() + +```go +func Float(v float64) param.Opt[float64] +``` + + + + +## func [Int]() + +```go +func Int(v int64) param.Opt[int64] +``` + + + + +## func [String]() + +```go +func String(v string) param.Opt[string] +``` + + + + +## type [Batch]() + + + +```go +type Batch struct { + // Batch ID, prefixed with `batch_`. + ID string `json:"id"` + // Always `batch`. + Object string `json:"object"` + // Batch status; see the status descriptions. + Status string `json:"status"` + // Input JSONL file ID. + InputFileID string `json:"input_file_id"` + // File ID of successful results; omitted while incomplete or not yet generated. + OutputFileID string `json:"output_file_id"` + // Completion window: `24h`, `48h` or `72h`. + CompletionWindow string `json:"completion_window"` + // Creation time in RFC 3339. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Expiration time, `created_at` + `completion_window`. + ExpiresAt time.Time `json:"expires_at" format:"date-time"` + // Aggregated task counts. + RequestCounts BatchRequestCounts `json:"request_counts"` + // `null` on the create response; on later Batch get, list and cancel responses it returns + // the Credit total once at least one subtask has valid CAS Session usage. + Usage BatchUsage `json:"usage" api:"nullable"` + // Caller business metadata. + Metadata map[string]any `json:"metadata"` + // Total number of lines, including lines that failed validation. + Total int64 `json:"total"` + // Number of lines waiting to run. + Pending int64 `json:"pending"` + // Number of lines currently running. + Running int64 `json:"running"` + // Number of lines that completed successfully. + Completed int64 `json:"completed"` + // Number of permanently failed lines, including validation failures. + Failed int64 `json:"failed"` + // Number of lines terminated by cancellation. + Cancelled int64 `json:"cancelled"` + // Number of lines terminated by expiration. + Expired int64 `json:"expired"` + // File ID of failed-line results; omitted when there are no failed lines. + ErrorFileID string `json:"error_file_id"` + // Batch-level error description; present only in the `failed` status. + ErrorMessage string `json:"error_message"` + JSON struct { + ID respjson.Field + Object respjson.Field + Status respjson.Field + InputFileID respjson.Field + OutputFileID respjson.Field + CompletionWindow respjson.Field + CreatedAt respjson.Field + ExpiresAt respjson.Field + RequestCounts respjson.Field + Usage respjson.Field + Metadata respjson.Field + Total respjson.Field + Pending respjson.Field + Running respjson.Field + Completed respjson.Field + Failed respjson.Field + Cancelled respjson.Field + Expired respjson.Field + ErrorFileID respjson.Field + ErrorMessage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Batch\) [RawJSON]() + +```go +func (r Batch) RawJSON() string +``` + + + + +### func \(\*Batch\) [UnmarshalJSON]() + +```go +func (r *Batch) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchCancelParams]() + + + +```go +type BatchCancelParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(BatchCancelParams\) [URLQuery]() + +```go +func (r BatchCancelParams) URLQuery() (url.Values, error) +``` + + + + +## type [BatchFile]() + + + +```go +type BatchFile struct { + // Pre-signed OSS download URL with `Expires` / `OSSAccessKeyId` / `Signature` and + // `response-content-disposition`; the file downloads as `batch--output.jsonl`. + URL string `json:"url"` + // Link expiration time in RFC 3339; the download must finish before it. + ExpiresAt time.Time `json:"expires_at" format:"date-time"` + JSON struct { + URL respjson.Field + ExpiresAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchFile\) [RawJSON]() + +```go +func (r BatchFile) RawJSON() string +``` + + + + +### func \(\*BatchFile\) [UnmarshalJSON]() + +```go +func (r *BatchFile) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchListParams]() + + + +```go +type BatchListParams struct { + // Filter by status. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Page size, up to 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(BatchListParams\) [URLQuery]() + +```go +func (r BatchListParams) URLQuery() (url.Values, error) +``` + + + + +## type [BatchNewParams]() + + + +```go +type BatchNewParams struct { + // ID of a JSONL file uploaded through the Files API. + InputFileID string `json:"input_file_id" api:"required"` + // Completion window: `24h`, `48h` or `72h`. The Batch moves to `expired` when it elapses. + CompletionWindow string `json:"completion_window" api:"required"` + // Caller business metadata, up to 16 keys; values may be any JSON type; the serialized + // object must be ≤ 2KB, keys ≤ 64 characters, and must not contain NUL (U+0000). + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(BatchNewParams\) [MarshalJSON]() + +```go +func (r BatchNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*BatchNewParams\) [UnmarshalJSON]() + +```go +func (r *BatchNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchRequestCounts]() + + + +```go +type BatchRequestCounts struct { + Total int64 `json:"total"` + Pending int64 `json:"pending"` + Running int64 `json:"running"` + Completed int64 `json:"completed"` + Failed int64 `json:"failed"` + Cancelled int64 `json:"cancelled"` + Expired int64 `json:"expired"` + JSON struct { + Total respjson.Field + Pending respjson.Field + Running respjson.Field + Completed respjson.Field + Failed respjson.Field + Cancelled respjson.Field + Expired respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchRequestCounts\) [RawJSON]() + +```go +func (r BatchRequestCounts) RawJSON() string +``` + + + + +### func \(\*BatchRequestCounts\) [UnmarshalJSON]() + +```go +func (r *BatchRequestCounts) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchService]() + +BatchService provides Forward Batch operations. + +```go +type BatchService struct { + Options []option.RequestOption + Tasks BatchTaskService +} +``` + + +### func [NewBatchService]() + +```go +func NewBatchService(opts ...option.RequestOption) BatchService +``` + + + + +### func \(\*BatchService\) [Cancel]() + +```go +func (r *BatchService) Cancel(ctx context.Context, batchID string, params BatchCancelParams, opts ...option.RequestOption) (res *Batch, err error) +``` + +Cancel Batch + + +### func \(\*BatchService\) [Get]() + +```go +func (r *BatchService) Get(ctx context.Context, batchID string, opts ...option.RequestOption) (res *Batch, err error) +``` + +Get Batch + + +### func \(\*BatchService\) [GetError]() + +```go +func (r *BatchService) GetError(ctx context.Context, batchID string, opts ...option.RequestOption) (res *BatchFile, err error) +``` + +Get error file + + +### func \(\*BatchService\) [GetOutput]() + +```go +func (r *BatchService) GetOutput(ctx context.Context, batchID string, opts ...option.RequestOption) (res *BatchFile, err error) +``` + +Get output file + + +### func \(\*BatchService\) [List]() + +```go +func (r *BatchService) List(ctx context.Context, params BatchListParams, opts ...option.RequestOption) (res *pagination.Page[Batch], err error) +``` + +List Batches + + +### func \(\*BatchService\) [ListAutoPaging]() + +```go +func (r *BatchService) ListAutoPaging(ctx context.Context, params BatchListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Batch] +``` + + + + +### func \(\*BatchService\) [New]() + +```go +func (r *BatchService) New(ctx context.Context, params BatchNewParams, opts ...option.RequestOption) (res *Batch, err error) +``` + +Create Batch + + +## type [BatchTask]() + + + +```go +type BatchTask struct { + CustomID string `json:"custom_id"` + Status string `json:"status"` + StartedAt time.Time `json:"started_at" format:"date-time"` + CompletedAt time.Time `json:"completed_at" format:"date-time"` + OutputSummary string `json:"output_summary"` + Usage BatchTaskUsage `json:"usage"` + Artifacts []BatchTaskArtifactsItem `json:"artifacts"` + Error BatchTaskError `json:"error"` + JSON struct { + CustomID respjson.Field + Status respjson.Field + StartedAt respjson.Field + CompletedAt respjson.Field + OutputSummary respjson.Field + Usage respjson.Field + Artifacts respjson.Field + Error respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchTask\) [RawJSON]() + +```go +func (r BatchTask) RawJSON() string +``` + + + + +### func \(\*BatchTask\) [UnmarshalJSON]() + +```go +func (r *BatchTask) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchTaskArtifactsItem]() + + + +```go +type BatchTaskArtifactsItem struct { + FileID string `json:"file_id"` + Name string `json:"name"` + Size int64 `json:"size"` + ContentType string `json:"content_type"` + JSON struct { + FileID respjson.Field + Name respjson.Field + Size respjson.Field + ContentType respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchTaskArtifactsItem\) [RawJSON]() + +```go +func (r BatchTaskArtifactsItem) RawJSON() string +``` + + + + +### func \(\*BatchTaskArtifactsItem\) [UnmarshalJSON]() + +```go +func (r *BatchTaskArtifactsItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchTaskError]() + + + +```go +type BatchTaskError struct { + Code string `json:"code"` + Message string `json:"message"` + JSON struct { + Code respjson.Field + Message respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchTaskError\) [RawJSON]() + +```go +func (r BatchTaskError) RawJSON() string +``` + + + + +### func \(\*BatchTaskError\) [UnmarshalJSON]() + +```go +func (r *BatchTaskError) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchTaskListParams]() + + + +```go +type BatchTaskListParams struct { + // Filter by task status: `pending`, `running`, `completed`, `failed`, `cancelled` or + // `expired`. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Exact filter on the caller's task identifier; a single value only, and an unmatched + // value returns an empty list. + CustomID param.Opt[string] `query:"custom_id,omitzero" json:"-"` + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page; pass `last_id` from the previous response. The cursor must + // belong to the current Batch. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(BatchTaskListParams\) [URLQuery]() + +```go +func (r BatchTaskListParams) URLQuery() (url.Values, error) +``` + + + + +## type [BatchTaskService]() + +BatchTaskService provides Forward BatchTask operations. + +```go +type BatchTaskService struct { + Options []option.RequestOption +} +``` + + +### func [NewBatchTaskService]() + +```go +func NewBatchTaskService(opts ...option.RequestOption) BatchTaskService +``` + + + + +### func \(\*BatchTaskService\) [List]() + +```go +func (r *BatchTaskService) List(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption) (res *pagination.Page[BatchTask], err error) +``` + +List Batch tasks + + +### func \(\*BatchTaskService\) [ListAutoPaging]() + +```go +func (r *BatchTaskService) ListAutoPaging(ctx context.Context, batchID string, params BatchTaskListParams, opts ...option.RequestOption) *pagination.PageAutoPager[BatchTask] +``` + + + + +## type [BatchTaskUsage]() + + + +```go +type BatchTaskUsage struct { + TotalCredits float64 `json:"total_credits"` + JSON struct { + TotalCredits respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchTaskUsage\) [RawJSON]() + +```go +func (r BatchTaskUsage) RawJSON() string +``` + + + + +### func \(\*BatchTaskUsage\) [UnmarshalJSON]() + +```go +func (r *BatchTaskUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [BatchUsage]() + + + +```go +type BatchUsage struct { + TotalCredits float64 `json:"total_credits"` + JSON struct { + TotalCredits respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(BatchUsage\) [RawJSON]() + +```go +func (r BatchUsage) RawJSON() string +``` + + + + +### func \(\*BatchUsage\) [UnmarshalJSON]() + +```go +func (r *BatchUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [Channel]() + + + +```go +type Channel struct { + // Channel ID, prefixed with `channel_` in examples. + ID string `json:"id"` + // Always `channel`. + Type string `json:"type"` + // Bound Forward Identity ID in `fixed` mode; `null` in `pairing` mode. + IdentityID string `json:"identity_id" api:"nullable"` + IdentityResolution ChannelIdentityResolution `json:"identity_resolution"` + // Bound Forward Template ID in `fixed` mode; `null` in `pairing` mode. + TemplateID string `json:"template_id" api:"nullable"` + // External channel type. + ChannelType string `json:"channel_type"` + Name string `json:"name"` + // Manual enable/disable switch. + Enabled bool `json:"enabled"` + // `unbound`, `bound` or `expired`. + BindingStatus string `json:"binding_status"` + ChannelConfig ChannelChannelConfig `json:"channel_config"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + IdentityID respjson.Field + IdentityResolution respjson.Field + TemplateID respjson.Field + ChannelType respjson.Field + Name respjson.Field + Enabled respjson.Field + BindingStatus respjson.Field + ChannelConfig respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Channel\) [RawJSON]() + +```go +func (r Channel) RawJSON() string +``` + + + + +### func \(\*Channel\) [UnmarshalJSON]() + +```go +func (r *Channel) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelChannelConfig]() + + + +```go +type ChannelChannelConfig struct { + ResponseOptions ChannelChannelConfigResponseOptions `json:"response_options"` + JSON struct { + ResponseOptions respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ChannelChannelConfig\) [RawJSON]() + +```go +func (r ChannelChannelConfig) RawJSON() string +``` + + + + +### func \(\*ChannelChannelConfig\) [UnmarshalJSON]() + +```go +func (r *ChannelChannelConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelChannelConfigResponseOptions]() + + + +```go +type ChannelChannelConfigResponseOptions struct { + IncludeToolCalls bool `json:"include_tool_calls"` + IncludeThinking bool `json:"include_thinking"` + JSON struct { + IncludeToolCalls respjson.Field + IncludeThinking respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ChannelChannelConfigResponseOptions\) [RawJSON]() + +```go +func (r ChannelChannelConfigResponseOptions) RawJSON() string +``` + + + + +### func \(\*ChannelChannelConfigResponseOptions\) [UnmarshalJSON]() + +```go +func (r *ChannelChannelConfigResponseOptions) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelIdentityResolution]() + + + +```go +type ChannelIdentityResolution struct { + Mode string `json:"mode"` + JSON struct { + Mode respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ChannelIdentityResolution\) [RawJSON]() + +```go +func (r ChannelIdentityResolution) RawJSON() string +``` + + + + +### func \(\*ChannelIdentityResolution\) [UnmarshalJSON]() + +```go +func (r *ChannelIdentityResolution) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelListParams]() + + + +```go +type ChannelListParams struct { + // Filter by `wechat`, `wecom`, `feishu`, `dingtalk` or `teams` (Global). + ChannelType param.Opt[string] `query:"channel_type,omitzero" json:"-"` + // Filter by the manual enable/disable state. + Enabled param.Opt[bool] `query:"enabled,omitzero" json:"-"` + // Filter by `unbound`, `bound` or `expired`. + BindingStatus param.Opt[string] `query:"binding_status,omitzero" json:"-"` + // Filter by Forward Identity ID. + IdentityID param.Opt[string] `query:"identity_id,omitzero" json:"-"` + // Filter by Forward Template ID. + TemplateID param.Opt[string] `query:"template_id,omitzero" json:"-"` + // Page size, up to 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ChannelListParams\) [URLQuery]() + +```go +func (r ChannelListParams) URLQuery() (url.Values, error) +``` + + + + +## type [ChannelNewParams]() + + + +```go +type ChannelNewParams struct { + // Required in `fixed` mode; omit in `pairing` mode. + IdentityID param.Opt[string] `json:"identity_id,omitzero"` + IdentityResolution map[string]any `json:"identity_resolution,omitzero"` + // Required in `fixed` mode; omit in `pairing` mode. + TemplateID param.Opt[string] `json:"template_id,omitzero"` + // Channel type; currently `wechat`, `wecom`, `feishu`, `dingtalk` and `teams` (Global). + ChannelType string `json:"channel_type" api:"required"` + // Channel display name. + Name param.Opt[string] `json:"name,omitzero"` + // Manual enable/disable switch, defaults to `true`. Pass `false` to create the Channel + // without handling inbound messages yet. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + ChannelConfig map[string]any `json:"channel_config,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ChannelNewParams\) [MarshalJSON]() + +```go +func (r ChannelNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ChannelNewParams\) [UnmarshalJSON]() + +```go +func (r *ChannelNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelPairing]() + + + +```go +type ChannelPairing struct { + // Pairing ID, used when removing the pairing. + ID string `json:"id"` + // Always `channel_pairing`. + Type string `json:"type"` + // Channel ID. + ChannelID string `json:"channel_id"` + // Bound Forward Identity ID. + IdentityID string `json:"identity_id"` + // Bound Forward Template ID. + TemplateID string `json:"template_id"` + // `active` when the pairing succeeded. + Status string `json:"status"` + // Time the pairing completed. + PairedAt string `json:"paired_at"` + JSON struct { + ID respjson.Field + Type respjson.Field + ChannelID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + Status respjson.Field + PairedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ChannelPairing\) [RawJSON]() + +```go +func (r ChannelPairing) RawJSON() string +``` + + + + +### func \(\*ChannelPairing\) [UnmarshalJSON]() + +```go +func (r *ChannelPairing) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelPairingNewParams]() + + + +```go +type ChannelPairingNewParams struct { + // Six-digit pairing code shown in the Channel message. + Code string `json:"code" api:"required"` + // Forward Identity ID to bind. + IdentityID string `json:"identity_id" api:"required"` + // Forward Template ID to bind. + TemplateID string `json:"template_id" api:"required"` + // Client-generated unique idempotency key, used to safely retry the same pairing + // request. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ChannelPairingNewParams\) [MarshalJSON]() + +```go +func (r ChannelPairingNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ChannelPairingNewParams\) [UnmarshalJSON]() + +```go +func (r *ChannelPairingNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelPairingService]() + +ChannelPairingService provides Forward ChannelPairing operations. + +```go +type ChannelPairingService struct { + Options []option.RequestOption +} +``` + + +### func [NewChannelPairingService]() + +```go +func NewChannelPairingService(opts ...option.RequestOption) ChannelPairingService +``` + + + + +### func \(\*ChannelPairingService\) [Delete]() + +```go +func (r *ChannelPairingService) Delete(ctx context.Context, pairingID string, opts ...option.RequestOption) (res *DeletedChannelPairing, err error) +``` + +Remove Channel pairing + + +### func \(\*ChannelPairingService\) [New]() + +```go +func (r *ChannelPairingService) New(ctx context.Context, params ChannelPairingNewParams, opts ...option.RequestOption) (res *ChannelPairing, err error) +``` + +Complete Channel pairing + + +## type [ChannelQRSession]() + + + +```go +type ChannelQRSession struct { + // Opaque QR session key used to poll the status. + SessionKey string `json:"session_key"` + // ID of the associated Channel. + ChannelID string `json:"channel_id"` + // `wechat`, `feishu`, `dingtalk` or `wecom`. + ChannelType string `json:"channel_type"` + // Initial status, usually `waiting`. + Status string `json:"status"` + // Raw QR code content, usually a third-party authorization URL. + QRCodeContent string `json:"qr_code_content"` + // QR code image generated by the server. + QRCodeImageBase64 string `json:"qr_code_image_base64"` + // Expiration time. + ExpiresAt string `json:"expires_at"` + // null|Channel error code on failure. + ErrCode string `json:"err_code"` + // null|Channel error message on failure. + ErrMsg string `json:"err_msg"` + JSON struct { + SessionKey respjson.Field + ChannelID respjson.Field + ChannelType respjson.Field + Status respjson.Field + QRCodeContent respjson.Field + QRCodeImageBase64 respjson.Field + ExpiresAt respjson.Field + ErrCode respjson.Field + ErrMsg respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ChannelQRSession\) [RawJSON]() + +```go +func (r ChannelQRSession) RawJSON() string +``` + + + + +### func \(\*ChannelQRSession\) [UnmarshalJSON]() + +```go +func (r *ChannelQRSession) UnmarshalJSON(data []byte) error +``` + + + + +## type [ChannelQRSessionNewParams]() + + + +```go +type ChannelQRSessionNewParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ChannelQRSessionNewParams\) [URLQuery]() + +```go +func (r ChannelQRSessionNewParams) URLQuery() (url.Values, error) +``` + + + + +## type [ChannelQRSessionService]() + +ChannelQRSessionService provides Forward ChannelQRSession operations. + +```go +type ChannelQRSessionService struct { + Options []option.RequestOption +} +``` + + +### func [NewChannelQRSessionService]() + +```go +func NewChannelQRSessionService(opts ...option.RequestOption) ChannelQRSessionService +``` + + + + +### func \(\*ChannelQRSessionService\) [Get]() + +```go +func (r *ChannelQRSessionService) Get(ctx context.Context, sessionKey string, opts ...option.RequestOption) (res *ChannelQRSession, err error) +``` + +Get Channel QR Session + + +### func \(\*ChannelQRSessionService\) [New]() + +```go +func (r *ChannelQRSessionService) New(ctx context.Context, channelID string, params ChannelQRSessionNewParams, opts ...option.RequestOption) (res *ChannelQRSession, err error) +``` + +Create Channel QR Session + + +## type [ChannelService]() + +ChannelService provides Forward Channel operations. + +```go +type ChannelService struct { + Options []option.RequestOption + QRSessions ChannelQRSessionService +} +``` + + +### func [NewChannelService]() + +```go +func NewChannelService(opts ...option.RequestOption) ChannelService +``` + + + + +### func \(\*ChannelService\) [Delete]() + +```go +func (r *ChannelService) Delete(ctx context.Context, channelID string, opts ...option.RequestOption) (res *DeletedChannel, err error) +``` + +Delete Channel + + +### func \(\*ChannelService\) [Get]() + +```go +func (r *ChannelService) Get(ctx context.Context, channelID string, opts ...option.RequestOption) (res *Channel, err error) +``` + +Get Channel + + +### func \(\*ChannelService\) [List]() + +```go +func (r *ChannelService) List(ctx context.Context, params ChannelListParams, opts ...option.RequestOption) (res *pagination.Page[Channel], err error) +``` + +List Channels + + +### func \(\*ChannelService\) [ListAutoPaging]() + +```go +func (r *ChannelService) ListAutoPaging(ctx context.Context, params ChannelListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Channel] +``` + + + + +### func \(\*ChannelService\) [New]() + +```go +func (r *ChannelService) New(ctx context.Context, params ChannelNewParams, opts ...option.RequestOption) (res *Channel, err error) +``` + +Create Channel + + +### func \(\*ChannelService\) [Update]() + +```go +func (r *ChannelService) Update(ctx context.Context, channelID string, params ChannelUpdateParams, opts ...option.RequestOption) (res *Channel, err error) +``` + +Update Channel + + +## type [ChannelUpdateParams]() + + + +```go +type ChannelUpdateParams struct { + // Channel display name. + Name param.Opt[string] `json:"name,omitzero"` + // New Forward Identity ID in `fixed` mode. + IdentityID param.Opt[string] `json:"identity_id,omitzero"` + // New Forward Template ID in `fixed` mode. + TemplateID param.Opt[string] `json:"template_id,omitzero"` + // Manual enable/disable switch. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + ChannelConfig map[string]any `json:"channel_config,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ChannelUpdateParams\) [MarshalJSON]() + +```go +func (r ChannelUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ChannelUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ChannelUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [Client]() + +Client exposes Forward resources. Configure options before sharing a client. + +```go +type Client struct { + Options []option.RequestOption + Templates TemplateService + Identities IdentityService + Sessions SessionService + Schedules ScheduleService + ScheduleRuns ScheduleRunService + Batches BatchService + Channels ChannelService + ChannelPairings ChannelPairingService + Environments EnvironmentService + Files FileService + Skills SkillService + Vaults VaultService + MemoryStores MemoryStoreService + Models ModelService +} +``` + + +### func [NewClient]() + +```go +func NewClient(opts ...option.RequestOption) Client +``` + +NewClient reads QODER\_PAT and QODER\_FORWARD\_BASE\_URL. Explicit options win. + + +## type [ContentBlock]() + + + +```go +type ContentBlock struct { + Type string `json:"type" api:"required"` + Text string `json:"text"` + Thinking string `json:"thinking"` + Source ImageSource `json:"source"` + JSON struct { + Type respjson.Field + Text respjson.Field + Thinking respjson.Field + Source respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ContentBlock\) [RawJSON]() + +```go +func (r ContentBlock) RawJSON() string +``` + + + + +### func \(\*ContentBlock\) [UnmarshalJSON]() + +```go +func (r *ContentBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContentBlockParam]() + + + +```go +type ContentBlockParam struct { + Type string `json:"type" api:"required"` + Text param.Opt[string] `json:"text,omitzero"` + Thinking param.Opt[string] `json:"thinking,omitzero"` + Source ImageSourceParam `json:"source,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ContentBlockParam\) [MarshalJSON]() + +```go +func (r ContentBlockParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ContentBlockParam\) [UnmarshalJSON]() + +```go +func (r *ContentBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedChannel]() + + + +```go +type DeletedChannel struct { + // ID of the deleted Channel. + ID string `json:"id"` + // Whether the deletion succeeded; always `true` on success. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedChannel\) [RawJSON]() + +```go +func (r DeletedChannel) RawJSON() string +``` + + + + +### func \(\*DeletedChannel\) [UnmarshalJSON]() + +```go +func (r *DeletedChannel) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedChannelPairing]() + + + +```go +type DeletedChannelPairing struct { + // Pairing ID. + ID string `json:"id"` + // Whether the pairing was removed; `true` on success. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedChannelPairing\) [RawJSON]() + +```go +func (r DeletedChannelPairing) RawJSON() string +``` + + + + +### func \(\*DeletedChannelPairing\) [UnmarshalJSON]() + +```go +func (r *DeletedChannelPairing) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedIdentity]() + + + +```go +type DeletedIdentity struct { + // ID of the deleted Identity. + ID string `json:"id"` + // Whether the deletion completed. `true` in a successful response. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedIdentity\) [RawJSON]() + +```go +func (r DeletedIdentity) RawJSON() string +``` + + + + +### func \(\*DeletedIdentity\) [UnmarshalJSON]() + +```go +func (r *DeletedIdentity) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedMemory]() + + + +```go +type DeletedMemory struct { + // ID of the deleted Memory. + ID string `json:"id"` + // Always `memory_deleted`. + Type string `json:"type"` + // Whether the Memory was deleted. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Type respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedMemory\) [RawJSON]() + +```go +func (r DeletedMemory) RawJSON() string +``` + + + + +### func \(\*DeletedMemory\) [UnmarshalJSON]() + +```go +func (r *DeletedMemory) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedMemoryStore]() + + + +```go +type DeletedMemoryStore struct { + // ID of the deleted Memory Store. + ID string `json:"id"` + // Always `memory_store_deleted`. + Type string `json:"type"` + // Whether the Memory Store was deleted. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Type respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedMemoryStore\) [RawJSON]() + +```go +func (r DeletedMemoryStore) RawJSON() string +``` + + + + +### func \(\*DeletedMemoryStore\) [UnmarshalJSON]() + +```go +func (r *DeletedMemoryStore) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedMemoryStoreMount]() + + + +```go +type DeletedMemoryStoreMount struct { + // ID of the unmounted Memory Store. + ID string `json:"id"` + // Always `memory_store_binding_deleted`, as distinct from the `memory_store_deleted` + // returned when deleting a Store: this endpoint only removes the mount, and the Store + // itself continues to exist. + Type string `json:"type"` + // Whether the mount was removed. + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Type respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedMemoryStoreMount\) [RawJSON]() + +```go +func (r DeletedMemoryStoreMount) RawJSON() string +``` + + + + +### func \(\*DeletedMemoryStoreMount\) [UnmarshalJSON]() + +```go +func (r *DeletedMemoryStoreMount) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedSkillVersion]() + + + +```go +type DeletedSkillVersion struct { + // The deleted version number. + ID string `json:"id"` + // Always `"skill_version_deleted"` + Type string `json:"type"` + // Always `true` + Deleted bool `json:"deleted"` + JSON struct { + ID respjson.Field + Type respjson.Field + Deleted respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedSkillVersion\) [RawJSON]() + +```go +func (r DeletedSkillVersion) RawJSON() string +``` + + + + +### func \(\*DeletedSkillVersion\) [UnmarshalJSON]() + +```go +func (r *DeletedSkillVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfig]() + + + +```go +type EffectiveConfig struct { + // Always `effective_spec`. + Type string `json:"type"` + // Hash of the compiled Agent section. + AgentEffectiveHash string `json:"agent_effective_hash"` + // Hash of the compiled Session section. + SessionEffectiveHash string `json:"session_effective_hash"` + // Hash of the full effective configuration. + EffectiveHash string `json:"effective_hash"` + // Compiled Agent configuration. + Agent EffectiveConfigAgent `json:"agent"` + // Compiled Session defaults. + Session EffectiveConfigSession `json:"session"` + ID string `json:"id"` + IdentityID string `json:"identity_id"` + TemplateID string `json:"template_id"` + JSON struct { + Type respjson.Field + AgentEffectiveHash respjson.Field + SessionEffectiveHash respjson.Field + EffectiveHash respjson.Field + Agent respjson.Field + Session respjson.Field + ID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfig\) [RawJSON]() + +```go +func (r EffectiveConfig) RawJSON() string +``` + + + + +### func \(\*EffectiveConfig\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfigAgent]() + + + +```go +type EffectiveConfigAgent struct { + Model ModelConfig `json:"model"` + System string `json:"system"` + Tools []EffectiveConfigAgentToolsItem `json:"tools"` + MCPServers []map[string]any `json:"mcp_servers"` + Skills []map[string]any `json:"skills"` + JSON struct { + Model respjson.Field + System respjson.Field + Tools respjson.Field + MCPServers respjson.Field + Skills respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfigAgent\) [RawJSON]() + +```go +func (r EffectiveConfigAgent) RawJSON() string +``` + + + + +### func \(\*EffectiveConfigAgent\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfigAgent) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfigAgentToolsItem]() + + + +```go +type EffectiveConfigAgentToolsItem struct { + Type string `json:"type"` + Configs []EffectiveConfigAgentToolsItemConfigsItem `json:"configs"` + JSON struct { + Type respjson.Field + Configs respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfigAgentToolsItem\) [RawJSON]() + +```go +func (r EffectiveConfigAgentToolsItem) RawJSON() string +``` + + + + +### func \(\*EffectiveConfigAgentToolsItem\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfigAgentToolsItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfigAgentToolsItemConfigsItem]() + + + +```go +type EffectiveConfigAgentToolsItemConfigsItem struct { + Name string `json:"name"` + Enabled bool `json:"enabled"` + JSON struct { + Name respjson.Field + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfigAgentToolsItemConfigsItem\) [RawJSON]() + +```go +func (r EffectiveConfigAgentToolsItemConfigsItem) RawJSON() string +``` + + + + +### func \(\*EffectiveConfigAgentToolsItemConfigsItem\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfigAgentToolsItemConfigsItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfigSession]() + + + +```go +type EffectiveConfigSession struct { + EnvironmentID string `json:"environment_id"` + EnvironmentVariables map[string]string `json:"environment_variables"` + VaultIDs []string `json:"vault_ids"` + Resources []EffectiveConfigSessionResourcesItem `json:"resources"` + JSON struct { + EnvironmentID respjson.Field + EnvironmentVariables respjson.Field + VaultIDs respjson.Field + Resources respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfigSession\) [RawJSON]() + +```go +func (r EffectiveConfigSession) RawJSON() string +``` + + + + +### func \(\*EffectiveConfigSession\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfigSession) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffectiveConfigSessionResourcesItem]() + + + +```go +type EffectiveConfigSessionResourcesItem struct { + Type string `json:"type"` + FileID string `json:"file_id"` + URL string `json:"url"` + MountPath string `json:"mount_path"` + JSON struct { + Type respjson.Field + FileID respjson.Field + URL respjson.Field + MountPath respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffectiveConfigSessionResourcesItem\) [RawJSON]() + +```go +func (r EffectiveConfigSessionResourcesItem) RawJSON() string +``` + + + + +### func \(\*EffectiveConfigSessionResourcesItem\) [UnmarshalJSON]() + +```go +func (r *EffectiveConfigSessionResourcesItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [Environment]() + + + +```go +type Environment struct { + ID string `json:"id"` + Type string `json:"type"` + Name string `json:"name"` + Description string `json:"description"` + Config EnvironmentConfig `json:"config"` + Metadata map[string]any `json:"metadata"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + IdentityID string `json:"identity_id" api:"nullable"` + ArchivedAt time.Time `json:"archived_at" api:"nullable" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + Name respjson.Field + Description respjson.Field + Config respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + IdentityID respjson.Field + ArchivedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Environment\) [RawJSON]() + +```go +func (r Environment) RawJSON() string +``` + + + + +### func \(\*Environment\) [UnmarshalJSON]() + +```go +func (r *Environment) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentConfig]() + + + +```go +type EnvironmentConfig struct { + Type string `json:"type"` + Packages EnvironmentConfigPackages `json:"packages"` + JSON struct { + Type respjson.Field + Packages respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EnvironmentConfig\) [RawJSON]() + +```go +func (r EnvironmentConfig) RawJSON() string +``` + + + + +### func \(\*EnvironmentConfig\) [UnmarshalJSON]() + +```go +func (r *EnvironmentConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentConfigPackages]() + + + +```go +type EnvironmentConfigPackages struct { + Type string `json:"type"` + Apt []string `json:"apt"` + Cargo []string `json:"cargo"` + Gem []string `json:"gem"` + Go []string `json:"go"` + Npm []string `json:"npm"` + Pip []string `json:"pip"` + JSON struct { + Type respjson.Field + Apt respjson.Field + Cargo respjson.Field + Gem respjson.Field + Go respjson.Field + Npm respjson.Field + Pip respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EnvironmentConfigPackages\) [RawJSON]() + +```go +func (r EnvironmentConfigPackages) RawJSON() string +``` + + + + +### func \(\*EnvironmentConfigPackages\) [UnmarshalJSON]() + +```go +func (r *EnvironmentConfigPackages) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentListParams]() + + + +```go +type EnvironmentListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Pagination cursor (recommended); take the value from `next_page` in the previous + // response. Mutually exclusive with `after_id` and `before_id`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Cursor for paging forward; mutually exclusive with `page` and `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for paging backward; mutually exclusive with `page` and `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentListParams\) [URLQuery]() + +```go +func (r EnvironmentListParams) URLQuery() (url.Values, error) +``` + + + + +## type [EnvironmentNewParams]() + + + +```go +type EnvironmentNewParams struct { + // Environment name; must not be empty after trimming surrounding whitespace. + Name string `json:"name" api:"required"` + // Description. + Description param.Opt[string] `json:"description,omitzero"` + // Environment runtime configuration; defaults to `{"type":"cloud"}` when omitted. + // When passed explicitly it must not be `null` or an empty object. See the schemas + // for the available fields. + Config map[string]any `json:"config,omitzero"` + // [Environment metadata](./schemas.md#environment-metadata); defaults to `{}` when + // omitted and must not be `null` when passed explicitly. + Metadata map[string]any `json:"metadata,omitzero"` + // Recommended on create requests. The same key with the same request is safe to + // retry. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentNewParams\) [MarshalJSON]() + +```go +func (r EnvironmentNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentNewParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentService]() + +EnvironmentService provides Forward Environment operations. + +```go +type EnvironmentService struct { + Options []option.RequestOption +} +``` + + +### func [NewEnvironmentService]() + +```go +func NewEnvironmentService(opts ...option.RequestOption) EnvironmentService +``` + + + + +### func \(\*EnvironmentService\) [Archive]() + +```go +func (r *EnvironmentService) Archive(ctx context.Context, id string, opts ...option.RequestOption) (res *Environment, err error) +``` + +Archive an environment retained by historical sessions or tool calls. + + +### func \(\*EnvironmentService\) [Delete]() + +```go +func (r *EnvironmentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error) +``` + +Delete Environment + + +### func \(\*EnvironmentService\) [Get]() + +```go +func (r *EnvironmentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Environment, err error) +``` + +Get Environment + + +### func \(\*EnvironmentService\) [List]() + +```go +func (r *EnvironmentService) List(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Environment], err error) +``` + +List Environments + + +### func \(\*EnvironmentService\) [ListAutoPaging]() + +```go +func (r *EnvironmentService) ListAutoPaging(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Environment] +``` + + + + +### func \(\*EnvironmentService\) [New]() + +```go +func (r *EnvironmentService) New(ctx context.Context, params EnvironmentNewParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Create Environment + + +### func \(\*EnvironmentService\) [Update]() + +```go +func (r *EnvironmentService) Update(ctx context.Context, id string, params EnvironmentUpdateParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Update Environment + + +## type [EnvironmentUpdateParams]() + + + +```go +type EnvironmentUpdateParams struct { + // New name. + Name param.Opt[string] `json:"name,omitzero"` + // New description. + Description param.Opt[string] `json:"description,omitzero"` + // New configuration; must not be `null` when passed, an explicit `null` returns 400. + // See the schemas for the available fields. + Config map[string]any `json:"config,omitzero"` + // [Environment metadata](./schemas.md#environment-metadata) to merge; must not be + // `null` when passed, an explicit `null` returns 400. + Metadata map[string]any `json:"metadata,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentUpdateParams\) [MarshalJSON]() + +```go +func (r EnvironmentUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentUpdateParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentVariableOverride]() + + + +```go +type EnvironmentVariableOverride struct { + Op string `json:"op" api:"required"` + Value string `json:"value"` + JSON struct { + Op respjson.Field + Value respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EnvironmentVariableOverride\) [RawJSON]() + +```go +func (r EnvironmentVariableOverride) RawJSON() string +``` + + + + +### func \(\*EnvironmentVariableOverride\) [UnmarshalJSON]() + +```go +func (r *EnvironmentVariableOverride) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentVariableOverrideParam]() + + + +```go +type EnvironmentVariableOverrideParam struct { + Op string `json:"op" api:"required"` + Value param.Opt[string] `json:"value,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentVariableOverrideParam\) [MarshalJSON]() + +```go +func (r EnvironmentVariableOverrideParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentVariableOverrideParam\) [UnmarshalJSON]() + +```go +func (r *EnvironmentVariableOverrideParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentVariablesUnionParam]() + +EnvironmentVariablesUnionParam accepts an environment map or the legacy string form. Map values may be nil to express an explicit null during updates. + +```go +type EnvironmentVariablesUnionParam struct { + OfMap map[string]any `json:",omitzero,inline"` + OfString param.Opt[string] `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentVariablesUnionParam\) [MarshalJSON]() + +```go +func (r EnvironmentVariablesUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentVariablesUnionParam\) [UnmarshalJSON]() + +```go +func (r *EnvironmentVariablesUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Error]() + + + +```go +type Error = convention.Error +``` + + +## type [EventContentUnionParam]() + +EventContentUnionParam represents message blocks or a tool result payload. + +```go +type EventContentUnionParam struct { + OfBlocks []ContentBlockParam `json:",omitzero,inline"` + OfString param.Opt[string] `json:",omitzero,inline"` + OfObject map[string]any `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(EventContentUnionParam\) [MarshalJSON]() + +```go +func (r EventContentUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EventContentUnionParam\) [UnmarshalJSON]() + +```go +func (r *EventContentUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileListParams]() + + + +```go +type FileListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Pagination cursor (recommended), taken from `next_page` in the previous response; + // mutually exclusive with `after_id` and `before_id`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `page` and `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `page` and `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Search by filename. + Name param.Opt[string] `query:"name,omitzero" json:"-"` + // Filter by resource scope ID, commonly used to look up Session resource files. Do + // not combine it with `before_id` or `after_id`; cursor parameters currently have no + // effect in this filter mode. + ScopeID param.Opt[string] `query:"scope_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(FileListParams\) [URLQuery]() + +```go +func (r FileListParams) URLQuery() (url.Values, error) +``` + + + + +## type [FileMetadata]() + + + +```go +type FileMetadata struct { + // File ID. + ID string `json:"id"` + // Always `file`. + Type string `json:"type"` + // Filename. + Filename string `json:"filename"` + // File size in bytes. + SizeBytes int64 `json:"size_bytes"` + // MIME type. + MIMEType string `json:"mime_type"` + // Creation time in RFC 3339 format. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Last update time in RFC 3339 format. + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + // Whether the file can be downloaded. + Downloadable bool `json:"downloadable"` + // Resource scope the file belongs to, such as a Session. + Scope map[string]any `json:"scope" api:"nullable"` + // File metadata. + Metadata map[string]any `json:"metadata"` + // Owning Forward Identity. + IdentityID string `json:"identity_id" api:"nullable"` + JSON struct { + ID respjson.Field + Type respjson.Field + Filename respjson.Field + SizeBytes respjson.Field + MIMEType respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + Downloadable respjson.Field + Scope respjson.Field + Metadata respjson.Field + IdentityID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(FileMetadata\) [RawJSON]() + +```go +func (r FileMetadata) RawJSON() string +``` + + + + +### func \(\*FileMetadata\) [UnmarshalJSON]() + +```go +func (r *FileMetadata) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileService]() + +FileService provides Forward File operations. + +```go +type FileService struct { + Options []option.RequestOption +} +``` + + +### func [NewFileService]() + +```go +func NewFileService(opts ...option.RequestOption) FileService +``` + + + + +### func \(\*FileService\) [Delete]() + +```go +func (r *FileService) Delete(ctx context.Context, fileID string, opts ...option.RequestOption) (err error) +``` + +Delete File + + +### func \(\*FileService\) [Download]() + +```go +func (r *FileService) Download(ctx context.Context, fileID string, opts ...option.RequestOption) (res *http.Response, err error) +``` + +Download File + + +### func \(\*FileService\) [GetMetadata]() + +```go +func (r *FileService) GetMetadata(ctx context.Context, fileID string, opts ...option.RequestOption) (res *FileMetadata, err error) +``` + +Get File + + +### func \(\*FileService\) [List]() + +```go +func (r *FileService) List(ctx context.Context, params FileListParams, opts ...option.RequestOption) (res *pagination.PageCursor[FileMetadata], err error) +``` + +List Files + + +### func \(\*FileService\) [ListAutoPaging]() + +```go +func (r *FileService) ListAutoPaging(ctx context.Context, params FileListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[FileMetadata] +``` + + + + +### func \(\*FileService\) [Upload]() + +```go +func (r *FileService) Upload(ctx context.Context, params FileUploadParams, opts ...option.RequestOption) (res *FileMetadata, err error) +``` + +Upload File + + +## type [FileUploadParams]() + + + +```go +type FileUploadParams struct { + // Content of the file to upload. For accepted types see + // [Supported upload file types](./schemas.md). + File io.Reader `json:"file" api:"required" format:"binary"` + // Display name for the file; the multipart filename is used when omitted. After + // normalization the length must be 1-255 bytes. + Name param.Opt[string] `json:"name,omitzero"` + // Purpose of the file, defaults to `user_upload`; must be `session_resource` when the + // file is used as Batch input. + Purpose param.Opt[string] `json:"purpose,omitzero"` + // Metadata object. `created_by` is reserved and must not be sent (sending it returns + // 400). + Metadata map[string]any `json:"metadata,omitzero" api:"metadata"` + // Optional idempotency key for the create request. When set, the same key may only be + // reused for an identical request; when omitted no local idempotent replay protection + // is provided. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(FileUploadParams\) [MarshalMultipart]() + +```go +func (r FileUploadParams) MarshalMultipart() ([]byte, string, error) +``` + + + + +## type [GitHubRepository]() + + + +```go +type GitHubRepository struct { + URL string `json:"url"` + MountPath string `json:"mount_path"` + Enabled bool `json:"enabled"` + JSON struct { + URL respjson.Field + MountPath respjson.Field + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(GitHubRepository\) [RawJSON]() + +```go +func (r GitHubRepository) RawJSON() string +``` + + + + +### func \(\*GitHubRepository\) [UnmarshalJSON]() + +```go +func (r *GitHubRepository) UnmarshalJSON(data []byte) error +``` + + + + +## type [GitHubRepositoryParam]() + + + +```go +type GitHubRepositoryParam struct { + URL param.Opt[string] `json:"url,omitzero"` + MountPath param.Opt[string] `json:"mount_path,omitzero"` + Enabled param.Opt[bool] `json:"enabled,omitzero"` + AuthorizationToken param.Opt[string] `json:"authorization_token,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(GitHubRepositoryParam\) [MarshalJSON]() + +```go +func (r GitHubRepositoryParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*GitHubRepositoryParam\) [UnmarshalJSON]() + +```go +func (r *GitHubRepositoryParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Identity]() + + + +```go +type Identity struct { + // Forward Identity ID; the `idn_` prefix is recommended. + ID string `json:"id"` + // End-user ID in the integrator's system. + ExternalID string `json:"external_id"` + // Identity display name. + Name string `json:"name"` + // Identity type. A regular Identity returns `normal`. + IdentityType string `json:"identity_type"` + // Whether the Identity may continue to be used. + Enabled bool `json:"enabled"` + // Business metadata. + Metadata map[string]any `json:"metadata"` + // Creation time, in RFC 3339 format. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Last update time, in RFC 3339 format. + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON struct { + ID respjson.Field + ExternalID respjson.Field + Name respjson.Field + IdentityType respjson.Field + Enabled respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Identity\) [RawJSON]() + +```go +func (r Identity) RawJSON() string +``` + + + + +### func \(\*Identity\) [UnmarshalJSON]() + +```go +func (r *Identity) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityClearParams]() + + + +```go +type IdentityClearParams struct { + // Reason for clearing; recorded only to capture the caller's intent. + Reason param.Opt[string] `json:"reason,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityClearParams\) [MarshalJSON]() + +```go +func (r IdentityClearParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityClearParams\) [UnmarshalJSON]() + +```go +func (r *IdentityClearParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityClearResponse]() + + + +```go +type IdentityClearResponse struct { + // ID of the cleared Identity. + IdentityID string `json:"identity_id"` + // Clear status; `completed` on success. + Status string `json:"status"` + // Time the Forward-side cleanup completed, in RFC 3339 format. + CompletedAt time.Time `json:"completed_at" format:"date-time"` + Summary IdentityClearResponseSummary `json:"summary"` + JSON struct { + IdentityID respjson.Field + Status respjson.Field + CompletedAt respjson.Field + Summary respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityClearResponse\) [RawJSON]() + +```go +func (r IdentityClearResponse) RawJSON() string +``` + + + + +### func \(\*IdentityClearResponse\) [UnmarshalJSON]() + +```go +func (r *IdentityClearResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityClearResponseSummary]() + + + +```go +type IdentityClearResponseSummary struct { + IdentityConfigsArchived int64 `json:"identity_configs_archived"` + ResourceBindingsArchived int64 `json:"resource_bindings_archived"` + IdentityOwnedResourcesArchived int64 `json:"identity_owned_resources_archived"` + SchedulesArchived int64 `json:"schedules_archived"` + ScheduleRunsSkipped int64 `json:"schedule_runs_skipped"` + SessionsArchived int64 `json:"sessions_archived"` + JSON struct { + IdentityConfigsArchived respjson.Field + ResourceBindingsArchived respjson.Field + IdentityOwnedResourcesArchived respjson.Field + SchedulesArchived respjson.Field + ScheduleRunsSkipped respjson.Field + SessionsArchived respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityClearResponseSummary\) [RawJSON]() + +```go +func (r IdentityClearResponseSummary) RawJSON() string +``` + + + + +### func \(\*IdentityClearResponseSummary\) [UnmarshalJSON]() + +```go +func (r *IdentityClearResponseSummary) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityConfig]() + + + +```go +type IdentityConfig struct { + // Always `config`. + Type string `json:"type"` + ID string `json:"id"` + // Forward Identity ID. + IdentityID string `json:"identity_id"` + // Forward Template ID. + TemplateID string `json:"template_id"` + Name string `json:"name"` + Status string `json:"status"` + // Hash of the compiled Effective Config. + EffectiveHash string `json:"effective_hash"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + IdentityConfig IdentityConfigSpec `json:"identity_config"` + // Business metadata. + Metadata map[string]any `json:"metadata"` + JSON struct { + Type respjson.Field + ID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + Name respjson.Field + Status respjson.Field + EffectiveHash respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + IdentityConfig respjson.Field + Metadata respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityConfig\) [RawJSON]() + +```go +func (r IdentityConfig) RawJSON() string +``` + + + + +### func \(\*IdentityConfig\) [UnmarshalJSON]() + +```go +func (r *IdentityConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityConfigListParams]() + + + +```go +type IdentityConfigListParams struct { + // Filter by Forward Template ID. + TemplateID param.Opt[string] `query:"template_id,omitzero" json:"-"` + // Filter by `active` or `archived`. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page, taken from `last_id` in the previous response. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page, taken from `first_id` in the previous response. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityConfigListParams\) [URLQuery]() + +```go +func (r IdentityConfigListParams) URLQuery() (url.Values, error) +``` + + + + +## type [IdentityConfigService]() + +IdentityConfigService provides Forward IdentityConfig operations. + +```go +type IdentityConfigService struct { + Options []option.RequestOption +} +``` + + +### func [NewIdentityConfigService]() + +```go +func NewIdentityConfigService(opts ...option.RequestOption) IdentityConfigService +``` + + + + +### func \(\*IdentityConfigService\) [Get]() + +```go +func (r *IdentityConfigService) Get(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption) (res *IdentityConfig, err error) +``` + +Get Identity Config + + +### func \(\*IdentityConfigService\) [GetEffective]() + +```go +func (r *IdentityConfigService) GetEffective(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption) (res *EffectiveConfig, err error) +``` + +Get Effective Config + + +### func \(\*IdentityConfigService\) [List]() + +```go +func (r *IdentityConfigService) List(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption) (res *pagination.Page[IdentityConfig], err error) +``` + +List Identity Configs + + +### func \(\*IdentityConfigService\) [ListAutoPaging]() + +```go +func (r *IdentityConfigService) ListAutoPaging(ctx context.Context, identityID string, params IdentityConfigListParams, opts ...option.RequestOption) *pagination.PageAutoPager[IdentityConfig] +``` + + + + +### func \(\*IdentityConfigService\) [Upsert]() + +```go +func (r *IdentityConfigService) Upsert(ctx context.Context, identityID string, templateID string, params IdentityConfigUpsertParams, opts ...option.RequestOption) (res *IdentityConfig, err error) +``` + +Create or update Identity Config + + +## type [IdentityConfigSpec]() + + + +```go +type IdentityConfigSpec struct { + System SystemOverride `json:"system"` + Model ModelConfig `json:"model"` + Tools map[string]ToolOverride `json:"tools"` + MCPServers map[string]MCPServerOverride `json:"mcp_servers"` + Skills map[string]SkillOverride `json:"skills"` + Toolsets map[string]any `json:"toolsets"` + AgentMetadata map[string]any `json:"agent_metadata"` + Vaults map[string]ResourceBinding `json:"vaults"` + Files map[string]ResourceBinding `json:"files"` + GitHubRepositories map[string]GitHubRepository `json:"github_repositories"` + EnvironmentVariables map[string]EnvironmentVariableOverride `json:"environment_variables"` + JSON struct { + System respjson.Field + Model respjson.Field + Tools respjson.Field + MCPServers respjson.Field + Skills respjson.Field + Toolsets respjson.Field + AgentMetadata respjson.Field + Vaults respjson.Field + Files respjson.Field + GitHubRepositories respjson.Field + EnvironmentVariables respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityConfigSpec\) [RawJSON]() + +```go +func (r IdentityConfigSpec) RawJSON() string +``` + + + + +### func \(\*IdentityConfigSpec\) [UnmarshalJSON]() + +```go +func (r *IdentityConfigSpec) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityConfigSpecParam]() + + + +```go +type IdentityConfigSpecParam struct { + System SystemOverrideParam `json:"system,omitzero"` + Model ModelConfigUnionParam `json:"model,omitzero"` + Tools map[string]ToolOverrideParam `json:"tools,omitzero"` + MCPServers map[string]MCPServerOverrideParam `json:"mcp_servers,omitzero"` + Skills map[string]SkillOverrideParam `json:"skills,omitzero"` + Toolsets map[string]any `json:"toolsets,omitzero"` + AgentMetadata map[string]any `json:"agent_metadata,omitzero"` + Vaults map[string]ResourceBindingParam `json:"vaults,omitzero"` + Files map[string]ResourceBindingParam `json:"files,omitzero"` + GitHubRepositories map[string]GitHubRepositoryParam `json:"github_repositories,omitzero"` + EnvironmentVariables map[string]EnvironmentVariableOverrideParam `json:"environment_variables,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityConfigSpecParam\) [MarshalJSON]() + +```go +func (r IdentityConfigSpecParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityConfigSpecParam\) [UnmarshalJSON]() + +```go +func (r *IdentityConfigSpecParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityConfigUpsertParams]() + + + +```go +type IdentityConfigUpsertParams struct { + // Display name for the Config. + Name param.Opt[string] `json:"name,omitzero"` + // User-level configuration overrides. + IdentityConfig IdentityConfigSpecParam `json:"identity_config" api:"required"` + // Business metadata; when sent it replaces the existing metadata entirely. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityConfigUpsertParams\) [MarshalJSON]() + +```go +func (r IdentityConfigUpsertParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityConfigUpsertParams\) [UnmarshalJSON]() + +```go +func (r *IdentityConfigUpsertParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityListParams]() + + + +```go +type IdentityListParams struct { + // Filter by the integrator's end-user ID. + ExternalID param.Opt[string] `query:"external_id,omitzero" json:"-"` + // Filter by multiple Identity IDs; accepts a comma-separated list or repeated + // query parameters, up to 100 after deduplication. + IdentityIDs []string `query:"identity_ids,omitzero" json:"-"` + // Matches the Identity ID, name or external ID. + Search param.Opt[string] `query:"search,omitzero" json:"-"` + // Filter by enabled state; a non-boolean value returns 400. + Enabled param.Opt[bool] `query:"enabled,omitzero" json:"-"` + // Page size, maximum 100; larger values are clamped to the maximum. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page; cannot be combined with `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; cannot be combined with `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityListParams\) [URLQuery]() + +```go +func (r IdentityListParams) URLQuery() (url.Values, error) +``` + + + + +## type [IdentityListTemplatesResponse]() + + + +```go +type IdentityListTemplatesResponse struct { + Data []IdentityTemplate `json:"data"` + JSON struct { + Data respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityListTemplatesResponse\) [RawJSON]() + +```go +func (r IdentityListTemplatesResponse) RawJSON() string +``` + + + + +### func \(\*IdentityListTemplatesResponse\) [UnmarshalJSON]() + +```go +func (r *IdentityListTemplatesResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityMemoryStoreListResponse]() + + + +```go +type IdentityMemoryStoreListResponse struct { + Data []MemoryStoreMount `json:"data"` + HasMore bool `json:"has_more"` + JSON struct { + Data respjson.Field + HasMore respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityMemoryStoreListResponse\) [RawJSON]() + +```go +func (r IdentityMemoryStoreListResponse) RawJSON() string +``` + + + + +### func \(\*IdentityMemoryStoreListResponse\) [UnmarshalJSON]() + +```go +func (r *IdentityMemoryStoreListResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityMemoryStoreMountParams]() + + + +```go +type IdentityMemoryStoreMountParams struct { + // ID of the Memory Store to mount (`memstore_...`). It must be an active Store + // visible to the caller. + MemoryStoreID string `json:"memory_store_id" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityMemoryStoreMountParams\) [MarshalJSON]() + +```go +func (r IdentityMemoryStoreMountParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityMemoryStoreMountParams\) [UnmarshalJSON]() + +```go +func (r *IdentityMemoryStoreMountParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityMemoryStoreService]() + +IdentityMemoryStoreService provides Forward IdentityMemoryStore operations. + +```go +type IdentityMemoryStoreService struct { + Options []option.RequestOption +} +``` + + +### func [NewIdentityMemoryStoreService]() + +```go +func NewIdentityMemoryStoreService(opts ...option.RequestOption) IdentityMemoryStoreService +``` + + + + +### func \(\*IdentityMemoryStoreService\) [Detach]() + +```go +func (r *IdentityMemoryStoreService) Detach(ctx context.Context, identityID string, templateID string, memoryStoreID string, opts ...option.RequestOption) (res *DeletedMemoryStoreMount, err error) +``` + +Unmount Memory Store from an Identity + + +### func \(\*IdentityMemoryStoreService\) [List]() + +```go +func (r *IdentityMemoryStoreService) List(ctx context.Context, identityID string, templateID string, opts ...option.RequestOption) (res *IdentityMemoryStoreListResponse, err error) +``` + +List Memory Store mounts on an Identity + + +### func \(\*IdentityMemoryStoreService\) [Mount]() + +```go +func (r *IdentityMemoryStoreService) Mount(ctx context.Context, identityID string, templateID string, params IdentityMemoryStoreMountParams, opts ...option.RequestOption) (res *MemoryStoreMount, err error) +``` + +Mount Memory Store on an Identity + + +## type [IdentityNewParams]() + + + +```go +type IdentityNewParams struct { + // End-user ID in the integrator's system; cannot be empty or whitespace only. + ExternalID string `json:"external_id" api:"required"` + // Display name; when provided it cannot be empty or whitespace only. + Name param.Opt[string] `json:"name,omitzero"` + // Whether the Identity is enabled; defaults to `true`. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Business metadata; at most 16 keys is recommended. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityNewParams\) [MarshalJSON]() + +```go +func (r IdentityNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityNewParams\) [UnmarshalJSON]() + +```go +func (r *IdentityNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityService]() + +IdentityService provides Forward Identity operations. + +```go +type IdentityService struct { + Options []option.RequestOption + Configs IdentityConfigService + MemoryStores IdentityMemoryStoreService +} +``` + + +### func [NewIdentityService]() + +```go +func NewIdentityService(opts ...option.RequestOption) IdentityService +``` + + + + +### func \(\*IdentityService\) [Clear]() + +```go +func (r *IdentityService) Clear(ctx context.Context, identityID string, params IdentityClearParams, opts ...option.RequestOption) (res *IdentityClearResponse, err error) +``` + +Clear Identity + + +### func \(\*IdentityService\) [Delete]() + +```go +func (r *IdentityService) Delete(ctx context.Context, identityID string, opts ...option.RequestOption) (res *DeletedIdentity, err error) +``` + +Delete Identity + + +### func \(\*IdentityService\) [Disable]() + +```go +func (r *IdentityService) Disable(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error) +``` + +Disable Identity + + +### func \(\*IdentityService\) [Enable]() + +```go +func (r *IdentityService) Enable(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error) +``` + +Enable Identity + + +### func \(\*IdentityService\) [EnsureAdmin]() + +```go +func (r *IdentityService) EnsureAdmin(ctx context.Context, opts ...option.RequestOption) (res *Identity, err error) +``` + +Ensure the admin Identity + + +### func \(\*IdentityService\) [Get]() + +```go +func (r *IdentityService) Get(ctx context.Context, identityID string, opts ...option.RequestOption) (res *Identity, err error) +``` + +Get Identity + + +### func \(\*IdentityService\) [List]() + +```go +func (r *IdentityService) List(ctx context.Context, params IdentityListParams, opts ...option.RequestOption) (res *pagination.Page[Identity], err error) +``` + +List Identities + + +### func \(\*IdentityService\) [ListAutoPaging]() + +```go +func (r *IdentityService) ListAutoPaging(ctx context.Context, params IdentityListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Identity] +``` + + + + +### func \(\*IdentityService\) [ListTemplates]() + +```go +func (r *IdentityService) ListTemplates(ctx context.Context, identityID string, opts ...option.RequestOption) (res *IdentityListTemplatesResponse, err error) +``` + +List Templates used by an Identity + + +### func \(\*IdentityService\) [New]() + +```go +func (r *IdentityService) New(ctx context.Context, params IdentityNewParams, opts ...option.RequestOption) (res *Identity, err error) +``` + +Create Identity + + +### func \(\*IdentityService\) [Stats]() + +```go +func (r *IdentityService) Stats(ctx context.Context, opts ...option.RequestOption) (res *IdentityStats, err error) +``` + +Get Identity stats + + +### func \(\*IdentityService\) [Update]() + +```go +func (r *IdentityService) Update(ctx context.Context, identityID string, params IdentityUpdateParams, opts ...option.RequestOption) (res *Identity, err error) +``` + +Update Identity + + +## type [IdentityStats]() + + + +```go +type IdentityStats struct { + // Total number of Identities for the current account. + TotalIdentities int64 `json:"total_identities"` + // Number of recently active Identities. + ActiveIdentities int64 `json:"active_identities"` + // Total number of Templates the current account has used. + TotalAgents int64 `json:"total_agents"` + // Total number of Sessions for the current account. + TotalSessions int64 `json:"total_sessions"` + JSON struct { + TotalIdentities respjson.Field + ActiveIdentities respjson.Field + TotalAgents respjson.Field + TotalSessions respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityStats\) [RawJSON]() + +```go +func (r IdentityStats) RawJSON() string +``` + + + + +### func \(\*IdentityStats\) [UnmarshalJSON]() + +```go +func (r *IdentityStats) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityTemplate]() + + + +```go +type IdentityTemplate struct { + TemplateID string `json:"template_id"` + TemplateName string `json:"template_name"` + SessionCount int64 `json:"session_count"` + LastActiveAt time.Time `json:"last_active_at" format:"date-time"` + JSON struct { + TemplateID respjson.Field + TemplateName respjson.Field + SessionCount respjson.Field + LastActiveAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(IdentityTemplate\) [RawJSON]() + +```go +func (r IdentityTemplate) RawJSON() string +``` + + + + +### func \(\*IdentityTemplate\) [UnmarshalJSON]() + +```go +func (r *IdentityTemplate) UnmarshalJSON(data []byte) error +``` + + + + +## type [IdentityUpdateParams]() + + + +```go +type IdentityUpdateParams struct { + // Replaces the existing end-user ID. + ExternalID param.Opt[string] `json:"external_id,omitzero"` + // Replaces the display name. + Name param.Opt[string] `json:"name,omitzero"` + // Updates whether the Identity is usable. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Merges updates into the business metadata; an empty string value deletes the + // corresponding key. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(IdentityUpdateParams\) [MarshalJSON]() + +```go +func (r IdentityUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*IdentityUpdateParams\) [UnmarshalJSON]() + +```go +func (r *IdentityUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ImageSource]() + + + +```go +type ImageSource struct { + Type string `json:"type" api:"required"` + MediaType string `json:"media_type"` + Data string `json:"data"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + Type respjson.Field + MediaType respjson.Field + Data respjson.Field + URL respjson.Field + FileID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ImageSource\) [RawJSON]() + +```go +func (r ImageSource) RawJSON() string +``` + + + + +### func \(\*ImageSource\) [UnmarshalJSON]() + +```go +func (r *ImageSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ImageSourceParam]() + + + +```go +type ImageSourceParam struct { + Type string `json:"type" api:"required"` + MediaType param.Opt[string] `json:"media_type,omitzero"` + Data param.Opt[string] `json:"data,omitzero"` + URL param.Opt[string] `json:"url,omitzero"` + FileID param.Opt[string] `json:"file_id,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ImageSourceParam\) [MarshalJSON]() + +```go +func (r ImageSourceParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *ImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [MCPServer]() + + + +```go +type MCPServer struct { + Type string `json:"type"` + Name string `json:"name" api:"required"` + URL string `json:"url" api:"required"` + JSON struct { + Type respjson.Field + Name respjson.Field + URL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MCPServer\) [RawJSON]() + +```go +func (r MCPServer) RawJSON() string +``` + + + + +### func \(\*MCPServer\) [UnmarshalJSON]() + +```go +func (r *MCPServer) UnmarshalJSON(data []byte) error +``` + + + + +## type [MCPServerOverride]() + + + +```go +type MCPServerOverride struct { + Enabled bool `json:"enabled"` + Type string `json:"type"` + URL string `json:"url"` + JSON struct { + Enabled respjson.Field + Type respjson.Field + URL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MCPServerOverride\) [RawJSON]() + +```go +func (r MCPServerOverride) RawJSON() string +``` + + + + +### func \(\*MCPServerOverride\) [UnmarshalJSON]() + +```go +func (r *MCPServerOverride) UnmarshalJSON(data []byte) error +``` + + + + +## type [MCPServerOverrideParam]() + + + +```go +type MCPServerOverrideParam struct { + Enabled param.Opt[bool] `json:"enabled,omitzero"` + Type param.Opt[string] `json:"type,omitzero"` + URL param.Opt[string] `json:"url,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(MCPServerOverrideParam\) [MarshalJSON]() + +```go +func (r MCPServerOverrideParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MCPServerOverrideParam\) [UnmarshalJSON]() + +```go +func (r *MCPServerOverrideParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [MCPServerParam]() + + + +```go +type MCPServerParam struct { + Type param.Opt[string] `json:"type,omitzero"` + Name string `json:"name" api:"required"` + URL string `json:"url" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(MCPServerParam\) [MarshalJSON]() + +```go +func (r MCPServerParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MCPServerParam\) [UnmarshalJSON]() + +```go +func (r *MCPServerParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Memory]() + + + +```go +type Memory struct { + ID string `json:"id"` + Type string `json:"type"` + MemoryStoreID string `json:"memory_store_id"` + Path string `json:"path"` + ContentSizeBytes int64 `json:"content_size_bytes"` + ContentSHA256 string `json:"content_sha256"` + Metadata map[string]any `json:"metadata"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + Content string `json:"content"` + JSON struct { + ID respjson.Field + Type respjson.Field + MemoryStoreID respjson.Field + Path respjson.Field + ContentSizeBytes respjson.Field + ContentSHA256 respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + Content respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Memory\) [RawJSON]() + +```go +func (r Memory) RawJSON() string +``` + + + + +### func \(\*Memory\) [UnmarshalJSON]() + +```go +func (r *Memory) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStore]() + + + +```go +type MemoryStore struct { + ID string `json:"id"` + Type string `json:"type"` + Name string `json:"name"` + Description string `json:"description"` + Status string `json:"status"` + EntryCount int64 `json:"entry_count"` + TotalSize int64 `json:"total_size"` + Metadata map[string]any `json:"metadata"` + SystemManaged bool `json:"system_managed"` + IdentityID string `json:"identity_id" api:"nullable"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + ArchivedAt time.Time `json:"archived_at" api:"nullable" format:"date-time"` + BindingInfo map[string]int64 `json:"binding_info"` + JSON struct { + ID respjson.Field + Type respjson.Field + Name respjson.Field + Description respjson.Field + Status respjson.Field + EntryCount respjson.Field + TotalSize respjson.Field + Metadata respjson.Field + SystemManaged respjson.Field + IdentityID respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ArchivedAt respjson.Field + BindingInfo respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MemoryStore\) [RawJSON]() + +```go +func (r MemoryStore) RawJSON() string +``` + + + + +### func \(\*MemoryStore\) [UnmarshalJSON]() + +```go +func (r *MemoryStore) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreListParams]() + + + +```go +type MemoryStoreListParams struct { + // Maximum number of items per page, 1..100, defaults to 20. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the previous page, mutually exclusive with `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Cursor for the next page, mutually exclusive with `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Three-state filter: `true` returns only system default stores; `false` returns only + // user-created stores; omit it to apply no filter. + SystemManaged param.Opt[bool] `query:"system_managed,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreListParams\) [URLQuery]() + +```go +func (r MemoryStoreListParams) URLQuery() (url.Values, error) +``` + + + + +## type [MemoryStoreMemoryListParams]() + + + +```go +type MemoryStoreMemoryListParams struct { + // Maximum number of entries per page, 1..100, default 20. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Filter by `path` prefix. **This is a plain string prefix match, not directory + // semantics** — `path_prefix=a/b` also matches `a/bc.md`. + PathPrefix param.Opt[string] `query:"path_prefix,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryListParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryListParams) URLQuery() (url.Values, error) +``` + + + + +## type [MemoryStoreMemoryNewParams]() + + + +```go +type MemoryStoreMemoryNewParams struct { + // Path relative to the store root, case-sensitive; it must be relative, with no + // leading `/`. + Path string `json:"path" api:"required"` + // UTF-8 plain text content, not base64; at most 100 KiB of raw bytes. + Content string `json:"content" api:"required"` + // Key-value metadata whose values must be strings, up to **16** keys. + Metadata map[string]any `json:"metadata,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryNewParams\) [MarshalJSON]() + +```go +func (r MemoryStoreMemoryNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MemoryStoreMemoryNewParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreMemoryNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreMemoryService]() + +MemoryStoreMemoryService provides Forward MemoryStoreMemory operations. + +```go +type MemoryStoreMemoryService struct { + Options []option.RequestOption +} +``` + + +### func [NewMemoryStoreMemoryService]() + +```go +func NewMemoryStoreMemoryService(opts ...option.RequestOption) MemoryStoreMemoryService +``` + + + + +### func \(\*MemoryStoreMemoryService\) [Delete]() + +```go +func (r *MemoryStoreMemoryService) Delete(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption) (res *DeletedMemory, err error) +``` + +Delete Memory + + +### func \(\*MemoryStoreMemoryService\) [Get]() + +```go +func (r *MemoryStoreMemoryService) Get(ctx context.Context, memoryStoreID string, memoryID string, opts ...option.RequestOption) (res *Memory, err error) +``` + +Get Memory + + +### func \(\*MemoryStoreMemoryService\) [List]() + +```go +func (r *MemoryStoreMemoryService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) (res *pagination.Page[Memory], err error) +``` + +List Memories + + +### func \(\*MemoryStoreMemoryService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreMemoryService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Memory] +``` + + + + +### func \(\*MemoryStoreMemoryService\) [New]() + +```go +func (r *MemoryStoreMemoryService) New(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryNewParams, opts ...option.RequestOption) (res *Memory, err error) +``` + +Create Memory + + +### func \(\*MemoryStoreMemoryService\) [Update]() + +```go +func (r *MemoryStoreMemoryService) Update(ctx context.Context, memoryStoreID string, memoryID string, params MemoryStoreMemoryUpdateParams, opts ...option.RequestOption) (res *Memory, err error) +``` + +Update Memory + + +## type [MemoryStoreMemoryUpdateParams]() + + + +```go +type MemoryStoreMemoryUpdateParams struct { + // New content as UTF-8 plain text; at most 100 KiB of raw bytes. + Content string `json:"content" api:"required"` + // Expected SHA-256 of the current content, for optimistic concurrency control. + // Returns `409` when it does not match. + ContentSHA256 param.Opt[string] `json:"content_sha256,omitzero"` + // New metadata, which **replaces** the current metadata wholesale rather than + // merging into it. Omit to leave the existing metadata unchanged. + Metadata map[string]any `json:"metadata,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryUpdateParams\) [MarshalJSON]() + +```go +func (r MemoryStoreMemoryUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MemoryStoreMemoryUpdateParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreMemoryUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreMemoryVersionListParams]() + + + +```go +type MemoryStoreMemoryVersionListParams struct { + // Maximum number of entries per page, 1..100, default 20. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Return only versions of this memory (`mem_...`), to inspect the change history of + // a single entry. + MemoryID param.Opt[string] `query:"memory_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryVersionListParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryVersionListParams) URLQuery() (url.Values, error) +``` + + + + +## type [MemoryStoreMemoryVersionService]() + +MemoryStoreMemoryVersionService provides Forward MemoryStoreMemoryVersion operations. + +```go +type MemoryStoreMemoryVersionService struct { + Options []option.RequestOption +} +``` + + +### func [NewMemoryStoreMemoryVersionService]() + +```go +func NewMemoryStoreMemoryVersionService(opts ...option.RequestOption) MemoryStoreMemoryVersionService +``` + + + + +### func \(\*MemoryStoreMemoryVersionService\) [Get]() + +```go +func (r *MemoryStoreMemoryVersionService) Get(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption) (res *MemoryVersion, err error) +``` + +Get Memory version + + +### func \(\*MemoryStoreMemoryVersionService\) [List]() + +```go +func (r *MemoryStoreMemoryVersionService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) (res *pagination.Page[MemoryVersion], err error) +``` + +List Memory versions + + +### func \(\*MemoryStoreMemoryVersionService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreMemoryVersionService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) *pagination.PageAutoPager[MemoryVersion] +``` + + + + +### func \(\*MemoryStoreMemoryVersionService\) [Redact]() + +```go +func (r *MemoryStoreMemoryVersionService) Redact(ctx context.Context, memoryStoreID string, memoryVersionID string, opts ...option.RequestOption) (res *MemoryVersion, err error) +``` + +Redact Memory version + + +## type [MemoryStoreMount]() + + + +```go +type MemoryStoreMount struct { + MemoryStoreID string `json:"memory_store_id"` + IdentityID string `json:"identity_id"` + TemplateID string `json:"template_id"` + Access string `json:"access"` + SystemManaged bool `json:"system_managed"` + Name string `json:"name"` + Status string `json:"status"` + EntryCount int64 `json:"entry_count"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + JSON struct { + MemoryStoreID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + Access respjson.Field + SystemManaged respjson.Field + Name respjson.Field + Status respjson.Field + EntryCount respjson.Field + CreatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MemoryStoreMount\) [RawJSON]() + +```go +func (r MemoryStoreMount) RawJSON() string +``` + + + + +### func \(\*MemoryStoreMount\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreMount) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreNewParams]() + + + +```go +type MemoryStoreNewParams struct { + // Display name for the store, non-empty. Non-printable control characters + // (`U+0000`–`U+001F`, `U+007F`) are not allowed, except newline `\n`, carriage return + // `\r` and tab `\t`. + Name string `json:"name" api:"required"` + // Free-text description. Non-printable control characters are not allowed. + Description param.Opt[string] `json:"description,omitzero"` + // Key-value metadata whose values must be strings. At most **15** keys; keys 1..64 + // characters; values ≤512 characters. `created_by` is a Forward reserved key that the + // server fills in with `"forward"`; sending `created_by` returns + // `400 invalid_request_error`. See the Store metadata constraints in the MemoryStore + // data structure reference for details. + Metadata map[string]any `json:"metadata,omitzero"` + // Idempotency key for the create request. The same key may only be reused with an + // identical request body; omitting it returns `400`. + IdempotencyKey string `header:"Idempotency-Key,omitzero" json:"-" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreNewParams\) [MarshalJSON]() + +```go +func (r MemoryStoreNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MemoryStoreNewParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreService]() + +MemoryStoreService provides Forward MemoryStore operations. + +```go +type MemoryStoreService struct { + Options []option.RequestOption + Memories MemoryStoreMemoryService + MemoryVersions MemoryStoreMemoryVersionService +} +``` + + +### func [NewMemoryStoreService]() + +```go +func NewMemoryStoreService(opts ...option.RequestOption) MemoryStoreService +``` + + + + +### func \(\*MemoryStoreService\) [Archive]() + +```go +func (r *MemoryStoreService) Archive(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *MemoryStore, err error) +``` + +Archive Memory Store + + +### func \(\*MemoryStoreService\) [Delete]() + +```go +func (r *MemoryStoreService) Delete(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *DeletedMemoryStore, err error) +``` + +Delete Memory Store + + +### func \(\*MemoryStoreService\) [Get]() + +```go +func (r *MemoryStoreService) Get(ctx context.Context, memoryStoreID string, opts ...option.RequestOption) (res *MemoryStore, err error) +``` + +Get Memory Store + + +### func \(\*MemoryStoreService\) [List]() + +```go +func (r *MemoryStoreService) List(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) (res *pagination.Page[MemoryStore], err error) +``` + +List Memory Stores + + +### func \(\*MemoryStoreService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreService) ListAutoPaging(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) *pagination.PageAutoPager[MemoryStore] +``` + + + + +### func \(\*MemoryStoreService\) [New]() + +```go +func (r *MemoryStoreService) New(ctx context.Context, params MemoryStoreNewParams, opts ...option.RequestOption) (res *MemoryStore, err error) +``` + +Create Memory Store + + +### func \(\*MemoryStoreService\) [Update]() + +```go +func (r *MemoryStoreService) Update(ctx context.Context, memoryStoreID string, params MemoryStoreUpdateParams, opts ...option.RequestOption) (res *MemoryStore, err error) +``` + +Update Memory Store + + +## type [MemoryStoreUpdateParams]() + + + +```go +type MemoryStoreUpdateParams struct { + // New name. Must be non-empty and free of non-printable control characters when sent. + Name param.Opt[string] `json:"name,omitzero"` + // New description. Must be free of non-printable control characters when sent. + Description param.Opt[string] `json:"description,omitzero"` + // New metadata that **replaces** the current metadata entirely (not a merge). See the + // Store metadata constraints in the MemoryStore data structure reference for details. + Metadata map[string]any `json:"metadata,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreUpdateParams\) [MarshalJSON]() + +```go +func (r MemoryStoreUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MemoryStoreUpdateParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryVersion]() + + + +```go +type MemoryVersion struct { + ID string `json:"id"` + Type string `json:"type"` + MemoryStoreID string `json:"memory_store_id"` + MemoryID string `json:"memory_id"` + Path string `json:"path"` + ContentSizeBytes int64 `json:"content_size_bytes"` + ContentSHA256 string `json:"content_sha256"` + Operation string `json:"operation"` + Redacted bool `json:"redacted"` + RedactedAt time.Time `json:"redacted_at" api:"nullable" format:"date-time"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Content json.RawMessage `json:"content"` + JSON struct { + ID respjson.Field + Type respjson.Field + MemoryStoreID respjson.Field + MemoryID respjson.Field + Path respjson.Field + ContentSizeBytes respjson.Field + ContentSHA256 respjson.Field + Operation respjson.Field + Redacted respjson.Field + RedactedAt respjson.Field + CreatedAt respjson.Field + Content respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MemoryVersion\) [RawJSON]() + +```go +func (r MemoryVersion) RawJSON() string +``` + + + + +### func \(\*MemoryVersion\) [UnmarshalJSON]() + +```go +func (r *MemoryVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [Model]() + + + +```go +type Model struct { + ID string `json:"id"` + DisplayName string `json:"display_name"` + IsEnabled bool `json:"is_enabled"` + IsNew bool `json:"is_new"` + IsVl bool `json:"is_vl"` + SupportDisableReasoning bool `json:"support_disable_reasoning"` + PriceFactor float64 `json:"price_factor"` + Efforts []string `json:"efforts"` + DefaultEffort string `json:"default_effort"` + Speed []string `json:"speed"` + MaxInputTokens int64 `json:"max_input_tokens"` + DefaultContextWindow int64 `json:"default_context_window"` + AvailableContextWindows []int64 `json:"available_context_windows"` + JSON struct { + ID respjson.Field + DisplayName respjson.Field + IsEnabled respjson.Field + IsNew respjson.Field + IsVl respjson.Field + SupportDisableReasoning respjson.Field + PriceFactor respjson.Field + Efforts respjson.Field + DefaultEffort respjson.Field + Speed respjson.Field + MaxInputTokens respjson.Field + DefaultContextWindow respjson.Field + AvailableContextWindows respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Model\) [RawJSON]() + +```go +func (r Model) RawJSON() string +``` + + + + +### func \(\*Model\) [UnmarshalJSON]() + +```go +func (r *Model) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelConfig]() + +ModelConfig preserves either a model ID string or an object from the API. ID is populated for both shapes; RawJSON retains the original representation. + +```go +type ModelConfig struct { + ID string `json:"id"` + Effort string `json:"effort"` + ContextWindow int64 `json:"context_window"` + JSON struct { + ID respjson.Field + Effort respjson.Field + ContextWindow respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ModelConfig\) [RawJSON]() + +```go +func (r ModelConfig) RawJSON() string +``` + + + + +### func \(\*ModelConfig\) [UnmarshalJSON]() + +```go +func (r *ModelConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelConfigParam]() + + + +```go +type ModelConfigParam struct { + ID string `json:"id" api:"required"` + Effort param.Opt[string] `json:"effort,omitzero"` + ContextWindow param.Opt[int64] `json:"context_window,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ModelConfigParam\) [MarshalJSON]() + +```go +func (r ModelConfigParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ModelConfigParam\) [UnmarshalJSON]() + +```go +func (r *ModelConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelConfigUnionParam]() + +ModelConfigUnionParam accepts one of a model ID or model configuration. + +```go +type ModelConfigUnionParam struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfConfig *ModelConfigParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ModelConfigUnionParam\) [MarshalJSON]() + +```go +func (r ModelConfigUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ModelConfigUnionParam\) [UnmarshalJSON]() + +```go +func (r *ModelConfigUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelListResponse]() + + + +```go +type ModelListResponse struct { + Data []Model `json:"data"` + HasMore bool `json:"has_more"` + JSON struct { + Data respjson.Field + HasMore respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ModelListResponse\) [RawJSON]() + +```go +func (r ModelListResponse) RawJSON() string +``` + + + + +### func \(\*ModelListResponse\) [UnmarshalJSON]() + +```go +func (r *ModelListResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelService]() + +ModelService provides Forward Model operations. + +```go +type ModelService struct { + Options []option.RequestOption +} +``` + + +### func [NewModelService]() + +```go +func NewModelService(opts ...option.RequestOption) ModelService +``` + + + + +### func \(\*ModelService\) [List]() + +```go +func (r *ModelService) List(ctx context.Context, opts ...option.RequestOption) (res *ModelListResponse, err error) +``` + +List models + + +## type [MultiagentConfig]() + + + +```go +type MultiagentConfig struct { + Type string `json:"type" api:"required"` + Agents []MultiagentEntry `json:"agents" api:"required"` + JSON struct { + Type respjson.Field + Agents respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MultiagentConfig\) [RawJSON]() + +```go +func (r MultiagentConfig) RawJSON() string +``` + + + + +### func \(\*MultiagentConfig\) [UnmarshalJSON]() + +```go +func (r *MultiagentConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [MultiagentConfigParam]() + + + +```go +type MultiagentConfigParam struct { + Type string `json:"type" api:"required"` + Agents []MultiagentEntryParam `json:"agents" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(MultiagentConfigParam\) [MarshalJSON]() + +```go +func (r MultiagentConfigParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MultiagentConfigParam\) [UnmarshalJSON]() + +```go +func (r *MultiagentConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [MultiagentEntry]() + + + +```go +type MultiagentEntry struct { + Type string `json:"type" api:"required"` + TemplateID string `json:"template_id"` + Name string `json:"name"` + JSON struct { + Type respjson.Field + TemplateID respjson.Field + Name respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MultiagentEntry\) [RawJSON]() + +```go +func (r MultiagentEntry) RawJSON() string +``` + + + + +### func \(\*MultiagentEntry\) [UnmarshalJSON]() + +```go +func (r *MultiagentEntry) UnmarshalJSON(data []byte) error +``` + + + + +## type [MultiagentEntryParam]() + + + +```go +type MultiagentEntryParam struct { + Type string `json:"type" api:"required"` + TemplateID param.Opt[string] `json:"template_id,omitzero"` + Name param.Opt[string] `json:"name,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(MultiagentEntryParam\) [MarshalJSON]() + +```go +func (r MultiagentEntryParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*MultiagentEntryParam\) [UnmarshalJSON]() + +```go +func (r *MultiagentEntryParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [PermissionPolicy]() + + + +```go +type PermissionPolicy struct { + Type string `json:"type" api:"required"` + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(PermissionPolicy\) [RawJSON]() + +```go +func (r PermissionPolicy) RawJSON() string +``` + + + + +### func \(\*PermissionPolicy\) [UnmarshalJSON]() + +```go +func (r *PermissionPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [PermissionPolicyParam]() + + + +```go +type PermissionPolicyParam struct { + Type string `json:"type" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(PermissionPolicyParam\) [MarshalJSON]() + +```go +func (r PermissionPolicyParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*PermissionPolicyParam\) [UnmarshalJSON]() + +```go +func (r *PermissionPolicyParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ResourceBinding]() + + + +```go +type ResourceBinding struct { + Enabled bool `json:"enabled"` + JSON struct { + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ResourceBinding\) [RawJSON]() + +```go +func (r ResourceBinding) RawJSON() string +``` + + + + +### func \(\*ResourceBinding\) [UnmarshalJSON]() + +```go +func (r *ResourceBinding) UnmarshalJSON(data []byte) error +``` + + + + +## type [ResourceBindingParam]() + + + +```go +type ResourceBindingParam struct { + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ResourceBindingParam\) [MarshalJSON]() + +```go +func (r ResourceBindingParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ResourceBindingParam\) [UnmarshalJSON]() + +```go +func (r *ResourceBindingParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ResumableSessionEventStream]() + +ResumableSessionEventStream is a Session Event stream that reconnects after retryable HTTP, transport, read, and unexpected EOF failures. + +```go +type ResumableSessionEventStream struct { + // contains filtered or unexported fields +} +``` + + +### func \(\*ResumableSessionEventStream\) [Close]() + +```go +func (s *ResumableSessionEventStream) Close() error +``` + + + + +### func \(\*ResumableSessionEventStream\) [Current]() + +```go +func (s *ResumableSessionEventStream) Current() SessionEvent +``` + + + + +### func \(\*ResumableSessionEventStream\) [Err]() + +```go +func (s *ResumableSessionEventStream) Err() error +``` + + + + +### func \(\*ResumableSessionEventStream\) [LastEventID]() + +```go +func (s *ResumableSessionEventStream) LastEventID() string +``` + + + + +### func \(\*ResumableSessionEventStream\) [Next]() + +```go +func (s *ResumableSessionEventStream) Next() bool +``` + + + + +## type [Schedule]() + + + +```go +type Schedule struct { + ID string `json:"id"` + IdentityID string `json:"identity_id"` + TemplateID string `json:"template_id"` + Name string `json:"name"` + Description string `json:"description"` + Status string `json:"status"` + InitialEvents []ScheduleInitialEventsItem `json:"initial_events"` + Execution ScheduleExecution `json:"execution"` + TriggerPolicy ScheduleTriggerPolicy `json:"trigger_policy"` + EnvironmentID string `json:"environment_id"` + Sinks []ScheduleSinksItem `json:"sinks"` + Metadata map[string]any `json:"metadata"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + ArchivedAt time.Time `json:"archived_at" format:"date-time"` + PausedReason SchedulePausedReason `json:"paused_reason"` + JSON struct { + ID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + Name respjson.Field + Description respjson.Field + Status respjson.Field + InitialEvents respjson.Field + Execution respjson.Field + TriggerPolicy respjson.Field + EnvironmentID respjson.Field + Sinks respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ArchivedAt respjson.Field + PausedReason respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Schedule\) [RawJSON]() + +```go +func (r Schedule) RawJSON() string +``` + + + + +### func \(\*Schedule\) [UnmarshalJSON]() + +```go +func (r *Schedule) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleArchiveManyParams]() + + + +```go +type ScheduleArchiveManyParams struct { + // Archive scope; currently only by_schedule_ids is supported. + Scope string `json:"scope" api:"required"` + // Must contain 1-50 non-empty Schedule IDs after deduplication. + ScheduleIDs []string `json:"schedule_ids" api:"required"` + // Optional idempotency key for requests with side effects; the same owner, path + // and body can be replayed safely. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleArchiveManyParams\) [MarshalJSON]() + +```go +func (r ScheduleArchiveManyParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ScheduleArchiveManyParams\) [UnmarshalJSON]() + +```go +func (r *ScheduleArchiveManyParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleArchiveManyResponse]() + + + +```go +type ScheduleArchiveManyResponse struct { + // Number of Schedules that moved from unarchived to archived in this call; + // targets that were already archived are not counted again. + ArchivedCount int64 `json:"archived_count"` + JSON struct { + ArchivedCount respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleArchiveManyResponse\) [RawJSON]() + +```go +func (r ScheduleArchiveManyResponse) RawJSON() string +``` + + + + +### func \(\*ScheduleArchiveManyResponse\) [UnmarshalJSON]() + +```go +func (r *ScheduleArchiveManyResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleArchiveParams]() + + + +```go +type ScheduleArchiveParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleArchiveParams\) [URLQuery]() + +```go +func (r ScheduleArchiveParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleExecution]() + + + +```go +type ScheduleExecution struct { + SessionMode string `json:"session_mode"` + MaxConcurrentRuns int64 `json:"max_concurrent_runs"` + MaxAttempts int64 `json:"max_attempts"` + TimeoutMs int64 `json:"timeout_ms"` + JSON struct { + SessionMode respjson.Field + MaxConcurrentRuns respjson.Field + MaxAttempts respjson.Field + TimeoutMs respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleExecution\) [RawJSON]() + +```go +func (r ScheduleExecution) RawJSON() string +``` + + + + +### func \(\*ScheduleExecution\) [UnmarshalJSON]() + +```go +func (r *ScheduleExecution) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleInitialEventsItem]() + + + +```go +type ScheduleInitialEventsItem struct { + Type string `json:"type"` + Content string `json:"content"` + JSON struct { + Type respjson.Field + Content respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleInitialEventsItem\) [RawJSON]() + +```go +func (r ScheduleInitialEventsItem) RawJSON() string +``` + + + + +### func \(\*ScheduleInitialEventsItem\) [UnmarshalJSON]() + +```go +func (r *ScheduleInitialEventsItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleListParams]() + + + +```go +type ScheduleListParams struct { + // Optional for a PAT or an admin SAT; when omitted, all Identities of the + // current owner are queried. An Identity-bound SAT binds to itself when this is + // omitted, and returns 403 if another Identity is passed explicitly. + IdentityID param.Opt[string] `query:"identity_id,omitzero" json:"-"` + // Filter by Forward Template ID. + TemplateID param.Opt[string] `query:"template_id,omitzero" json:"-"` + // Filter by `active` or `paused`. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Whether to include archived Schedules. + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Sort field: `created_at` or `upcoming_runs_at`. + SortBy param.Opt[string] `query:"sort_by,omitzero" json:"-"` + // Sort direction: `asc` or `desc`. + Order param.Opt[string] `query:"order,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleListParams\) [URLQuery]() + +```go +func (r ScheduleListParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleNewParams]() + + + +```go +type ScheduleNewParams struct { + // Forward Identity ID the Schedule belongs to. + IdentityID string `json:"identity_id" api:"required"` + // Forward Template ID to execute. + TemplateID string `json:"template_id" api:"required"` + // Schedule name. + Name string `json:"name" api:"required"` + // Schedule description. + Description param.Opt[string] `json:"description,omitzero"` + // Initial events injected on every run; currently `user.message` is supported. + InitialEvents []map[string]any `json:"initial_events" api:"required"` + // Execution policy; server-side defaults apply when omitted. + Execution map[string]any `json:"execution,omitzero"` + // Trigger policy; treated as `manual` when omitted or `null`. + TriggerPolicy map[string]any `json:"trigger_policy,omitzero" api:"nullable"` + // Environment used for execution. + EnvironmentID string `json:"environment_id" api:"required"` + // Destinations the run result is pushed to; kept as an array for compatibility, + // currently at most one element is allowed. + Sinks []map[string]any `json:"sinks,omitzero" api:"nullable"` + // Business metadata, used only for labeling or pass-through. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleNewParams\) [MarshalJSON]() + +```go +func (r ScheduleNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ScheduleNewParams\) [UnmarshalJSON]() + +```go +func (r *ScheduleNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SchedulePauseParams]() + + + +```go +type SchedulePauseParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SchedulePauseParams\) [URLQuery]() + +```go +func (r SchedulePauseParams) URLQuery() (url.Values, error) +``` + + + + +## type [SchedulePausedReason]() + + + +```go +type SchedulePausedReason struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SchedulePausedReason\) [RawJSON]() + +```go +func (r SchedulePausedReason) RawJSON() string +``` + + + + +### func \(\*SchedulePausedReason\) [UnmarshalJSON]() + +```go +func (r *SchedulePausedReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleRun]() + + + +```go +type ScheduleRun struct { + // Schedule Run ID. + ID string `json:"id"` + // ID of the owning Schedule. + ScheduleID string `json:"schedule_id"` + // Forward Identity ID. + IdentityID string `json:"identity_id"` + // Forward Template ID. + TemplateID string `json:"template_id"` + // null|Session created or reused by this run. + SessionID string `json:"session_id"` + // `pending`, `running`, `completed`, `failed` or `skipped`. + Status string `json:"status"` + // Trigger source. + TriggerContext ScheduleRunTriggerContext `json:"trigger_context"` + // null|Text result of the main flow. + ResultPayload string `json:"result_payload"` + // null|Sink type used for this IM delivery; `null` when no delivery is configured. + PushSink string `json:"push_sink"` + // IM delivery status: `pending`, `succeeded`, `failed` or `skipped`. The main flow + // status and the delivery status are independent. + PushStatus string `json:"push_status"` + // null|Time the IM delivery finished. + PushFinishedAt time.Time `json:"push_finished_at" format:"date-time"` + // Current or final attempt number, starting at `1`; may return `2` when the Schedule sets + // `execution.max_attempts=2` and the server has performed an automatic retry. + Attempt int64 `json:"attempt"` + // Trigger time. + TriggeredAt time.Time `json:"triggered_at" format:"date-time"` + // null|Time execution started. + StartedAt time.Time `json:"started_at" format:"date-time"` + // null|Completion time. + CompletedAt time.Time `json:"completed_at" format:"date-time"` + // null|Execution duration in milliseconds. + DurationMs int64 `json:"duration_ms"` + // Record creation time. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // null|Structured error when the Run failed or was skipped. + Error map[string]any `json:"error"` + // null|Human-readable error message; structured details stay in `error`. + ErrorMessage string `json:"error_message"` + JSON struct { + ID respjson.Field + ScheduleID respjson.Field + IdentityID respjson.Field + TemplateID respjson.Field + SessionID respjson.Field + Status respjson.Field + TriggerContext respjson.Field + ResultPayload respjson.Field + PushSink respjson.Field + PushStatus respjson.Field + PushFinishedAt respjson.Field + Attempt respjson.Field + TriggeredAt respjson.Field + StartedAt respjson.Field + CompletedAt respjson.Field + DurationMs respjson.Field + CreatedAt respjson.Field + Error respjson.Field + ErrorMessage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleRun\) [RawJSON]() + +```go +func (r ScheduleRun) RawJSON() string +``` + + + + +### func \(\*ScheduleRun\) [UnmarshalJSON]() + +```go +func (r *ScheduleRun) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleRunGetParams]() + + + +```go +type ScheduleRunGetParams struct { + // Additional ownership constraint. + IdentityID param.Opt[string] `query:"identity_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleRunGetParams\) [URLQuery]() + +```go +func (r ScheduleRunGetParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleRunListParams]() + + + +```go +type ScheduleRunListParams struct { + // Forward Identity ID that owns the Run. + IdentityID string `query:"identity_id,omitzero" json:"-" api:"required"` + // Filter by Schedule ID. + ScheduleID param.Opt[string] `query:"schedule_id,omitzero" json:"-"` + // Filter by `pending`, `running`, `completed`, `failed` or `skipped`. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Filter by `schedule` or `manual`. + TriggerType param.Opt[string] `query:"trigger_type,omitzero" json:"-"` + // Whether to return only Runs with or without an error. + HasError param.Opt[bool] `query:"has_error,omitzero" json:"-"` + // Page size, up to 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Sort field: `created_at` or `triggered_at`. + SortBy param.Opt[string] `query:"sort_by,omitzero" json:"-"` + // Sort direction: `asc` or `desc`. + Order param.Opt[string] `query:"order,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleRunListParams\) [URLQuery]() + +```go +func (r ScheduleRunListParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleRunParams]() + + + +```go +type ScheduleRunParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleRunParams\) [URLQuery]() + +```go +func (r ScheduleRunParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleRunService]() + +ScheduleRunService provides Forward ScheduleRun operations. + +```go +type ScheduleRunService struct { + Options []option.RequestOption +} +``` + + +### func [NewScheduleRunService]() + +```go +func NewScheduleRunService(opts ...option.RequestOption) ScheduleRunService +``` + + + + +### func \(\*ScheduleRunService\) [Get]() + +```go +func (r *ScheduleRunService) Get(ctx context.Context, runID string, params ScheduleRunGetParams, opts ...option.RequestOption) (res *ScheduleRun, err error) +``` + +Get Schedule Run + + +### func \(\*ScheduleRunService\) [List]() + +```go +func (r *ScheduleRunService) List(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption) (res *pagination.Page[ScheduleRun], err error) +``` + +List Schedule Runs + + +### func \(\*ScheduleRunService\) [ListAutoPaging]() + +```go +func (r *ScheduleRunService) ListAutoPaging(ctx context.Context, params ScheduleRunListParams, opts ...option.RequestOption) *pagination.PageAutoPager[ScheduleRun] +``` + + + + +## type [ScheduleRunTriggerContext]() + + + +```go +type ScheduleRunTriggerContext struct { + Type string `json:"type"` + ScheduledAt time.Time `json:"scheduled_at" format:"date-time"` + JSON struct { + Type respjson.Field + ScheduledAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleRunTriggerContext\) [RawJSON]() + +```go +func (r ScheduleRunTriggerContext) RawJSON() string +``` + + + + +### func \(\*ScheduleRunTriggerContext\) [UnmarshalJSON]() + +```go +func (r *ScheduleRunTriggerContext) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleService]() + +ScheduleService provides Forward Schedule operations. + +```go +type ScheduleService struct { + Options []option.RequestOption +} +``` + + +### func [NewScheduleService]() + +```go +func NewScheduleService(opts ...option.RequestOption) ScheduleService +``` + + + + +### func \(\*ScheduleService\) [Archive]() + +```go +func (r *ScheduleService) Archive(ctx context.Context, scheduleID string, params ScheduleArchiveParams, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Archive Schedule + + +### func \(\*ScheduleService\) [ArchiveMany]() + +```go +func (r *ScheduleService) ArchiveMany(ctx context.Context, params ScheduleArchiveManyParams, opts ...option.RequestOption) (res *ScheduleArchiveManyResponse, err error) +``` + +Archive Schedules in bulk + + +### func \(\*ScheduleService\) [Get]() + +```go +func (r *ScheduleService) Get(ctx context.Context, scheduleID string, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Get Schedule + + +### func \(\*ScheduleService\) [List]() + +```go +func (r *ScheduleService) List(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption) (res *pagination.Page[Schedule], err error) +``` + +List Schedules + + +### func \(\*ScheduleService\) [ListAutoPaging]() + +```go +func (r *ScheduleService) ListAutoPaging(ctx context.Context, params ScheduleListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Schedule] +``` + + + + +### func \(\*ScheduleService\) [New]() + +```go +func (r *ScheduleService) New(ctx context.Context, params ScheduleNewParams, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Create Schedule + + +### func \(\*ScheduleService\) [Pause]() + +```go +func (r *ScheduleService) Pause(ctx context.Context, scheduleID string, params SchedulePauseParams, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Pause Schedule + + +### func \(\*ScheduleService\) [Run]() + +```go +func (r *ScheduleService) Run(ctx context.Context, scheduleID string, params ScheduleRunParams, opts ...option.RequestOption) (res *ScheduleRun, err error) +``` + +Run Schedule + + +### func \(\*ScheduleService\) [Unpause]() + +```go +func (r *ScheduleService) Unpause(ctx context.Context, scheduleID string, params ScheduleUnpauseParams, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Unpause Schedule + + +### func \(\*ScheduleService\) [Update]() + +```go +func (r *ScheduleService) Update(ctx context.Context, scheduleID string, params ScheduleUpdateParams, opts ...option.RequestOption) (res *Schedule, err error) +``` + +Update Schedule + + +## type [ScheduleSinksItem]() + + + +```go +type ScheduleSinksItem struct { + Type string `json:"type"` + ChannelID string `json:"channel_id"` + Target ScheduleSinksItemTarget `json:"target"` + JSON struct { + Type respjson.Field + ChannelID respjson.Field + Target respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleSinksItem\) [RawJSON]() + +```go +func (r ScheduleSinksItem) RawJSON() string +``` + + + + +### func \(\*ScheduleSinksItem\) [UnmarshalJSON]() + +```go +func (r *ScheduleSinksItem) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleSinksItemTarget]() + + + +```go +type ScheduleSinksItemTarget struct { + Type string `json:"type"` + ExternalID string `json:"external_id"` + JSON struct { + Type respjson.Field + ExternalID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleSinksItemTarget\) [RawJSON]() + +```go +func (r ScheduleSinksItemTarget) RawJSON() string +``` + + + + +### func \(\*ScheduleSinksItemTarget\) [UnmarshalJSON]() + +```go +func (r *ScheduleSinksItemTarget) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleTriggerPolicy]() + + + +```go +type ScheduleTriggerPolicy struct { + Type string `json:"type"` + Expression string `json:"expression"` + Timezone string `json:"timezone"` + UpcomingRunsAt []time.Time `json:"upcoming_runs_at"` + JSON struct { + Type respjson.Field + Expression respjson.Field + Timezone respjson.Field + UpcomingRunsAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ScheduleTriggerPolicy\) [RawJSON]() + +```go +func (r ScheduleTriggerPolicy) RawJSON() string +``` + + + + +### func \(\*ScheduleTriggerPolicy\) [UnmarshalJSON]() + +```go +func (r *ScheduleTriggerPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ScheduleUnpauseParams]() + + + +```go +type ScheduleUnpauseParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleUnpauseParams\) [URLQuery]() + +```go +func (r ScheduleUnpauseParams) URLQuery() (url.Values, error) +``` + + + + +## type [ScheduleUpdateParams]() + + + +```go +type ScheduleUpdateParams struct { + // New Schedule name. + Name param.Opt[string] `json:"name,omitzero"` + // New Schedule description. + Description param.Opt[string] `json:"description,omitzero"` + // New Forward Template ID. + TemplateID param.Opt[string] `json:"template_id,omitzero"` + // Replaces the initial event list. + InitialEvents []map[string]any `json:"initial_events,omitzero"` + // Merges updates into the execution policy. + Execution map[string]any `json:"execution,omitzero"` + // Updates the trigger policy; `null` switches it to manual. + TriggerPolicy map[string]any `json:"trigger_policy,omitzero" api:"nullable"` + // New Environment used for execution. + EnvironmentID param.Opt[string] `json:"environment_id,omitzero"` + // Destinations the run result is pushed to; kept as an array for compatibility, + // currently at most one element is allowed. + Sinks []map[string]any `json:"sinks,omitzero" api:"nullable"` + // Merges updates into metadata; a `null` value deletes the key. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ScheduleUpdateParams\) [MarshalJSON]() + +```go +func (r ScheduleUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ScheduleUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ScheduleUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [Session]() + + + +```go +type Session struct { + // Session ID. + ID string `json:"id"` + // Always `session`. + Type string `json:"type"` + // Forward Identity ID. + IdentityID string `json:"identity_id"` + // Template summary. + Template SessionTemplate `json:"template"` + // Session source; `api` when created directly through the API. + SourceType string `json:"source_type"` + // `idle`, `running`, `rescheduling`, `canceling` or `terminated`. + Status string `json:"status"` + Title string `json:"title"` + Metadata map[string]any `json:"metadata"` + Config SessionConfig `json:"config"` + Resources []SessionResource `json:"resources"` + Stats SessionStats `json:"stats"` + Usage SessionUsage `json:"usage"` + ArchivedAt time.Time `json:"archived_at" api:"nullable" format:"date-time"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + IdentityID respjson.Field + Template respjson.Field + SourceType respjson.Field + Status respjson.Field + Title respjson.Field + Metadata respjson.Field + Config respjson.Field + Resources respjson.Field + Stats respjson.Field + Usage respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Session\) [RawJSON]() + +```go +func (r Session) RawJSON() string +``` + + + + +### func \(\*Session\) [UnmarshalJSON]() + +```go +func (r *Session) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionArchiveParams]() + + + +```go +type SessionArchiveParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionArchiveParams\) [URLQuery]() + +```go +func (r SessionArchiveParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionCancelParams]() + + + +```go +type SessionCancelParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionCancelParams\) [URLQuery]() + +```go +func (r SessionCancelParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionConfig]() + + + +```go +type SessionConfig struct { + EnvironmentVariables map[string]string `json:"environment_variables"` + JSON struct { + EnvironmentVariables respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionConfig\) [RawJSON]() + +```go +func (r SessionConfig) RawJSON() string +``` + + + + +### func \(\*SessionConfig\) [UnmarshalJSON]() + +```go +func (r *SessionConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEvent]() + + + +```go +type SessionEvent struct { + ID string `json:"id"` + Type string `json:"type"` + SessionID string `json:"session_id"` + Content json.RawMessage `json:"content"` + ProcessedAt time.Time `json:"processed_at" format:"date-time"` + SessionThreadID string `json:"session_thread_id"` + Thinking string `json:"thinking"` + Text string `json:"text"` + ToolUseID string `json:"tool_use_id"` + CustomToolUseID string `json:"custom_tool_use_id"` + MCPToolUseID string `json:"mcp_tool_use_id"` + Name string `json:"name"` + MCPServerName string `json:"mcp_server_name"` + Input map[string]any `json:"input"` + IsError bool `json:"is_error"` + Result string `json:"result"` + DenyMessage string `json:"deny_message"` + Description string `json:"description"` + Rubric string `json:"rubric"` + OutcomeID string `json:"outcome_id"` + MaxIterations int64 `json:"max_iterations"` + MessageID string `json:"message_id"` + Message json.RawMessage `json:"message"` + Index int64 `json:"index"` + ContentBlock json.RawMessage `json:"content_block"` + Delta json.RawMessage `json:"delta"` + Event json.RawMessage `json:"event"` + EventID string `json:"event_id"` + Usage map[string]any `json:"usage"` + StopReason map[string]any `json:"stop_reason"` + Error map[string]any `json:"error"` + EvaluatedPermission map[string]any `json:"evaluated_permission"` + FileID string `json:"file_id"` + OriginalFilename string `json:"original_filename"` + Size int64 `json:"size"` + ContentType string `json:"content_type"` + Agent map[string]any `json:"agent"` + Metadata map[string]any `json:"metadata"` + Title string `json:"title"` + ModelRequestStartID string `json:"model_request_start_id"` + ModelUsage map[string]any `json:"model_usage"` + JSON struct { + ID respjson.Field + Type respjson.Field + SessionID respjson.Field + Content respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Thinking respjson.Field + Text respjson.Field + ToolUseID respjson.Field + CustomToolUseID respjson.Field + MCPToolUseID respjson.Field + Name respjson.Field + MCPServerName respjson.Field + Input respjson.Field + IsError respjson.Field + Result respjson.Field + DenyMessage respjson.Field + Description respjson.Field + Rubric respjson.Field + OutcomeID respjson.Field + MaxIterations respjson.Field + MessageID respjson.Field + Message respjson.Field + Index respjson.Field + ContentBlock respjson.Field + Delta respjson.Field + Event respjson.Field + EventID respjson.Field + Usage respjson.Field + StopReason respjson.Field + Error respjson.Field + EvaluatedPermission respjson.Field + FileID respjson.Field + OriginalFilename respjson.Field + Size respjson.Field + ContentType respjson.Field + Agent respjson.Field + Metadata respjson.Field + Title respjson.Field + ModelRequestStartID respjson.Field + ModelUsage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionEvent\) [ContentBlocks]() + +```go +func (r SessionEvent) ContentBlocks() ([]ContentBlock, error) +``` + +ContentBlocks decodes block content; non\-block event payloads remain in Content and RawJSON. + + +### func \(SessionEvent\) [RawJSON]() + +```go +func (r SessionEvent) RawJSON() string +``` + + + + +### func \(\*SessionEvent\) [UnmarshalJSON]() + +```go +func (r *SessionEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEventListParams]() + + + +```go +type SessionEventListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Return events after this Event ID. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Return events before this Event ID. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Sort direction: `asc` or `desc`. + Order param.Opt[string] `query:"order,omitzero" json:"-"` + // Filter by Event type; accepts a comma-separated list. + Type param.Opt[string] `query:"type,omitzero" json:"-"` + // Event type filter in array form. + Types []string `query:"types[],omitzero" json:"-"` + // Whether to include tool call events. + IncludeToolCalls param.Opt[bool] `query:"include_tool_calls,omitzero" json:"-"` + // Whether to include thinking events. + IncludeThinking param.Opt[bool] `query:"include_thinking,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventListParams\) [URLQuery]() + +```go +func (r SessionEventListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionEventParam]() + + + +```go +type SessionEventParam struct { + Type string `json:"type" api:"required"` + Content EventContentUnionParam `json:"content,omitzero"` + ToolUseID param.Opt[string] `json:"tool_use_id,omitzero"` + CustomToolUseID param.Opt[string] `json:"custom_tool_use_id,omitzero"` + Result param.Opt[string] `json:"result,omitzero"` + DenyMessage param.Opt[string] `json:"deny_message,omitzero"` + IsError param.Opt[bool] `json:"is_error,omitzero"` + Description param.Opt[string] `json:"description,omitzero"` + Rubric param.Opt[string] `json:"rubric,omitzero"` + OutcomeID param.Opt[string] `json:"outcome_id,omitzero"` + MaxIterations param.Opt[int64] `json:"max_iterations,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventParam\) [MarshalJSON]() + +```go +func (r SessionEventParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionEventParam\) [UnmarshalJSON]() + +```go +func (r *SessionEventParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEventSendParams]() + + + +```go +type SessionEventSendParams struct { + Events []SessionEventParam `json:"events" api:"required"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventSendParams\) [MarshalJSON]() + +```go +func (r SessionEventSendParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionEventSendParams\) [UnmarshalJSON]() + +```go +func (r *SessionEventSendParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEventSendResponse]() + + + +```go +type SessionEventSendResponse struct { + Data []SessionEvent `json:"data"` + JSON struct { + Data respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionEventSendResponse\) [RawJSON]() + +```go +func (r SessionEventSendResponse) RawJSON() string +``` + + + + +### func \(\*SessionEventSendResponse\) [UnmarshalJSON]() + +```go +func (r *SessionEventSendResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEventService]() + +SessionEventService provides Forward SessionEvent operations. + +```go +type SessionEventService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionEventService]() + +```go +func NewSessionEventService(opts ...option.RequestOption) SessionEventService +``` + + + + +### func \(\*SessionEventService\) [List]() + +```go +func (r *SessionEventService) List(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) (res *pagination.Page[SessionEvent], err error) +``` + +List Session Events + + +### func \(\*SessionEventService\) [ListAutoPaging]() + +```go +func (r *SessionEventService) ListAutoPaging(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionEvent] +``` + + + + +### func \(\*SessionEventService\) [NewResumableStream]() + +```go +func (r *SessionEventService) NewResumableStream(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) *ResumableSessionEventStream +``` + +NewResumableStream subscribes to Session Events and reconnects retryable failures with the latest yielded Last\-Event\-ID cursor. + + +### func \(\*SessionEventService\) [Send]() + +```go +func (r *SessionEventService) Send(ctx context.Context, sessionID string, params SessionEventSendParams, opts ...option.RequestOption) (res *SessionEventSendResponse, err error) +``` + +Send Session Events + + +### func \(\*SessionEventService\) [StreamEvents]() + +```go +func (r *SessionEventService) StreamEvents(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) *ssestream.Stream[SessionEvent] +``` + +Subscribe to the Session Event stream + + +## type [SessionEventStreamParams]() + + + +```go +type SessionEventStreamParams struct { + // Subscribe to streaming delta events for the given public event types. May be + // repeated; see the streaming delta events section of the Session & Event data + // structure documentation for the accepted values. + EventDeltas []string `query:"event_deltas[],omitzero" json:"-"` + // Whether to include tool call events. + IncludeToolCalls param.Opt[bool] `query:"include_tool_calls,omitzero" json:"-"` + // Whether to include thinking events. + IncludeThinking param.Opt[bool] `query:"include_thinking,omitzero" json:"-"` + // Resume the subscription after this Event ID. + LastEventID param.Opt[string] `header:"Last-Event-ID,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventStreamParams\) [URLQuery]() + +```go +func (r SessionEventStreamParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionListParams]() + + + +```go +type SessionListParams struct { + // Filter by one or more Identity IDs, comma-separated. + IdentityIDs []string `query:"identity_ids,omitzero" json:"-"` + // Filter by Forward Template ID. + TemplateID param.Opt[string] `query:"template_id,omitzero" json:"-"` + // Filter by `api`, `im`, `schedule` or `batch`. + SourceType param.Opt[string] `query:"source_type,omitzero" json:"-"` + // Creation time strictly after this RFC 3339 timestamp. + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" json:"-" format:"date-time"` + // Creation time at or after this RFC 3339 timestamp. + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" json:"-" format:"date-time"` + // Creation time strictly before this RFC 3339 timestamp. + CreatedAtLt param.Opt[time.Time] `query:"created_at[lt],omitzero" json:"-" format:"date-time"` + // Creation time at or before this RFC 3339 timestamp. + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" json:"-" format:"date-time"` + // Update time strictly after this RFC 3339 timestamp. + UpdatedAtGt param.Opt[time.Time] `query:"updated_at[gt],omitzero" json:"-" format:"date-time"` + // Update time at or after this RFC 3339 timestamp. + UpdatedAtGte param.Opt[time.Time] `query:"updated_at[gte],omitzero" json:"-" format:"date-time"` + // Update time strictly before this RFC 3339 timestamp. + UpdatedAtLt param.Opt[time.Time] `query:"updated_at[lt],omitzero" json:"-" format:"date-time"` + // Update time at or before this RFC 3339 timestamp. + UpdatedAtLte param.Opt[time.Time] `query:"updated_at[lte],omitzero" json:"-" format:"date-time"` + // Page size, up to 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page; pass the `last_id` from the previous response. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; pass the `first_id` from the current response. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Sort direction by creation time: `desc` or `asc`. + Order param.Opt[string] `query:"order,omitzero" json:"-"` + // Whether to include archived Sessions. + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionListParams\) [URLQuery]() + +```go +func (r SessionListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionNewParams]() + + + +```go +type SessionNewParams struct { + // Forward Identity ID. + IdentityID string `json:"identity_id" api:"required"` + // Forward Template ID. + TemplateID string `json:"template_id" api:"required"` + // Session title. + Title param.Opt[string] `json:"title,omitzero"` + // Business metadata. + Metadata map[string]any `json:"metadata,omitzero"` + Config SessionNewParamsConfigParam `json:"config,omitzero"` + Resources []SessionResourceSpecParam `json:"resources,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParams\) [MarshalJSON]() + +```go +func (r SessionNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionNewParams\) [UnmarshalJSON]() + +```go +func (r *SessionNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionNewParamsConfigParam]() + + + +```go +type SessionNewParamsConfigParam struct { + EnvironmentVariables map[string]any `json:"environment_variables,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParamsConfigParam\) [MarshalJSON]() + +```go +func (r SessionNewParamsConfigParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionNewParamsConfigParam\) [UnmarshalJSON]() + +```go +func (r *SessionNewParamsConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResource]() + + + +```go +type SessionResource struct { + // Session resource ID, prefixed with `sesr_`. + ID string `json:"id"` + // Resource type, always `file`. + Type string `json:"type"` + // ID of the mounted File. + FileID string `json:"file_id"` + // Actual mount path of the file inside the Agent container. + MountPath string `json:"mount_path"` + // Resource creation time, RFC3339. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Resource update time, RFC3339. + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + FileID respjson.Field + MountPath respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionResource\) [RawJSON]() + +```go +func (r SessionResource) RawJSON() string +``` + + + + +### func \(\*SessionResource\) [UnmarshalJSON]() + +```go +func (r *SessionResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceAddParams]() + + + +```go +type SessionResourceAddParams struct { + // Resource type; must be `file`. + Type string `json:"type" api:"required"` + // File ID returned by the Files API; the file must already be fully uploaded. + FileID string `json:"file_id" api:"required"` + // Mount path inside the Agent container; when omitted, Forward derives one from the + // file name and mounts it at `/data/workspace/`. + MountPath param.Opt[string] `json:"mount_path,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionResourceAddParams\) [MarshalJSON]() + +```go +func (r SessionResourceAddParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionResourceAddParams\) [UnmarshalJSON]() + +```go +func (r *SessionResourceAddParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceService]() + +SessionResourceService provides Forward SessionResource operations. + +```go +type SessionResourceService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionResourceService]() + +```go +func NewSessionResourceService(opts ...option.RequestOption) SessionResourceService +``` + + + + +### func \(\*SessionResourceService\) [Add]() + +```go +func (r *SessionResourceService) Add(ctx context.Context, sessionID string, params SessionResourceAddParams, opts ...option.RequestOption) (res *SessionResource, err error) +``` + +Add Session resource + + +## type [SessionResourceSpec]() + + + +```go +type SessionResourceSpec struct { + Type string `json:"type" api:"required"` + FileID string `json:"file_id" api:"required"` + MountPath string `json:"mount_path"` + JSON struct { + Type respjson.Field + FileID respjson.Field + MountPath respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionResourceSpec\) [RawJSON]() + +```go +func (r SessionResourceSpec) RawJSON() string +``` + + + + +### func \(\*SessionResourceSpec\) [UnmarshalJSON]() + +```go +func (r *SessionResourceSpec) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceSpecParam]() + + + +```go +type SessionResourceSpecParam struct { + Type string `json:"type" api:"required"` + FileID string `json:"file_id" api:"required"` + MountPath param.Opt[string] `json:"mount_path,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionResourceSpecParam\) [MarshalJSON]() + +```go +func (r SessionResourceSpecParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionResourceSpecParam\) [UnmarshalJSON]() + +```go +func (r *SessionResourceSpecParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionService]() + +SessionService provides Forward Session operations. + +```go +type SessionService struct { + Options []option.RequestOption + Events SessionEventService + Resources SessionResourceService + Threads SessionThreadService +} +``` + + +### func [NewSessionService]() + +```go +func NewSessionService(opts ...option.RequestOption) SessionService +``` + + + + +### func \(\*SessionService\) [Archive]() + +```go +func (r *SessionService) Archive(ctx context.Context, sessionID string, params SessionArchiveParams, opts ...option.RequestOption) (res *Session, err error) +``` + +Archive Session + + +### func \(\*SessionService\) [Cancel]() + +```go +func (r *SessionService) Cancel(ctx context.Context, sessionID string, params SessionCancelParams, opts ...option.RequestOption) (res *Session, err error) +``` + +Cancel the current Turn + + +### func \(\*SessionService\) [Get]() + +```go +func (r *SessionService) Get(ctx context.Context, sessionID string, opts ...option.RequestOption) (res *Session, err error) +``` + +Get Session + + +### func \(\*SessionService\) [List]() + +```go +func (r *SessionService) List(ctx context.Context, params SessionListParams, opts ...option.RequestOption) (res *pagination.Page[Session], err error) +``` + +List Sessions + + +### func \(\*SessionService\) [ListAutoPaging]() + +```go +func (r *SessionService) ListAutoPaging(ctx context.Context, params SessionListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Session] +``` + + + + +### func \(\*SessionService\) [New]() + +```go +func (r *SessionService) New(ctx context.Context, params SessionNewParams, opts ...option.RequestOption) (res *Session, err error) +``` + +Create Session + + +### func \(\*SessionService\) [Update]() + +```go +func (r *SessionService) Update(ctx context.Context, sessionID string, params SessionUpdateParams, opts ...option.RequestOption) (res *Session, err error) +``` + +Update Session + + +## type [SessionStats]() + + + +```go +type SessionStats struct { + ActiveSeconds int64 `json:"active_seconds"` + DurationSeconds int64 `json:"duration_seconds"` + JSON struct { + ActiveSeconds respjson.Field + DurationSeconds respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionStats\) [RawJSON]() + +```go +func (r SessionStats) RawJSON() string +``` + + + + +### func \(\*SessionStats\) [UnmarshalJSON]() + +```go +func (r *SessionStats) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionTemplate]() + + + +```go +type SessionTemplate struct { + ID string `json:"id"` + Type string `json:"type"` + Name string `json:"name"` + Model ModelConfig `json:"model"` + Version int64 `json:"version"` + JSON struct { + ID respjson.Field + Type respjson.Field + Name respjson.Field + Model respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionTemplate\) [RawJSON]() + +```go +func (r SessionTemplate) RawJSON() string +``` + + + + +### func \(\*SessionTemplate\) [UnmarshalJSON]() + +```go +func (r *SessionTemplate) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionThread]() + + + +```go +type SessionThread struct { + ID string `json:"id"` + Type string `json:"type"` + SessionID string `json:"session_id"` + TemplateID string `json:"template_id"` + Role string `json:"role"` + Status string `json:"status"` + StopReason SessionThreadStopReason `json:"stop_reason"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + ParentThreadID string `json:"parent_thread_id"` + Name string `json:"name"` + CreatedByToolUseID string `json:"created_by_tool_use_id"` + ArchivedAt time.Time `json:"archived_at" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + SessionID respjson.Field + TemplateID respjson.Field + Role respjson.Field + Status respjson.Field + StopReason respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ParentThreadID respjson.Field + Name respjson.Field + CreatedByToolUseID respjson.Field + ArchivedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionThread\) [RawJSON]() + +```go +func (r SessionThread) RawJSON() string +``` + + + + +### func \(\*SessionThread\) [UnmarshalJSON]() + +```go +func (r *SessionThread) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionThreadArchiveParams]() + + + +```go +type SessionThreadArchiveParams struct { + // Identifies one logical archive attempt; generate a unique value for each new + // attempt. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadArchiveParams\) [URLQuery]() + +```go +func (r SessionThreadArchiveParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionThreadEventListParams]() + + + +```go +type SessionThreadEventListParams struct { + // Page size, 1–100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Return records after this Event ID. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Return records before this Event ID. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadEventListParams\) [URLQuery]() + +```go +func (r SessionThreadEventListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionThreadEventService]() + +SessionThreadEventService provides Forward SessionThreadEvent operations. + +```go +type SessionThreadEventService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionThreadEventService]() + +```go +func NewSessionThreadEventService(opts ...option.RequestOption) SessionThreadEventService +``` + + + + +### func \(\*SessionThreadEventService\) [List]() + +```go +func (r *SessionThreadEventService) List(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) (res *pagination.Page[SessionEvent], err error) +``` + +List Session Thread Events + + +### func \(\*SessionThreadEventService\) [ListAutoPaging]() + +```go +func (r *SessionThreadEventService) ListAutoPaging(ctx context.Context, sessionID string, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionEvent] +``` + + + + +### func \(\*SessionThreadEventService\) [StreamEvents]() + +```go +func (r *SessionThreadEventService) StreamEvents(ctx context.Context, sessionID string, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption) *ssestream.Stream[SessionEvent] +``` + +Subscribe to the Session Thread Event stream + + +## type [SessionThreadEventStreamParams]() + + + +```go +type SessionThreadEventStreamParams struct { + // Resume the subscription after this Thread Event. + LastEventID param.Opt[string] `header:"Last-Event-ID,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadEventStreamParams\) [URLQuery]() + +```go +func (r SessionThreadEventStreamParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionThreadListParams]() + + + +```go +type SessionThreadListParams struct { + // Page size, 1–100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Return records after this Thread ID. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Return records before this Thread ID. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadListParams\) [URLQuery]() + +```go +func (r SessionThreadListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SessionThreadService]() + +SessionThreadService provides Forward SessionThread operations. + +```go +type SessionThreadService struct { + Options []option.RequestOption + Events SessionThreadEventService +} +``` + + +### func [NewSessionThreadService]() + +```go +func NewSessionThreadService(opts ...option.RequestOption) SessionThreadService +``` + + + + +### func \(\*SessionThreadService\) [Archive]() + +```go +func (r *SessionThreadService) Archive(ctx context.Context, sessionID string, threadID string, params SessionThreadArchiveParams, opts ...option.RequestOption) (res *SessionThread, err error) +``` + +Archive Session Thread + + +### func \(\*SessionThreadService\) [Get]() + +```go +func (r *SessionThreadService) Get(ctx context.Context, sessionID string, threadID string, opts ...option.RequestOption) (res *SessionThread, err error) +``` + +Get Session Thread + + +### func \(\*SessionThreadService\) [List]() + +```go +func (r *SessionThreadService) List(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) (res *pagination.Page[SessionThread], err error) +``` + +List Session Threads + + +### func \(\*SessionThreadService\) [ListAutoPaging]() + +```go +func (r *SessionThreadService) ListAutoPaging(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) *pagination.PageAutoPager[SessionThread] +``` + + + + +## type [SessionThreadStopReason]() + + + +```go +type SessionThreadStopReason struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionThreadStopReason\) [RawJSON]() + +```go +func (r SessionThreadStopReason) RawJSON() string +``` + + + + +### func \(\*SessionThreadStopReason\) [UnmarshalJSON]() + +```go +func (r *SessionThreadStopReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionUpdateParams]() + + + +```go +type SessionUpdateParams struct { + // New Session title. + Title param.Opt[string] `json:"title,omitzero"` + // Metadata merge patch; supplied keys overwrite existing keys, omitted keys are kept. + Metadata map[string]any `json:"metadata,omitzero"` + Config SessionUpdateParamsConfigParam `json:"config,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionUpdateParams\) [MarshalJSON]() + +```go +func (r SessionUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionUpdateParams\) [UnmarshalJSON]() + +```go +func (r *SessionUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionUpdateParamsConfigParam]() + + + +```go +type SessionUpdateParamsConfigParam struct { + EnvironmentVariables map[string]any `json:"environment_variables,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionUpdateParamsConfigParam\) [MarshalJSON]() + +```go +func (r SessionUpdateParamsConfigParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionUpdateParamsConfigParam\) [UnmarshalJSON]() + +```go +func (r *SessionUpdateParamsConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionUsage]() + + + +```go +type SessionUsage struct { + TotalCredits float64 `json:"total_credits"` + JSON struct { + TotalCredits respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionUsage\) [RawJSON]() + +```go +func (r SessionUsage) RawJSON() string +``` + + + + +### func \(\*SessionUsage\) [UnmarshalJSON]() + +```go +func (r *SessionUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [Skill]() + + + +```go +type Skill struct { + ID string `json:"id"` + Type string `json:"type"` + DisplayTitle string `json:"display_title"` + Description string `json:"description"` + Source string `json:"source"` + LatestVersion string `json:"latest_version"` + Metadata map[string]any `json:"metadata"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + IdentityID string `json:"identity_id" api:"nullable"` + IconURL string `json:"icon_url" api:"nullable"` + BindingInfo map[string]int64 `json:"binding_info"` + JSON struct { + ID respjson.Field + Type respjson.Field + DisplayTitle respjson.Field + Description respjson.Field + Source respjson.Field + LatestVersion respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + IdentityID respjson.Field + IconURL respjson.Field + BindingInfo respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Skill\) [RawJSON]() + +```go +func (r Skill) RawJSON() string +``` + + + + +### func \(\*Skill\) [UnmarshalJSON]() + +```go +func (r *Skill) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillBinding]() + + + +```go +type SkillBinding struct { + Type string `json:"type" api:"required"` + SkillID string `json:"skill_id" api:"required"` + Version string `json:"version"` + Enabled bool `json:"enabled"` + JSON struct { + Type respjson.Field + SkillID respjson.Field + Version respjson.Field + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SkillBinding\) [RawJSON]() + +```go +func (r SkillBinding) RawJSON() string +``` + + + + +### func \(\*SkillBinding\) [UnmarshalJSON]() + +```go +func (r *SkillBinding) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillBindingParam]() + + + +```go +type SkillBindingParam struct { + Type string `json:"type" api:"required"` + SkillID string `json:"skill_id" api:"required"` + Version param.Opt[string] `json:"version,omitzero"` + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillBindingParam\) [MarshalJSON]() + +```go +func (r SkillBindingParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SkillBindingParam\) [UnmarshalJSON]() + +```go +func (r *SkillBindingParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillGetParams]() + + + +```go +type SkillGetParams struct { + // ⚠️ **Deprecated**: when `true`, the response also carries `content` and + // `content_encoding` (a base64 zip). Responses carry the `Deprecation: true` header + // when it is used. Use [Download Skill version content](./Versions/download.md) + // instead. + IncludeContent param.Opt[bool] `query:"include_content,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillGetParams\) [URLQuery]() + +```go +func (r SkillGetParams) URLQuery() (url.Values, error) +``` + + + + +## type [SkillListParams]() + + + +```go +type SkillListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Pagination cursor (recommended), taken from `next_page` in the previous response; + // mutually exclusive with `after_id` and `before_id`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `page` and `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `page` and `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Search by Skill display title prefix, case-insensitive. + DisplayTitle param.Opt[string] `query:"display_title,omitzero" json:"-"` + // Filter by Skill source, one of `custom`, `qoder`. `before_id` is not supported + // when `source` is set. + Source param.Opt[string] `query:"source,omitzero" json:"-"` + // ⚠️ **Deprecated**: compatibility alias for `display_title` with identical + // semantics. Use `display_title` instead. + Name param.Opt[string] `query:"name,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillListParams\) [URLQuery]() + +```go +func (r SkillListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SkillNewParams]() + + + +```go +type SkillNewParams struct { + // Recommended upload field, which may **repeat** several times. Two shapes are + // supported: (1) a single `.zip` archive; (2) a bare file tree — each part uploads + // one file and carries its relative path in `filename` (such as + // `code-review/SKILL.md`, `code-review/scripts/run.sh`). Neither the archive itself + // nor its uncompressed total size may exceed 50 MB. + Files []io.Reader `json:"files,omitzero" format:"binary"` + // Caller metadata object, at most 15 keys. `created_by` is reserved and must not be + // sent (sending it returns 400). + Metadata map[string]any `json:"metadata,omitzero" api:"metadata"` + // Public ID of the Forward Resource icon. + IconID param.Opt[string] `json:"icon_id,omitzero"` + // ⚠️ **Deprecated**: a single `.zip` archive with relaxed packaging rules. Responses + // carry the `Deprecation: true` header when it is used. Migrate to `files`. + File io.Reader `json:"file,omitzero" format:"binary"` + // ⚠️ **Deprecated**: the final name is always parsed from the `name` in the + // `SKILL.md` frontmatter of the uploaded package. The field is kept for + // compatibility only and is ignored when sent. + Name param.Opt[string] `json:"name,omitzero"` + // ⚠️ **Deprecated**: the final description is always parsed from `SKILL.md`. + Description param.Opt[string] `json:"description,omitzero"` + // ⚠️ **Deprecated**: Skill creation type, one of `custom`, `prebuilt`, defaults to + // `custom`. `prebuilt` makes the response `source` field return `qoder` (everything + // else returns `custom`). + Type param.Opt[string] `json:"type,omitzero"` + // Recommended. Retrying is safe when the same key is paired with an identical + // normalized `files` fingerprint. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillNewParams\) [MarshalMultipart]() + +```go +func (r SkillNewParams) MarshalMultipart() ([]byte, string, error) +``` + + + + +## type [SkillOverride]() + + + +```go +type SkillOverride struct { + Enabled bool `json:"enabled"` + Type string `json:"type"` + Version string `json:"version"` + JSON struct { + Enabled respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SkillOverride\) [RawJSON]() + +```go +func (r SkillOverride) RawJSON() string +``` + + + + +### func \(\*SkillOverride\) [UnmarshalJSON]() + +```go +func (r *SkillOverride) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillOverrideParam]() + + + +```go +type SkillOverrideParam struct { + Enabled param.Opt[bool] `json:"enabled,omitzero"` + Type param.Opt[string] `json:"type,omitzero"` + Version param.Opt[string] `json:"version,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillOverrideParam\) [MarshalJSON]() + +```go +func (r SkillOverrideParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SkillOverrideParam\) [UnmarshalJSON]() + +```go +func (r *SkillOverrideParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillService]() + +SkillService provides Forward Skill operations. + +```go +type SkillService struct { + Options []option.RequestOption + Versions SkillVersionService +} +``` + + +### func [NewSkillService]() + +```go +func NewSkillService(opts ...option.RequestOption) SkillService +``` + + + + +### func \(\*SkillService\) [Delete]() + +```go +func (r *SkillService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error) +``` + +Delete Skill + + +### func \(\*SkillService\) [Get]() + +```go +func (r *SkillService) Get(ctx context.Context, id string, params SkillGetParams, opts ...option.RequestOption) (res *Skill, err error) +``` + +Get Skill + + +### func \(\*SkillService\) [List]() + +```go +func (r *SkillService) List(ctx context.Context, params SkillListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Skill], err error) +``` + +List Skills + + +### func \(\*SkillService\) [ListAutoPaging]() + +```go +func (r *SkillService) ListAutoPaging(ctx context.Context, params SkillListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Skill] +``` + + + + +### func \(\*SkillService\) [New]() + +```go +func (r *SkillService) New(ctx context.Context, params SkillNewParams, opts ...option.RequestOption) (res *Skill, err error) +``` + +Create Skill + + +### func \(\*SkillService\) [Update]() + +```go +func (r *SkillService) Update(ctx context.Context, id string, params SkillUpdateParams, opts ...option.RequestOption) (res *Skill, err error) +``` + +Update Skill + + +## type [SkillUpdateParams]() + + + +```go +type SkillUpdateParams struct { + // New description. + Description param.Opt[string] `json:"description,omitzero"` + // New content (the contents of a zip archive). Neither the archive itself nor its + // uncompressed total size may exceed 50 MB, otherwise 400 is returned. The request + // body as a whole (including base64 encoding and the JSON envelope) is capped at + // about 67.7 MB, beyond which 413 is returned. + Content param.Opt[string] `json:"content,omitzero"` + // Encoding of `content`. Supports `base64`, `utf-8`, `utf8`, `plain`, `text`; when + // omitted the value is treated as UTF-8 text. Sending this field requires a + // non-empty `content` as well. + ContentEncoding param.Opt[string] `json:"content_encoding,omitzero"` + // Metadata object that **replaces** the current metadata (not a merge). It must not + // be `null` when sent, and each value must be a string. `created_by` is reserved and + // must not be sent (sending it returns 400). + Metadata map[string]any `json:"metadata,omitzero"` + // Update or clear the Forward icon. + IconID param.Opt[string] `json:"icon_id,omitzero" api:"nullable"` + // ⚠️ **Deprecated**: the Skill name cannot be changed. A value sent must match the + // current canonical name exactly, otherwise 400 is returned; a matching value is a + // no-op. + Name param.Opt[string] `json:"name,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillUpdateParams\) [MarshalJSON]() + +```go +func (r SkillUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SkillUpdateParams\) [UnmarshalJSON]() + +```go +func (r *SkillUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillVersion]() + + + +```go +type SkillVersion struct { + ID string `json:"id"` + SkillID string `json:"skill_id"` + Version string `json:"version"` + Name string `json:"name"` + Description string `json:"description"` + Directory string `json:"directory"` + ContentSize int64 `json:"content_size"` + ContentSHA256 string `json:"content_sha256"` + Status string `json:"status"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + Metadata map[string]any `json:"metadata"` + JSON struct { + ID respjson.Field + SkillID respjson.Field + Version respjson.Field + Name respjson.Field + Description respjson.Field + Directory respjson.Field + ContentSize respjson.Field + ContentSHA256 respjson.Field + Status respjson.Field + CreatedAt respjson.Field + Metadata respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SkillVersion\) [RawJSON]() + +```go +func (r SkillVersion) RawJSON() string +``` + + + + +### func \(\*SkillVersion\) [UnmarshalJSON]() + +```go +func (r *SkillVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillVersionListParams]() + + + +```go +type SkillVersionListParams struct { + // Page size, maximum 100, default 20. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for paging forward; take the value from `next_page` in the previous + // response. Omit to start from the first page. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillVersionListParams\) [URLQuery]() + +```go +func (r SkillVersionListParams) URLQuery() (url.Values, error) +``` + + + + +## type [SkillVersionNewParams]() + + + +```go +type SkillVersionNewParams struct { + // Upload field, which may appear **multiple** times. Two shapes are supported: • a + // single `.zip` archive; • a bare file tree, where every part uploads one file and + // `filename` carries its relative path (e.g. `customer-reply/SKILL.md`, + // `customer-reply/scripts/run.sh`). Neither the archive itself nor the total + // uncompressed size may exceed 50 MB. + Files []io.Reader `json:"files" api:"required" format:"binary"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillVersionNewParams\) [MarshalMultipart]() + +```go +func (r SkillVersionNewParams) MarshalMultipart() ([]byte, string, error) +``` + + + + +## type [SkillVersionService]() + +SkillVersionService provides Forward SkillVersion operations. + +```go +type SkillVersionService struct { + Options []option.RequestOption +} +``` + + +### func [NewSkillVersionService]() + +```go +func NewSkillVersionService(opts ...option.RequestOption) SkillVersionService +``` + + + + +### func \(\*SkillVersionService\) [Delete]() + +```go +func (r *SkillVersionService) Delete(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *DeletedSkillVersion, err error) +``` + +Delete Skill version + + +### func \(\*SkillVersionService\) [Download]() + +```go +func (r *SkillVersionService) Download(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *http.Response, err error) +``` + +Download Skill version content + + +### func \(\*SkillVersionService\) [Get]() + +```go +func (r *SkillVersionService) Get(ctx context.Context, id string, version string, opts ...option.RequestOption) (res *SkillVersion, err error) +``` + +Get Skill version + + +### func \(\*SkillVersionService\) [List]() + +```go +func (r *SkillVersionService) List(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption) (res *pagination.PageCursor[SkillVersion], err error) +``` + +List Skill versions + + +### func \(\*SkillVersionService\) [ListAutoPaging]() + +```go +func (r *SkillVersionService) ListAutoPaging(ctx context.Context, id string, params SkillVersionListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[SkillVersion] +``` + + + + +### func \(\*SkillVersionService\) [New]() + +```go +func (r *SkillVersionService) New(ctx context.Context, id string, params SkillVersionNewParams, opts ...option.RequestOption) (res *SkillVersion, err error) +``` + +Create Skill version + + +## type [SystemOverride]() + + + +```go +type SystemOverride struct { + Mode string `json:"mode"` + Content string `json:"content"` + JSON struct { + Mode respjson.Field + Content respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SystemOverride\) [RawJSON]() + +```go +func (r SystemOverride) RawJSON() string +``` + + + + +### func \(\*SystemOverride\) [UnmarshalJSON]() + +```go +func (r *SystemOverride) UnmarshalJSON(data []byte) error +``` + + + + +## type [SystemOverrideParam]() + + + +```go +type SystemOverrideParam struct { + Mode param.Opt[string] `json:"mode,omitzero"` + Content param.Opt[string] `json:"content,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SystemOverrideParam\) [MarshalJSON]() + +```go +func (r SystemOverrideParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SystemOverrideParam\) [UnmarshalJSON]() + +```go +func (r *SystemOverrideParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Template]() + + + +```go +type Template struct { + // Always `template`. + Type string `json:"type"` + // Template ID. + ID string `json:"id"` + // Template name. + Name string `json:"name"` + Description string `json:"description"` + // Either `active` or `archived`. + Status string `json:"status"` + CreatedAt time.Time `json:"created_at" format:"date-time"` + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + // Mirrors the shape submitted in the request; the object form keeps `id`, + // `effort` and `context_window`. + Model ModelConfig `json:"model"` + Multiagent MultiagentConfig `json:"multiagent"` + // Default Environment ID. + EnvironmentID string `json:"environment_id"` + Vaults map[string]ResourceBinding `json:"vaults"` + Files map[string]ResourceBinding `json:"files"` + GitHubRepositories map[string]GitHubRepository `json:"github_repositories"` + System string `json:"system"` + Tools []Tool `json:"tools"` + MCPServers []MCPServer `json:"mcp_servers"` + Skills []SkillBinding `json:"skills"` + EnvironmentVariables map[string]string `json:"environment_variables"` + // Custom metadata. + Metadata map[string]any `json:"metadata"` + JSON struct { + Type respjson.Field + ID respjson.Field + Name respjson.Field + Description respjson.Field + Status respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + Model respjson.Field + Multiagent respjson.Field + EnvironmentID respjson.Field + Vaults respjson.Field + Files respjson.Field + GitHubRepositories respjson.Field + System respjson.Field + Tools respjson.Field + MCPServers respjson.Field + Skills respjson.Field + EnvironmentVariables respjson.Field + Metadata respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Template\) [RawJSON]() + +```go +func (r Template) RawJSON() string +``` + + + + +### func \(\*Template\) [UnmarshalJSON]() + +```go +func (r *Template) UnmarshalJSON(data []byte) error +``` + + + + +## type [TemplateArchiveParams]() + + + +```go +type TemplateArchiveParams struct { + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(TemplateArchiveParams\) [URLQuery]() + +```go +func (r TemplateArchiveParams) URLQuery() (url.Values, error) +``` + + + + +## type [TemplateCloneParams]() + + + +```go +type TemplateCloneParams struct { + // Name of the new Template; defaults to ` Copy `. + Name param.Opt[string] `json:"name,omitzero"` + // Description of the new Template; defaults to the source description. + Description param.Opt[string] `json:"description,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(TemplateCloneParams\) [MarshalJSON]() + +```go +func (r TemplateCloneParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*TemplateCloneParams\) [UnmarshalJSON]() + +```go +func (r *TemplateCloneParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [TemplateListParams]() + + + +```go +type TemplateListParams struct { + // Filter by `active` or `archived`. + Status param.Opt[string] `query:"status,omitzero" json:"-"` + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Cursor for the next page; cannot be combined with `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; cannot be combined with `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(TemplateListParams\) [URLQuery]() + +```go +func (r TemplateListParams) URLQuery() (url.Values, error) +``` + + + + +## type [TemplateNewParams]() + + + +```go +type TemplateNewParams struct { + // Template name, 1-256 characters, unique per user. + Name string `json:"name" api:"required"` + // Model identifier. Accepts a string (such as `"ultimate"`), or an Agent model + // object to configure `effort` or `context_window` at the same time. Use the + // list models endpoint to discover the available values. + Model ModelConfigUnionParam `json:"model" api:"required"` + // Environment ID used by default when creating a Session. + EnvironmentID string `json:"environment_id" api:"required"` + // Template description, up to 2048 characters. + Description param.Opt[string] `json:"description,omitzero"` + // System Prompt, up to 100,000 characters. + System param.Opt[string] `json:"system,omitzero"` + // Tool configuration list, up to 128 entries. + Tools []ToolParam `json:"tools,omitzero"` + // MCP Server configuration list, up to 20 entries. + MCPServers []MCPServerParam `json:"mcp_servers,omitzero"` + // Skill binding list, up to 20 entries. + Skills []SkillBindingParam `json:"skills,omitzero"` + // Multi-agent collaboration configuration. `type` must be `coordinator`; omit + // it or pass `null` to leave it disabled. + Multiagent MultiagentConfigParam `json:"multiagent,omitzero"` + // Default Vault configuration, keyed by Vault ID. + Vaults map[string]ResourceBindingParam `json:"vaults,omitzero"` + // Default file resource configuration, keyed by file ID. + Files map[string]ResourceBindingParam `json:"files,omitzero"` + // Default GitHub repository configuration, keyed by a caller-chosen binding + // key, up to 20 entries. + GitHubRepositories map[string]GitHubRepositoryParam `json:"github_repositories,omitzero"` + // Default Session environment variables. + EnvironmentVariables EnvironmentVariablesUnionParam `json:"environment_variables,omitzero"` + // Custom metadata. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // Must be set to `browser-use-2026-07-14` when Browser Use is enabled. + QoderBeta param.Opt[string] `header:"X-Qoder-Beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(TemplateNewParams\) [MarshalJSON]() + +```go +func (r TemplateNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*TemplateNewParams\) [UnmarshalJSON]() + +```go +func (r *TemplateNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [TemplateService]() + +TemplateService provides Forward Template operations. + +```go +type TemplateService struct { + Options []option.RequestOption +} +``` + + +### func [NewTemplateService]() + +```go +func NewTemplateService(opts ...option.RequestOption) TemplateService +``` + + + + +### func \(\*TemplateService\) [Archive]() + +```go +func (r *TemplateService) Archive(ctx context.Context, templateID string, params TemplateArchiveParams, opts ...option.RequestOption) (res *Template, err error) +``` + +Archive Template + + +### func \(\*TemplateService\) [Clone]() + +```go +func (r *TemplateService) Clone(ctx context.Context, templateID string, params TemplateCloneParams, opts ...option.RequestOption) (res *Template, err error) +``` + +Clone Template + + +### func \(\*TemplateService\) [Get]() + +```go +func (r *TemplateService) Get(ctx context.Context, templateID string, opts ...option.RequestOption) (res *Template, err error) +``` + +Get Template + + +### func \(\*TemplateService\) [List]() + +```go +func (r *TemplateService) List(ctx context.Context, params TemplateListParams, opts ...option.RequestOption) (res *pagination.Page[Template], err error) +``` + +List Templates + + +### func \(\*TemplateService\) [ListAutoPaging]() + +```go +func (r *TemplateService) ListAutoPaging(ctx context.Context, params TemplateListParams, opts ...option.RequestOption) *pagination.PageAutoPager[Template] +``` + + + + +### func \(\*TemplateService\) [New]() + +```go +func (r *TemplateService) New(ctx context.Context, params TemplateNewParams, opts ...option.RequestOption) (res *Template, err error) +``` + +Create Template + + +### func \(\*TemplateService\) [Update]() + +```go +func (r *TemplateService) Update(ctx context.Context, templateID string, params TemplateUpdateParams, opts ...option.RequestOption) (res *Template, err error) +``` + +Update Template + + +## type [TemplateUpdateParams]() + + + +```go +type TemplateUpdateParams struct { + // New Template name. + Name param.Opt[string] `json:"name,omitzero"` + // New Template description. + Description param.Opt[string] `json:"description,omitzero"` + // New model identifier. Accepts a string, or an Agent model object to configure + // `effort` or `context_window` at the same time. Use the list models endpoint + // to discover the available values. + Model ModelConfigUnionParam `json:"model,omitzero"` + // New System Prompt. + System param.Opt[string] `json:"system,omitzero"` + // Replaces the tool configuration list wholesale. + Tools []ToolParam `json:"tools,omitzero"` + // Replaces the MCP Server list wholesale. + MCPServers []MCPServerParam `json:"mcp_servers,omitzero"` + // Replaces the Skill binding list wholesale. + Skills []SkillBindingParam `json:"skills,omitzero"` + // Replaces the Multi-agent collaboration configuration wholesale; `null` clears + // it, omitting it keeps the current configuration. + Multiagent MultiagentConfigParam `json:"multiagent,omitzero"` + // Replaces the default Environment ID; `null` or an empty string clears it. + EnvironmentID param.Opt[string] `json:"environment_id,omitzero" api:"nullable"` + // Replaces the default Vault configuration wholesale, keyed by Vault ID; + // `null` clears it. + Vaults map[string]ResourceBindingParam `json:"vaults,omitzero"` + // Replaces the default file resource configuration wholesale; `null` clears it. + Files map[string]ResourceBindingParam `json:"files,omitzero"` + // Replaces the default GitHub repository configuration wholesale, keyed by + // binding key; `null` or an empty object clears it. + GitHubRepositories map[string]GitHubRepositoryParam `json:"github_repositories,omitzero"` + // Replaces the default environment variables wholesale; `null` clears it. + EnvironmentVariables EnvironmentVariablesUnionParam `json:"environment_variables,omitzero"` + // Merges updates into the custom metadata. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for requests with side effects. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // Must be set to `browser-use-2026-07-14` when the updated `tools` include the + // Browser Use toolset. + QoderBeta param.Opt[string] `header:"X-Qoder-Beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(TemplateUpdateParams\) [MarshalJSON]() + +```go +func (r TemplateUpdateParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*TemplateUpdateParams\) [UnmarshalJSON]() + +```go +func (r *TemplateUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [Tool]() + + + +```go +type Tool struct { + Type string `json:"type" api:"required"` + EnabledTools []string `json:"enabled_tools"` + DisallowedTools []string `json:"disallowed_tools"` + Configs []ToolConfig `json:"configs"` + MCPServerName string `json:"mcp_server_name"` + Name string `json:"name"` + Description string `json:"description"` + InputSchema map[string]any `json:"input_schema"` + JSON struct { + Type respjson.Field + EnabledTools respjson.Field + DisallowedTools respjson.Field + Configs respjson.Field + MCPServerName respjson.Field + Name respjson.Field + Description respjson.Field + InputSchema respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Tool\) [RawJSON]() + +```go +func (r Tool) RawJSON() string +``` + + + + +### func \(\*Tool\) [UnmarshalJSON]() + +```go +func (r *Tool) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolConfig]() + + + +```go +type ToolConfig struct { + Name string `json:"name" api:"required"` + Enabled bool `json:"enabled"` + PermissionPolicy PermissionPolicy `json:"permission_policy"` + JSON struct { + Name respjson.Field + Enabled respjson.Field + PermissionPolicy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ToolConfig\) [RawJSON]() + +```go +func (r ToolConfig) RawJSON() string +``` + + + + +### func \(\*ToolConfig\) [UnmarshalJSON]() + +```go +func (r *ToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolConfigParam]() + + + +```go +type ToolConfigParam struct { + Name string `json:"name" api:"required"` + Enabled param.Opt[bool] `json:"enabled,omitzero"` + PermissionPolicy PermissionPolicyParam `json:"permission_policy,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolConfigParam\) [MarshalJSON]() + +```go +func (r ToolConfigParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolConfigParam\) [UnmarshalJSON]() + +```go +func (r *ToolConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolOverride]() + + + +```go +type ToolOverride struct { + Enabled bool `json:"enabled"` + PermissionPolicy PermissionPolicy `json:"permission_policy"` + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ToolOverride\) [RawJSON]() + +```go +func (r ToolOverride) RawJSON() string +``` + + + + +### func \(\*ToolOverride\) [UnmarshalJSON]() + +```go +func (r *ToolOverride) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolOverrideParam]() + + + +```go +type ToolOverrideParam struct { + Enabled param.Opt[bool] `json:"enabled,omitzero"` + PermissionPolicy PermissionPolicyParam `json:"permission_policy,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolOverrideParam\) [MarshalJSON]() + +```go +func (r ToolOverrideParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolOverrideParam\) [UnmarshalJSON]() + +```go +func (r *ToolOverrideParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolParam]() + + + +```go +type ToolParam struct { + Type string `json:"type" api:"required"` + EnabledTools []string `json:"enabled_tools,omitzero"` + DisallowedTools []string `json:"disallowed_tools,omitzero"` + Configs []ToolConfigParam `json:"configs,omitzero"` + MCPServerName param.Opt[string] `json:"mcp_server_name,omitzero"` + Name param.Opt[string] `json:"name,omitzero"` + Description param.Opt[string] `json:"description,omitzero"` + InputSchema map[string]any `json:"input_schema,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolParam\) [MarshalJSON]() + +```go +func (r ToolParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolParam\) [UnmarshalJSON]() + +```go +func (r *ToolParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Vault]() + + + +```go +type Vault struct { + // Vault ID。 + ID string `json:"id"` + // Always `vault`. + Type string `json:"type"` + // Vault display name. + DisplayName string `json:"display_name"` + // Vault metadata. + Metadata map[string]any `json:"metadata"` + // Creation time in RFC 3339 format. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Last update time in RFC 3339 format. + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + // Owning Forward identity. + IdentityID string `json:"identity_id" api:"nullable"` + JSON struct { + ID respjson.Field + Type respjson.Field + DisplayName respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + IdentityID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Vault\) [RawJSON]() + +```go +func (r Vault) RawJSON() string +``` + + + + +### func \(\*Vault\) [UnmarshalJSON]() + +```go +func (r *Vault) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredential]() + + + +```go +type VaultCredential struct { + // Credential ID. + ID string `json:"id"` + // Always `vault_credential`. + Type string `json:"type"` + // ID of the owning Vault. + VaultID string `json:"vault_id"` + // Redacted authentication material. + Auth VaultCredentialAuth `json:"auth"` + // Currently always an empty string. + DisplayName string `json:"display_name"` + // Credential metadata. + Metadata map[string]any `json:"metadata"` + // Creation time in RFC 3339 format. + CreatedAt time.Time `json:"created_at" format:"date-time"` + // Last update time in RFC 3339 format. + UpdatedAt time.Time `json:"updated_at" format:"date-time"` + JSON struct { + ID respjson.Field + Type respjson.Field + VaultID respjson.Field + Auth respjson.Field + DisplayName respjson.Field + Metadata respjson.Field + CreatedAt respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(VaultCredential\) [RawJSON]() + +```go +func (r VaultCredential) RawJSON() string +``` + + + + +### func \(\*VaultCredential\) [UnmarshalJSON]() + +```go +func (r *VaultCredential) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialAuth]() + + + +```go +type VaultCredentialAuth struct { + Type string `json:"type"` + MCPServerURL string `json:"mcp_server_url"` + JSON struct { + Type respjson.Field + MCPServerURL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(VaultCredentialAuth\) [RawJSON]() + +```go +func (r VaultCredentialAuth) RawJSON() string +``` + + + + +### func \(\*VaultCredentialAuth\) [UnmarshalJSON]() + +```go +func (r *VaultCredentialAuth) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialListParams]() + + + +```go +type VaultCredentialListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Pagination cursor (recommended), taken from `next_page` in the previous response; + // mutually exclusive with `after_id` and `before_id`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `page` and `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `page` and `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Search by `mcp_server_url`. + Name param.Opt[string] `query:"name,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialListParams\) [URLQuery]() + +```go +func (r VaultCredentialListParams) URLQuery() (url.Values, error) +``` + + + + +## type [VaultCredentialNewParams]() + + + +```go +type VaultCredentialNewParams struct { + // Credential authentication material; supports `static_bearer` and `mcp_oauth`. The + // response only returns redacted, non-secret fields. + Auth map[string]any `json:"auth" api:"required"` + // Compatibility field; currently not persisted, and Forward always returns an empty + // string. + DisplayName param.Opt[string] `json:"display_name,omitzero"` + // Metadata object. `created_by` is reserved and must not be sent (sending it returns + // 400). + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for the create request. The same key may only be reused + // for an identical request. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialNewParams\) [MarshalJSON]() + +```go +func (r VaultCredentialNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*VaultCredentialNewParams\) [UnmarshalJSON]() + +```go +func (r *VaultCredentialNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialService]() + +VaultCredentialService provides Forward VaultCredential operations. + +```go +type VaultCredentialService struct { + Options []option.RequestOption +} +``` + + +### func [NewVaultCredentialService]() + +```go +func NewVaultCredentialService(opts ...option.RequestOption) VaultCredentialService +``` + + + + +### func \(\*VaultCredentialService\) [Delete]() + +```go +func (r *VaultCredentialService) Delete(ctx context.Context, id string, credID string, opts ...option.RequestOption) (err error) +``` + +Delete Credential + + +### func \(\*VaultCredentialService\) [Get]() + +```go +func (r *VaultCredentialService) Get(ctx context.Context, id string, credID string, opts ...option.RequestOption) (res *VaultCredential, err error) +``` + +Get Credential + + +### func \(\*VaultCredentialService\) [List]() + +```go +func (r *VaultCredentialService) List(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption) (res *pagination.PageCursor[VaultCredential], err error) +``` + +List Credentials + + +### func \(\*VaultCredentialService\) [ListAutoPaging]() + +```go +func (r *VaultCredentialService) ListAutoPaging(ctx context.Context, id string, params VaultCredentialListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[VaultCredential] +``` + + + + +### func \(\*VaultCredentialService\) [New]() + +```go +func (r *VaultCredentialService) New(ctx context.Context, id string, params VaultCredentialNewParams, opts ...option.RequestOption) (res *VaultCredential, err error) +``` + +Create Credential + + +## type [VaultListParams]() + + + +```go +type VaultListParams struct { + // Page size, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Pagination cursor (recommended), taken from `next_page` in the previous + // response; mutually exclusive with `after_id` and `before_id`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Cursor for the next page; mutually exclusive with `page` and `before_id`. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // Cursor for the previous page; mutually exclusive with `page` and `after_id`. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Search by `display_name`. + Name param.Opt[string] `query:"name,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultListParams\) [URLQuery]() + +```go +func (r VaultListParams) URLQuery() (url.Values, error) +``` + + + + +## type [VaultNewParams]() + + + +```go +type VaultNewParams struct { + // Vault display name. + DisplayName string `json:"display_name" api:"required"` + // Metadata object; `created_by` is reserved and cannot be supplied (supplying it + // returns 400). + Metadata map[string]any `json:"metadata,omitzero"` + // Optional idempotency key for the create request. A given key may only be reused + // for an identical request; when omitted, no local replay protection applies. + IdempotencyKey param.Opt[string] `header:"Idempotency-Key,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultNewParams\) [MarshalJSON]() + +```go +func (r VaultNewParams) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*VaultNewParams\) [UnmarshalJSON]() + +```go +func (r *VaultNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultService]() + +VaultService provides Forward Vault operations. + +```go +type VaultService struct { + Options []option.RequestOption + Credentials VaultCredentialService +} +``` + + +### func [NewVaultService]() + +```go +func NewVaultService(opts ...option.RequestOption) VaultService +``` + + + + +### func \(\*VaultService\) [Delete]() + +```go +func (r *VaultService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error) +``` + +Delete Vault + + +### func \(\*VaultService\) [Get]() + +```go +func (r *VaultService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Vault, err error) +``` + +Get Vault + + +### func \(\*VaultService\) [List]() + +```go +func (r *VaultService) List(ctx context.Context, params VaultListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Vault], err error) +``` + +List Vaults + + +### func \(\*VaultService\) [ListAutoPaging]() + +```go +func (r *VaultService) ListAutoPaging(ctx context.Context, params VaultListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Vault] +``` + + + + +### func \(\*VaultService\) [New]() + +```go +func (r *VaultService) New(ctx context.Context, params VaultNewParams, opts ...option.RequestOption) (res *Vault, err error) +``` + +Create Vault + +# managed + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/managed" +``` + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Package managed implements the Qoder Cloud Agents managed API. Service methods and entity fields follow the managed API contract. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +Qoder managed API definitions. + +## Index + +- [Constants](<#constants>) +- [func Bool\(v bool\) param.Opt\[bool\]](<#Bool>) +- [func Float\(v float64\) param.Opt\[float64\]](<#Float>) +- [func Int\(v int64\) param.Opt\[int64\]](<#Int>) +- [func String\(v string\) param.Opt\[string\]](<#String>) +- [type AdvisorRedactedResultBlockParam](<#AdvisorRedactedResultBlockParam>) + - [func \(r AdvisorRedactedResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AdvisorRedactedResultBlockParam.MarshalJSON>) + - [func \(r \*AdvisorRedactedResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#AdvisorRedactedResultBlockParam.UnmarshalJSON>) +- [type AdvisorResultBlockParam](<#AdvisorResultBlockParam>) + - [func \(r AdvisorResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AdvisorResultBlockParam.MarshalJSON>) + - [func \(r \*AdvisorResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#AdvisorResultBlockParam.UnmarshalJSON>) +- [type AdvisorToolResultBlockParam](<#AdvisorToolResultBlockParam>) + - [func \(r AdvisorToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AdvisorToolResultBlockParam.MarshalJSON>) + - [func \(r \*AdvisorToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#AdvisorToolResultBlockParam.UnmarshalJSON>) +- [type AdvisorToolResultBlockParamContentUnion](<#AdvisorToolResultBlockParamContentUnion>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) GetEncryptedContent\(\) \*string](<#AdvisorToolResultBlockParamContentUnion.GetEncryptedContent>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#AdvisorToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) GetStopReason\(\) \*string](<#AdvisorToolResultBlockParamContentUnion.GetStopReason>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) GetText\(\) \*string](<#AdvisorToolResultBlockParamContentUnion.GetText>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) GetType\(\) \*string](<#AdvisorToolResultBlockParamContentUnion.GetType>) + - [func \(u AdvisorToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*AdvisorToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#AdvisorToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type AdvisorToolResultErrorParam](<#AdvisorToolResultErrorParam>) + - [func \(r AdvisorToolResultErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AdvisorToolResultErrorParam.MarshalJSON>) + - [func \(r \*AdvisorToolResultErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#AdvisorToolResultErrorParam.UnmarshalJSON>) +- [type AdvisorToolResultErrorParamErrorCode](<#AdvisorToolResultErrorParamErrorCode>) +- [type AgentArchiveParams](<#AgentArchiveParams>) +- [type AgentGetParams](<#AgentGetParams>) + - [func \(r AgentGetParams\) URLQuery\(\) \(v url.Values, err error\)](<#AgentGetParams.URLQuery>) +- [type AgentListParams](<#AgentListParams>) + - [func \(r AgentListParams\) URLQuery\(\) \(v url.Values, err error\)](<#AgentListParams.URLQuery>) +- [type AgentNewParams](<#AgentNewParams>) + - [func \(r AgentNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AgentNewParams.MarshalJSON>) + - [func \(r \*AgentNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#AgentNewParams.UnmarshalJSON>) +- [type AgentNewParamsToolUnion](<#AgentNewParamsToolUnion>) + - [func \(u AgentNewParamsToolUnion\) GetConfigs\(\) \(res agentNewParamsToolUnionConfigs\)](<#AgentNewParamsToolUnion.GetConfigs>) + - [func \(u AgentNewParamsToolUnion\) GetDefaultConfig\(\) \(res agentNewParamsToolUnionDefaultConfig\)](<#AgentNewParamsToolUnion.GetDefaultConfig>) + - [func \(u AgentNewParamsToolUnion\) GetDescription\(\) \*string](<#AgentNewParamsToolUnion.GetDescription>) + - [func \(u AgentNewParamsToolUnion\) GetInputSchema\(\) \*ManagedAgentsCustomToolInputSchemaParam](<#AgentNewParamsToolUnion.GetInputSchema>) + - [func \(u AgentNewParamsToolUnion\) GetMCPServerName\(\) \*string](<#AgentNewParamsToolUnion.GetMCPServerName>) + - [func \(u AgentNewParamsToolUnion\) GetName\(\) \*string](<#AgentNewParamsToolUnion.GetName>) + - [func \(u AgentNewParamsToolUnion\) GetType\(\) \*string](<#AgentNewParamsToolUnion.GetType>) + - [func \(u AgentNewParamsToolUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentNewParamsToolUnion.MarshalJSON>) + - [func \(u \*AgentNewParamsToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#AgentNewParamsToolUnion.UnmarshalJSON>) +- [type AgentService](<#AgentService>) + - [func NewAgentService\(opts ...option.RequestOption\) \(r AgentService\)](<#NewAgentService>) + - [func \(r \*AgentService\) Archive\(ctx context.Context, agentID string, body AgentArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsAgent, err error\)](<#AgentService.Archive>) + - [func \(r \*AgentService\) Get\(ctx context.Context, agentID string, params AgentGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsAgent, err error\)](<#AgentService.Get>) + - [func \(r \*AgentService\) List\(ctx context.Context, params AgentListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsAgent\], err error\)](<#AgentService.List>) + - [func \(r \*AgentService\) ListAutoPaging\(ctx context.Context, params AgentListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsAgent\]](<#AgentService.ListAutoPaging>) + - [func \(r \*AgentService\) New\(ctx context.Context, params AgentNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsAgent, err error\)](<#AgentService.New>) + - [func \(r \*AgentService\) Update\(ctx context.Context, agentID string, params AgentUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsAgent, err error\)](<#AgentService.Update>) +- [type AgentUpdateParams](<#AgentUpdateParams>) + - [func \(r AgentUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#AgentUpdateParams.MarshalJSON>) + - [func \(r \*AgentUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#AgentUpdateParams.UnmarshalJSON>) +- [type AgentUpdateParamsToolUnion](<#AgentUpdateParamsToolUnion>) + - [func \(u AgentUpdateParamsToolUnion\) GetConfigs\(\) \(res agentUpdateParamsToolUnionConfigs\)](<#AgentUpdateParamsToolUnion.GetConfigs>) + - [func \(u AgentUpdateParamsToolUnion\) GetDefaultConfig\(\) \(res agentUpdateParamsToolUnionDefaultConfig\)](<#AgentUpdateParamsToolUnion.GetDefaultConfig>) + - [func \(u AgentUpdateParamsToolUnion\) GetDescription\(\) \*string](<#AgentUpdateParamsToolUnion.GetDescription>) + - [func \(u AgentUpdateParamsToolUnion\) GetInputSchema\(\) \*ManagedAgentsCustomToolInputSchemaParam](<#AgentUpdateParamsToolUnion.GetInputSchema>) + - [func \(u AgentUpdateParamsToolUnion\) GetMCPServerName\(\) \*string](<#AgentUpdateParamsToolUnion.GetMCPServerName>) + - [func \(u AgentUpdateParamsToolUnion\) GetName\(\) \*string](<#AgentUpdateParamsToolUnion.GetName>) + - [func \(u AgentUpdateParamsToolUnion\) GetType\(\) \*string](<#AgentUpdateParamsToolUnion.GetType>) + - [func \(u AgentUpdateParamsToolUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentUpdateParamsToolUnion.MarshalJSON>) + - [func \(u \*AgentUpdateParamsToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#AgentUpdateParamsToolUnion.UnmarshalJSON>) +- [type AgentVersionListParams](<#AgentVersionListParams>) + - [func \(r AgentVersionListParams\) URLQuery\(\) \(v url.Values, err error\)](<#AgentVersionListParams.URLQuery>) +- [type AgentVersionService](<#AgentVersionService>) + - [func NewAgentVersionService\(opts ...option.RequestOption\) \(r AgentVersionService\)](<#NewAgentVersionService>) + - [func \(r \*AgentVersionService\) List\(ctx context.Context, agentID string, params AgentVersionListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsAgent\], err error\)](<#AgentVersionService.List>) + - [func \(r \*AgentVersionService\) ListAutoPaging\(ctx context.Context, agentID string, params AgentVersionListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsAgent\]](<#AgentVersionService.ListAutoPaging>) +- [type Base64ImageSourceMediaType](<#Base64ImageSourceMediaType>) +- [type Base64ImageSourceParam](<#Base64ImageSourceParam>) + - [func \(r Base64ImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#Base64ImageSourceParam.MarshalJSON>) + - [func \(r \*Base64ImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#Base64ImageSourceParam.UnmarshalJSON>) +- [type Base64PDFSourceParam](<#Base64PDFSourceParam>) + - [func \(r Base64PDFSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#Base64PDFSourceParam.MarshalJSON>) + - [func \(r \*Base64PDFSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#Base64PDFSourceParam.UnmarshalJSON>) +- [type BashCodeExecutionOutputBlockParam](<#BashCodeExecutionOutputBlockParam>) + - [func \(r BashCodeExecutionOutputBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BashCodeExecutionOutputBlockParam.MarshalJSON>) + - [func \(r \*BashCodeExecutionOutputBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#BashCodeExecutionOutputBlockParam.UnmarshalJSON>) +- [type BashCodeExecutionResultBlockParam](<#BashCodeExecutionResultBlockParam>) + - [func \(r BashCodeExecutionResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BashCodeExecutionResultBlockParam.MarshalJSON>) + - [func \(r \*BashCodeExecutionResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#BashCodeExecutionResultBlockParam.UnmarshalJSON>) +- [type BashCodeExecutionToolResultBlockParam](<#BashCodeExecutionToolResultBlockParam>) + - [func \(r BashCodeExecutionToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BashCodeExecutionToolResultBlockParam.MarshalJSON>) + - [func \(r \*BashCodeExecutionToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#BashCodeExecutionToolResultBlockParam.UnmarshalJSON>) +- [type BashCodeExecutionToolResultBlockParamContentUnion](<#BashCodeExecutionToolResultBlockParamContentUnion>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetContent\(\) \[\]BashCodeExecutionOutputBlockParam](<#BashCodeExecutionToolResultBlockParamContentUnion.GetContent>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#BashCodeExecutionToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetReturnCode\(\) \*int64](<#BashCodeExecutionToolResultBlockParamContentUnion.GetReturnCode>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetStderr\(\) \*string](<#BashCodeExecutionToolResultBlockParamContentUnion.GetStderr>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetStdout\(\) \*string](<#BashCodeExecutionToolResultBlockParamContentUnion.GetStdout>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) GetType\(\) \*string](<#BashCodeExecutionToolResultBlockParamContentUnion.GetType>) + - [func \(u BashCodeExecutionToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#BashCodeExecutionToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*BashCodeExecutionToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#BashCodeExecutionToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type BashCodeExecutionToolResultErrorParam](<#BashCodeExecutionToolResultErrorParam>) + - [func \(r BashCodeExecutionToolResultErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BashCodeExecutionToolResultErrorParam.MarshalJSON>) + - [func \(r \*BashCodeExecutionToolResultErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#BashCodeExecutionToolResultErrorParam.UnmarshalJSON>) +- [type BashCodeExecutionToolResultErrorParamErrorCode](<#BashCodeExecutionToolResultErrorParamErrorCode>) +- [type BrowserStateBlockParam](<#BrowserStateBlockParam>) + - [func \(r BrowserStateBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateBlockParam.MarshalJSON>) + - [func \(r \*BrowserStateBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateBlockParam.UnmarshalJSON>) +- [type BrowserStateChangeDownloadCompletedParam](<#BrowserStateChangeDownloadCompletedParam>) + - [func \(r BrowserStateChangeDownloadCompletedParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateChangeDownloadCompletedParam.MarshalJSON>) + - [func \(r \*BrowserStateChangeDownloadCompletedParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateChangeDownloadCompletedParam.UnmarshalJSON>) +- [type BrowserStateChangeDownloadFailedParam](<#BrowserStateChangeDownloadFailedParam>) + - [func \(r BrowserStateChangeDownloadFailedParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateChangeDownloadFailedParam.MarshalJSON>) + - [func \(r \*BrowserStateChangeDownloadFailedParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateChangeDownloadFailedParam.UnmarshalJSON>) +- [type BrowserStateChangeDownloadStartedParam](<#BrowserStateChangeDownloadStartedParam>) + - [func \(r BrowserStateChangeDownloadStartedParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateChangeDownloadStartedParam.MarshalJSON>) + - [func \(r \*BrowserStateChangeDownloadStartedParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateChangeDownloadStartedParam.UnmarshalJSON>) +- [type BrowserStateChangeTabOpenedParam](<#BrowserStateChangeTabOpenedParam>) + - [func \(r BrowserStateChangeTabOpenedParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateChangeTabOpenedParam.MarshalJSON>) + - [func \(r \*BrowserStateChangeTabOpenedParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateChangeTabOpenedParam.UnmarshalJSON>) +- [type BrowserStateChangeUnionParam](<#BrowserStateChangeUnionParam>) + - [func \(u BrowserStateChangeUnionParam\) GetDownloadID\(\) \*string](<#BrowserStateChangeUnionParam.GetDownloadID>) + - [func \(u BrowserStateChangeUnionParam\) GetError\(\) \*string](<#BrowserStateChangeUnionParam.GetError>) + - [func \(u BrowserStateChangeUnionParam\) GetPath\(\) \*string](<#BrowserStateChangeUnionParam.GetPath>) + - [func \(u BrowserStateChangeUnionParam\) GetSizeBytes\(\) \*int64](<#BrowserStateChangeUnionParam.GetSizeBytes>) + - [func \(u BrowserStateChangeUnionParam\) GetTabID\(\) \*string](<#BrowserStateChangeUnionParam.GetTabID>) + - [func \(u BrowserStateChangeUnionParam\) GetType\(\) \*string](<#BrowserStateChangeUnionParam.GetType>) + - [func \(u BrowserStateChangeUnionParam\) GetURL\(\) \*string](<#BrowserStateChangeUnionParam.GetURL>) + - [func \(u BrowserStateChangeUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#BrowserStateChangeUnionParam.MarshalJSON>) + - [func \(u \*BrowserStateChangeUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateChangeUnionParam.UnmarshalJSON>) +- [type BrowserStateTabEntryParam](<#BrowserStateTabEntryParam>) + - [func \(r BrowserStateTabEntryParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#BrowserStateTabEntryParam.MarshalJSON>) + - [func \(r \*BrowserStateTabEntryParam\) UnmarshalJSON\(data \[\]byte\) error](<#BrowserStateTabEntryParam.UnmarshalJSON>) +- [type CacheControlEphemeralParam](<#CacheControlEphemeralParam>) + - [func \(r CacheControlEphemeralParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CacheControlEphemeralParam.MarshalJSON>) + - [func \(r \*CacheControlEphemeralParam\) UnmarshalJSON\(data \[\]byte\) error](<#CacheControlEphemeralParam.UnmarshalJSON>) +- [type CacheControlEphemeralTTL](<#CacheControlEphemeralTTL>) +- [type CapabilitySupport](<#CapabilitySupport>) + - [func \(r CapabilitySupport\) RawJSON\(\) string](<#CapabilitySupport.RawJSON>) + - [func \(r \*CapabilitySupport\) UnmarshalJSON\(data \[\]byte\) error](<#CapabilitySupport.UnmarshalJSON>) +- [type CitationCharLocationParam](<#CitationCharLocationParam>) + - [func \(r CitationCharLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationCharLocationParam.MarshalJSON>) + - [func \(r \*CitationCharLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationCharLocationParam.UnmarshalJSON>) +- [type CitationContentBlockLocationParam](<#CitationContentBlockLocationParam>) + - [func \(r CitationContentBlockLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationContentBlockLocationParam.MarshalJSON>) + - [func \(r \*CitationContentBlockLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationContentBlockLocationParam.UnmarshalJSON>) +- [type CitationPageLocationParam](<#CitationPageLocationParam>) + - [func \(r CitationPageLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationPageLocationParam.MarshalJSON>) + - [func \(r \*CitationPageLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationPageLocationParam.UnmarshalJSON>) +- [type CitationSearchResultLocationParam](<#CitationSearchResultLocationParam>) + - [func \(r CitationSearchResultLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationSearchResultLocationParam.MarshalJSON>) + - [func \(r \*CitationSearchResultLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationSearchResultLocationParam.UnmarshalJSON>) +- [type CitationWebSearchResultLocationParam](<#CitationWebSearchResultLocationParam>) + - [func \(r CitationWebSearchResultLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationWebSearchResultLocationParam.MarshalJSON>) + - [func \(r \*CitationWebSearchResultLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationWebSearchResultLocationParam.UnmarshalJSON>) +- [type CitationsConfigParam](<#CitationsConfigParam>) + - [func \(r CitationsConfigParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CitationsConfigParam.MarshalJSON>) + - [func \(r \*CitationsConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#CitationsConfigParam.UnmarshalJSON>) +- [type Client](<#Client>) + - [func NewClient\(opts ...option.RequestOption\) Client](<#NewClient>) +- [type CloudConfig](<#CloudConfig>) + - [func \(r CloudConfig\) RawJSON\(\) string](<#CloudConfig.RawJSON>) + - [func \(r \*CloudConfig\) UnmarshalJSON\(data \[\]byte\) error](<#CloudConfig.UnmarshalJSON>) +- [type CloudConfigNetworkingUnion](<#CloudConfigNetworkingUnion>) + - [func \(u CloudConfigNetworkingUnion\) AsAny\(\) anyCloudConfigNetworking](<#CloudConfigNetworkingUnion.AsAny>) + - [func \(u CloudConfigNetworkingUnion\) AsLimited\(\) \(v LimitedNetwork\)](<#CloudConfigNetworkingUnion.AsLimited>) + - [func \(u CloudConfigNetworkingUnion\) AsUnrestricted\(\) \(v UnrestrictedNetwork\)](<#CloudConfigNetworkingUnion.AsUnrestricted>) + - [func \(u CloudConfigNetworkingUnion\) RawJSON\(\) string](<#CloudConfigNetworkingUnion.RawJSON>) + - [func \(r \*CloudConfigNetworkingUnion\) UnmarshalJSON\(data \[\]byte\) error](<#CloudConfigNetworkingUnion.UnmarshalJSON>) +- [type CloudConfigParams](<#CloudConfigParams>) + - [func \(r CloudConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CloudConfigParams.MarshalJSON>) + - [func \(r \*CloudConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#CloudConfigParams.UnmarshalJSON>) +- [type CloudConfigParamsNetworkingUnion](<#CloudConfigParamsNetworkingUnion>) + - [func \(u CloudConfigParamsNetworkingUnion\) GetAllowMCPServers\(\) \*bool](<#CloudConfigParamsNetworkingUnion.GetAllowMCPServers>) + - [func \(u CloudConfigParamsNetworkingUnion\) GetAllowPackageManagers\(\) \*bool](<#CloudConfigParamsNetworkingUnion.GetAllowPackageManagers>) + - [func \(u CloudConfigParamsNetworkingUnion\) GetAllowedHosts\(\) \[\]string](<#CloudConfigParamsNetworkingUnion.GetAllowedHosts>) + - [func \(u CloudConfigParamsNetworkingUnion\) GetType\(\) \*string](<#CloudConfigParamsNetworkingUnion.GetType>) + - [func \(u CloudConfigParamsNetworkingUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#CloudConfigParamsNetworkingUnion.MarshalJSON>) + - [func \(u \*CloudConfigParamsNetworkingUnion\) UnmarshalJSON\(data \[\]byte\) error](<#CloudConfigParamsNetworkingUnion.UnmarshalJSON>) +- [type CodeExecutionOutputBlockParam](<#CodeExecutionOutputBlockParam>) + - [func \(r CodeExecutionOutputBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CodeExecutionOutputBlockParam.MarshalJSON>) + - [func \(r \*CodeExecutionOutputBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#CodeExecutionOutputBlockParam.UnmarshalJSON>) +- [type CodeExecutionResultBlockParam](<#CodeExecutionResultBlockParam>) + - [func \(r CodeExecutionResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CodeExecutionResultBlockParam.MarshalJSON>) + - [func \(r \*CodeExecutionResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#CodeExecutionResultBlockParam.UnmarshalJSON>) +- [type CodeExecutionToolResultBlockParam](<#CodeExecutionToolResultBlockParam>) + - [func \(r CodeExecutionToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CodeExecutionToolResultBlockParam.MarshalJSON>) + - [func \(r \*CodeExecutionToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#CodeExecutionToolResultBlockParam.UnmarshalJSON>) +- [type CodeExecutionToolResultBlockParamContentUnion](<#CodeExecutionToolResultBlockParamContentUnion>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetContent\(\) \[\]CodeExecutionOutputBlockParam](<#CodeExecutionToolResultBlockParamContentUnion.GetContent>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetEncryptedStdout\(\) \*string](<#CodeExecutionToolResultBlockParamContentUnion.GetEncryptedStdout>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#CodeExecutionToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetReturnCode\(\) \*int64](<#CodeExecutionToolResultBlockParamContentUnion.GetReturnCode>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetStderr\(\) \*string](<#CodeExecutionToolResultBlockParamContentUnion.GetStderr>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetStdout\(\) \*string](<#CodeExecutionToolResultBlockParamContentUnion.GetStdout>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) GetType\(\) \*string](<#CodeExecutionToolResultBlockParamContentUnion.GetType>) + - [func \(u CodeExecutionToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecutionToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*CodeExecutionToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#CodeExecutionToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type CodeExecutionToolResultErrorCode](<#CodeExecutionToolResultErrorCode>) +- [type CodeExecutionToolResultErrorParam](<#CodeExecutionToolResultErrorParam>) + - [func \(r CodeExecutionToolResultErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CodeExecutionToolResultErrorParam.MarshalJSON>) + - [func \(r \*CodeExecutionToolResultErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#CodeExecutionToolResultErrorParam.UnmarshalJSON>) +- [type CompactionBlockParam](<#CompactionBlockParam>) + - [func \(r CompactionBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#CompactionBlockParam.MarshalJSON>) + - [func \(r \*CompactionBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#CompactionBlockParam.UnmarshalJSON>) +- [type ContainerUploadBlockParam](<#ContainerUploadBlockParam>) + - [func \(r ContainerUploadBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ContainerUploadBlockParam.MarshalJSON>) + - [func \(r \*ContainerUploadBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ContainerUploadBlockParam.UnmarshalJSON>) +- [type ContentBlockParamUnion](<#ContentBlockParamUnion>) + - [func \(u ContentBlockParamUnion\) GetCacheControl\(\) \*CacheControlEphemeralParam](<#ContentBlockParamUnion.GetCacheControl>) + - [func \(u ContentBlockParamUnion\) GetCaller\(\) \(res contentBlockParamUnionCaller\)](<#ContentBlockParamUnion.GetCaller>) + - [func \(u ContentBlockParamUnion\) GetCitations\(\) \(res contentBlockParamUnionCitations\)](<#ContentBlockParamUnion.GetCitations>) + - [func \(u ContentBlockParamUnion\) GetContent\(\) \(res contentBlockParamUnionContent\)](<#ContentBlockParamUnion.GetContent>) + - [func \(u ContentBlockParamUnion\) GetContext\(\) \*string](<#ContentBlockParamUnion.GetContext>) + - [func \(u ContentBlockParamUnion\) GetData\(\) \*string](<#ContentBlockParamUnion.GetData>) + - [func \(u ContentBlockParamUnion\) GetEncryptedContent\(\) \*string](<#ContentBlockParamUnion.GetEncryptedContent>) + - [func \(u ContentBlockParamUnion\) GetFileID\(\) \*string](<#ContentBlockParamUnion.GetFileID>) + - [func \(u ContentBlockParamUnion\) GetFrom\(\) \*FallbackInfoParam](<#ContentBlockParamUnion.GetFrom>) + - [func \(u ContentBlockParamUnion\) GetID\(\) \*string](<#ContentBlockParamUnion.GetID>) + - [func \(u ContentBlockParamUnion\) GetInput\(\) \*any](<#ContentBlockParamUnion.GetInput>) + - [func \(u ContentBlockParamUnion\) GetIsError\(\) \*bool](<#ContentBlockParamUnion.GetIsError>) + - [func \(u ContentBlockParamUnion\) GetName\(\) \*string](<#ContentBlockParamUnion.GetName>) + - [func \(u ContentBlockParamUnion\) GetServerName\(\) \*string](<#ContentBlockParamUnion.GetServerName>) + - [func \(u ContentBlockParamUnion\) GetSignature\(\) \*string](<#ContentBlockParamUnion.GetSignature>) + - [func \(u ContentBlockParamUnion\) GetSource\(\) \(res contentBlockParamUnionSource\)](<#ContentBlockParamUnion.GetSource>) + - [func \(u ContentBlockParamUnion\) GetText\(\) \*string](<#ContentBlockParamUnion.GetText>) + - [func \(u ContentBlockParamUnion\) GetThinking\(\) \*string](<#ContentBlockParamUnion.GetThinking>) + - [func \(u ContentBlockParamUnion\) GetTitle\(\) \*string](<#ContentBlockParamUnion.GetTitle>) + - [func \(u ContentBlockParamUnion\) GetTo\(\) \*FallbackInfoParam](<#ContentBlockParamUnion.GetTo>) + - [func \(u ContentBlockParamUnion\) GetTool\(\) \(res contentBlockParamUnionTool\)](<#ContentBlockParamUnion.GetTool>) + - [func \(u ContentBlockParamUnion\) GetToolUseID\(\) \*string](<#ContentBlockParamUnion.GetToolUseID>) + - [func \(u ContentBlockParamUnion\) GetToolsetName\(\) \*string](<#ContentBlockParamUnion.GetToolsetName>) + - [func \(u ContentBlockParamUnion\) GetTransformations\(\) \*ImageTransformationsParam](<#ContentBlockParamUnion.GetTransformations>) + - [func \(u ContentBlockParamUnion\) GetTrigger\(\) \*any](<#ContentBlockParamUnion.GetTrigger>) + - [func \(u ContentBlockParamUnion\) GetType\(\) \*string](<#ContentBlockParamUnion.GetType>) + - [func \(u ContentBlockParamUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockParamUnion.MarshalJSON>) + - [func \(u \*ContentBlockParamUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ContentBlockParamUnion.UnmarshalJSON>) +- [type ContentBlockSourceContentUnionParam](<#ContentBlockSourceContentUnionParam>) + - [func \(u ContentBlockSourceContentUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockSourceContentUnionParam.MarshalJSON>) + - [func \(u \*ContentBlockSourceContentUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ContentBlockSourceContentUnionParam.UnmarshalJSON>) +- [type ContentBlockSourceParam](<#ContentBlockSourceParam>) + - [func \(r ContentBlockSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ContentBlockSourceParam.MarshalJSON>) + - [func \(r \*ContentBlockSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ContentBlockSourceParam.UnmarshalJSON>) +- [type ContextManagementCapability](<#ContextManagementCapability>) + - [func \(r ContextManagementCapability\) RawJSON\(\) string](<#ContextManagementCapability.RawJSON>) + - [func \(r \*ContextManagementCapability\) UnmarshalJSON\(data \[\]byte\) error](<#ContextManagementCapability.UnmarshalJSON>) +- [type Currency](<#Currency>) +- [type DeletedFile](<#DeletedFile>) + - [func \(r DeletedFile\) RawJSON\(\) string](<#DeletedFile.RawJSON>) + - [func \(r \*DeletedFile\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedFile.UnmarshalJSON>) +- [type DeletedFileType](<#DeletedFileType>) +- [type DeletedSkill](<#DeletedSkill>) + - [func \(r DeletedSkill\) RawJSON\(\) string](<#DeletedSkill.RawJSON>) + - [func \(r \*DeletedSkill\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedSkill.UnmarshalJSON>) +- [type DeletedSkillVersion](<#DeletedSkillVersion>) + - [func \(r DeletedSkillVersion\) RawJSON\(\) string](<#DeletedSkillVersion.RawJSON>) + - [func \(r \*DeletedSkillVersion\) UnmarshalJSON\(data \[\]byte\) error](<#DeletedSkillVersion.UnmarshalJSON>) +- [type DeploymentArchiveParams](<#DeploymentArchiveParams>) +- [type DeploymentGetParams](<#DeploymentGetParams>) +- [type DeploymentListParams](<#DeploymentListParams>) + - [func \(r DeploymentListParams\) URLQuery\(\) \(v url.Values, err error\)](<#DeploymentListParams.URLQuery>) +- [type DeploymentNewParams](<#DeploymentNewParams>) + - [func \(r DeploymentNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DeploymentNewParams.MarshalJSON>) + - [func \(r \*DeploymentNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentNewParams.UnmarshalJSON>) +- [type DeploymentNewParamsAgentUnion](<#DeploymentNewParamsAgentUnion>) + - [func \(u DeploymentNewParamsAgentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentNewParamsAgentUnion.MarshalJSON>) + - [func \(u \*DeploymentNewParamsAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentNewParamsAgentUnion.UnmarshalJSON>) +- [type DeploymentNewParamsResourceUnion](<#DeploymentNewParamsResourceUnion>) + - [func \(u DeploymentNewParamsResourceUnion\) GetAccess\(\) \*string](<#DeploymentNewParamsResourceUnion.GetAccess>) + - [func \(u DeploymentNewParamsResourceUnion\) GetAuthorizationToken\(\) \*string](<#DeploymentNewParamsResourceUnion.GetAuthorizationToken>) + - [func \(u DeploymentNewParamsResourceUnion\) GetCheckout\(\) \*ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion](<#DeploymentNewParamsResourceUnion.GetCheckout>) + - [func \(u DeploymentNewParamsResourceUnion\) GetFileID\(\) \*string](<#DeploymentNewParamsResourceUnion.GetFileID>) + - [func \(u DeploymentNewParamsResourceUnion\) GetInstructions\(\) \*string](<#DeploymentNewParamsResourceUnion.GetInstructions>) + - [func \(u DeploymentNewParamsResourceUnion\) GetMemoryStoreID\(\) \*string](<#DeploymentNewParamsResourceUnion.GetMemoryStoreID>) + - [func \(u DeploymentNewParamsResourceUnion\) GetMountPath\(\) \*string](<#DeploymentNewParamsResourceUnion.GetMountPath>) + - [func \(u DeploymentNewParamsResourceUnion\) GetType\(\) \*string](<#DeploymentNewParamsResourceUnion.GetType>) + - [func \(u DeploymentNewParamsResourceUnion\) GetURL\(\) \*string](<#DeploymentNewParamsResourceUnion.GetURL>) + - [func \(u DeploymentNewParamsResourceUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentNewParamsResourceUnion.MarshalJSON>) + - [func \(u \*DeploymentNewParamsResourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentNewParamsResourceUnion.UnmarshalJSON>) +- [type DeploymentPauseParams](<#DeploymentPauseParams>) +- [type DeploymentRunGetParams](<#DeploymentRunGetParams>) +- [type DeploymentRunListParams](<#DeploymentRunListParams>) + - [func \(r DeploymentRunListParams\) URLQuery\(\) \(v url.Values, err error\)](<#DeploymentRunListParams.URLQuery>) +- [type DeploymentRunParams](<#DeploymentRunParams>) +- [type DeploymentRunService](<#DeploymentRunService>) + - [func NewDeploymentRunService\(opts ...option.RequestOption\) \(r DeploymentRunService\)](<#NewDeploymentRunService>) + - [func \(r \*DeploymentRunService\) Get\(ctx context.Context, deploymentRunID string, query DeploymentRunGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeploymentRun, err error\)](<#DeploymentRunService.Get>) + - [func \(r \*DeploymentRunService\) List\(ctx context.Context, params DeploymentRunListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsDeploymentRun\], err error\)](<#DeploymentRunService.List>) + - [func \(r \*DeploymentRunService\) ListAutoPaging\(ctx context.Context, params DeploymentRunListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsDeploymentRun\]](<#DeploymentRunService.ListAutoPaging>) +- [type DeploymentService](<#DeploymentService>) + - [func NewDeploymentService\(opts ...option.RequestOption\) \(r DeploymentService\)](<#NewDeploymentService>) + - [func \(r \*DeploymentService\) Archive\(ctx context.Context, deploymentID string, body DeploymentArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.Archive>) + - [func \(r \*DeploymentService\) Get\(ctx context.Context, deploymentID string, query DeploymentGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.Get>) + - [func \(r \*DeploymentService\) List\(ctx context.Context, params DeploymentListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsDeployment\], err error\)](<#DeploymentService.List>) + - [func \(r \*DeploymentService\) ListAutoPaging\(ctx context.Context, params DeploymentListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsDeployment\]](<#DeploymentService.ListAutoPaging>) + - [func \(r \*DeploymentService\) New\(ctx context.Context, params DeploymentNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.New>) + - [func \(r \*DeploymentService\) Pause\(ctx context.Context, deploymentID string, body DeploymentPauseParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.Pause>) + - [func \(r \*DeploymentService\) Run\(ctx context.Context, deploymentID string, body DeploymentRunParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeploymentRun, err error\)](<#DeploymentService.Run>) + - [func \(r \*DeploymentService\) Unpause\(ctx context.Context, deploymentID string, body DeploymentUnpauseParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.Unpause>) + - [func \(r \*DeploymentService\) Update\(ctx context.Context, deploymentID string, params DeploymentUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeployment, err error\)](<#DeploymentService.Update>) +- [type DeploymentUnpauseParams](<#DeploymentUnpauseParams>) +- [type DeploymentUpdateParams](<#DeploymentUpdateParams>) + - [func \(r DeploymentUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DeploymentUpdateParams.MarshalJSON>) + - [func \(r \*DeploymentUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentUpdateParams.UnmarshalJSON>) +- [type DeploymentUpdateParamsAgentUnion](<#DeploymentUpdateParamsAgentUnion>) + - [func \(u DeploymentUpdateParamsAgentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentUpdateParamsAgentUnion.MarshalJSON>) + - [func \(u \*DeploymentUpdateParamsAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentUpdateParamsAgentUnion.UnmarshalJSON>) +- [type DeploymentUpdateParamsResourceUnion](<#DeploymentUpdateParamsResourceUnion>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetAccess\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetAccess>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetAuthorizationToken\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetAuthorizationToken>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetCheckout\(\) \*ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion](<#DeploymentUpdateParamsResourceUnion.GetCheckout>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetFileID\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetFileID>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetInstructions\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetInstructions>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetMemoryStoreID\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetMemoryStoreID>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetMountPath\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetMountPath>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetType\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetType>) + - [func \(u DeploymentUpdateParamsResourceUnion\) GetURL\(\) \*string](<#DeploymentUpdateParamsResourceUnion.GetURL>) + - [func \(u DeploymentUpdateParamsResourceUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentUpdateParamsResourceUnion.MarshalJSON>) + - [func \(u \*DeploymentUpdateParamsResourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DeploymentUpdateParamsResourceUnion.UnmarshalJSON>) +- [type DirectCallerParam](<#DirectCallerParam>) + - [func \(r DirectCallerParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DirectCallerParam.MarshalJSON>) + - [func \(r \*DirectCallerParam\) UnmarshalJSON\(data \[\]byte\) error](<#DirectCallerParam.UnmarshalJSON>) +- [type Dream](<#Dream>) + - [func \(r Dream\) RawJSON\(\) string](<#Dream.RawJSON>) + - [func \(r \*Dream\) UnmarshalJSON\(data \[\]byte\) error](<#Dream.UnmarshalJSON>) +- [type DreamArchiveParams](<#DreamArchiveParams>) +- [type DreamCancelParams](<#DreamCancelParams>) +- [type DreamError](<#DreamError>) + - [func \(r DreamError\) RawJSON\(\) string](<#DreamError.RawJSON>) + - [func \(r \*DreamError\) UnmarshalJSON\(data \[\]byte\) error](<#DreamError.UnmarshalJSON>) +- [type DreamGetParams](<#DreamGetParams>) +- [type DreamInputUnion](<#DreamInputUnion>) + - [func \(u DreamInputUnion\) AsAny\(\) anyDreamInput](<#DreamInputUnion.AsAny>) + - [func \(u DreamInputUnion\) AsMemoryStore\(\) \(v DreamMemoryStoreInput\)](<#DreamInputUnion.AsMemoryStore>) + - [func \(u DreamInputUnion\) AsSessions\(\) \(v DreamSessionsInput\)](<#DreamInputUnion.AsSessions>) + - [func \(u DreamInputUnion\) RawJSON\(\) string](<#DreamInputUnion.RawJSON>) + - [func \(r DreamInputUnion\) ToParam\(\) DreamInputUnionParam](<#DreamInputUnion.ToParam>) + - [func \(r \*DreamInputUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DreamInputUnion.UnmarshalJSON>) +- [type DreamInputUnionParam](<#DreamInputUnionParam>) + - [func DreamInputParamOfMemoryStore\(memoryStoreID string\) DreamInputUnionParam](<#DreamInputParamOfMemoryStore>) + - [func DreamInputParamOfSessions\(sessionIDs \[\]string\) DreamInputUnionParam](<#DreamInputParamOfSessions>) + - [func \(u DreamInputUnionParam\) GetMemoryStoreID\(\) \*string](<#DreamInputUnionParam.GetMemoryStoreID>) + - [func \(u DreamInputUnionParam\) GetSessionIDs\(\) \[\]string](<#DreamInputUnionParam.GetSessionIDs>) + - [func \(u DreamInputUnionParam\) GetType\(\) \*string](<#DreamInputUnionParam.GetType>) + - [func \(u DreamInputUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#DreamInputUnionParam.MarshalJSON>) + - [func \(u \*DreamInputUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#DreamInputUnionParam.UnmarshalJSON>) +- [type DreamListParams](<#DreamListParams>) + - [func \(r DreamListParams\) URLQuery\(\) \(v url.Values, err error\)](<#DreamListParams.URLQuery>) +- [type DreamMemoryStoreInput](<#DreamMemoryStoreInput>) + - [func \(r DreamMemoryStoreInput\) RawJSON\(\) string](<#DreamMemoryStoreInput.RawJSON>) + - [func \(r DreamMemoryStoreInput\) ToParam\(\) DreamMemoryStoreInputParam](<#DreamMemoryStoreInput.ToParam>) + - [func \(r \*DreamMemoryStoreInput\) UnmarshalJSON\(data \[\]byte\) error](<#DreamMemoryStoreInput.UnmarshalJSON>) +- [type DreamMemoryStoreInputParam](<#DreamMemoryStoreInputParam>) + - [func \(r DreamMemoryStoreInputParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DreamMemoryStoreInputParam.MarshalJSON>) + - [func \(r \*DreamMemoryStoreInputParam\) UnmarshalJSON\(data \[\]byte\) error](<#DreamMemoryStoreInputParam.UnmarshalJSON>) +- [type DreamMemoryStoreInputType](<#DreamMemoryStoreInputType>) +- [type DreamModelConfig](<#DreamModelConfig>) + - [func \(r DreamModelConfig\) RawJSON\(\) string](<#DreamModelConfig.RawJSON>) + - [func \(r \*DreamModelConfig\) UnmarshalJSON\(data \[\]byte\) error](<#DreamModelConfig.UnmarshalJSON>) +- [type DreamModelConfigParam](<#DreamModelConfigParam>) + - [func \(r DreamModelConfigParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DreamModelConfigParam.MarshalJSON>) + - [func \(r \*DreamModelConfigParam\) UnmarshalJSON\(data \[\]byte\) error](<#DreamModelConfigParam.UnmarshalJSON>) +- [type DreamModelConfigParamSpeed](<#DreamModelConfigParamSpeed>) +- [type DreamModelConfigSpeed](<#DreamModelConfigSpeed>) +- [type DreamNewParams](<#DreamNewParams>) + - [func \(r DreamNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DreamNewParams.MarshalJSON>) + - [func \(r \*DreamNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#DreamNewParams.UnmarshalJSON>) +- [type DreamNewParamsModelUnion](<#DreamNewParamsModelUnion>) + - [func \(u DreamNewParamsModelUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#DreamNewParamsModelUnion.MarshalJSON>) + - [func \(u \*DreamNewParamsModelUnion\) UnmarshalJSON\(data \[\]byte\) error](<#DreamNewParamsModelUnion.UnmarshalJSON>) +- [type DreamOutput](<#DreamOutput>) + - [func \(r DreamOutput\) RawJSON\(\) string](<#DreamOutput.RawJSON>) + - [func \(r \*DreamOutput\) UnmarshalJSON\(data \[\]byte\) error](<#DreamOutput.UnmarshalJSON>) +- [type DreamOutputType](<#DreamOutputType>) +- [type DreamService](<#DreamService>) + - [func NewDreamService\(opts ...option.RequestOption\) \(r DreamService\)](<#NewDreamService>) + - [func \(r \*DreamService\) Archive\(ctx context.Context, dreamID string, body DreamArchiveParams, opts ...option.RequestOption\) \(res \*Dream, err error\)](<#DreamService.Archive>) + - [func \(r \*DreamService\) Cancel\(ctx context.Context, dreamID string, body DreamCancelParams, opts ...option.RequestOption\) \(res \*Dream, err error\)](<#DreamService.Cancel>) + - [func \(r \*DreamService\) Get\(ctx context.Context, dreamID string, query DreamGetParams, opts ...option.RequestOption\) \(res \*Dream, err error\)](<#DreamService.Get>) + - [func \(r \*DreamService\) List\(ctx context.Context, params DreamListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Dream\], err error\)](<#DreamService.List>) + - [func \(r \*DreamService\) ListAutoPaging\(ctx context.Context, params DreamListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Dream\]](<#DreamService.ListAutoPaging>) + - [func \(r \*DreamService\) New\(ctx context.Context, params DreamNewParams, opts ...option.RequestOption\) \(res \*Dream, err error\)](<#DreamService.New>) +- [type DreamSessionsInput](<#DreamSessionsInput>) + - [func \(r DreamSessionsInput\) RawJSON\(\) string](<#DreamSessionsInput.RawJSON>) + - [func \(r DreamSessionsInput\) ToParam\(\) DreamSessionsInputParam](<#DreamSessionsInput.ToParam>) + - [func \(r \*DreamSessionsInput\) UnmarshalJSON\(data \[\]byte\) error](<#DreamSessionsInput.UnmarshalJSON>) +- [type DreamSessionsInputParam](<#DreamSessionsInputParam>) + - [func \(r DreamSessionsInputParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#DreamSessionsInputParam.MarshalJSON>) + - [func \(r \*DreamSessionsInputParam\) UnmarshalJSON\(data \[\]byte\) error](<#DreamSessionsInputParam.UnmarshalJSON>) +- [type DreamSessionsInputType](<#DreamSessionsInputType>) +- [type DreamStatus](<#DreamStatus>) +- [type DreamType](<#DreamType>) +- [type DreamUsage](<#DreamUsage>) + - [func \(r DreamUsage\) RawJSON\(\) string](<#DreamUsage.RawJSON>) + - [func \(r \*DreamUsage\) UnmarshalJSON\(data \[\]byte\) error](<#DreamUsage.UnmarshalJSON>) +- [type EffortCapability](<#EffortCapability>) + - [func \(r EffortCapability\) RawJSON\(\) string](<#EffortCapability.RawJSON>) + - [func \(r \*EffortCapability\) UnmarshalJSON\(data \[\]byte\) error](<#EffortCapability.UnmarshalJSON>) +- [type EncryptedCodeExecutionResultBlockParam](<#EncryptedCodeExecutionResultBlockParam>) + - [func \(r EncryptedCodeExecutionResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#EncryptedCodeExecutionResultBlockParam.MarshalJSON>) + - [func \(r \*EncryptedCodeExecutionResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#EncryptedCodeExecutionResultBlockParam.UnmarshalJSON>) +- [type Environment](<#Environment>) + - [func \(r Environment\) RawJSON\(\) string](<#Environment.RawJSON>) + - [func \(r \*Environment\) UnmarshalJSON\(data \[\]byte\) error](<#Environment.UnmarshalJSON>) +- [type EnvironmentArchiveParams](<#EnvironmentArchiveParams>) +- [type EnvironmentConfigUnion](<#EnvironmentConfigUnion>) + - [func \(u EnvironmentConfigUnion\) AsAny\(\) anyEnvironmentConfig](<#EnvironmentConfigUnion.AsAny>) + - [func \(u EnvironmentConfigUnion\) AsCloud\(\) \(v CloudConfig\)](<#EnvironmentConfigUnion.AsCloud>) + - [func \(u EnvironmentConfigUnion\) AsSelfHosted\(\) \(v SelfHostedConfig\)](<#EnvironmentConfigUnion.AsSelfHosted>) + - [func \(u EnvironmentConfigUnion\) RawJSON\(\) string](<#EnvironmentConfigUnion.RawJSON>) + - [func \(r \*EnvironmentConfigUnion\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentConfigUnion.UnmarshalJSON>) +- [type EnvironmentDeleteParams](<#EnvironmentDeleteParams>) +- [type EnvironmentDeleteResponse](<#EnvironmentDeleteResponse>) + - [func \(r EnvironmentDeleteResponse\) RawJSON\(\) string](<#EnvironmentDeleteResponse.RawJSON>) + - [func \(r \*EnvironmentDeleteResponse\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentDeleteResponse.UnmarshalJSON>) +- [type EnvironmentDeleteResponseType](<#EnvironmentDeleteResponseType>) +- [type EnvironmentGetParams](<#EnvironmentGetParams>) +- [type EnvironmentListParams](<#EnvironmentListParams>) + - [func \(r EnvironmentListParams\) URLQuery\(\) \(v url.Values, err error\)](<#EnvironmentListParams.URLQuery>) +- [type EnvironmentNewParams](<#EnvironmentNewParams>) + - [func \(r EnvironmentNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#EnvironmentNewParams.MarshalJSON>) + - [func \(r \*EnvironmentNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentNewParams.UnmarshalJSON>) +- [type EnvironmentNewParamsConfigUnion](<#EnvironmentNewParamsConfigUnion>) + - [func \(u EnvironmentNewParamsConfigUnion\) GetNetworking\(\) \*CloudConfigParamsNetworkingUnion](<#EnvironmentNewParamsConfigUnion.GetNetworking>) + - [func \(u EnvironmentNewParamsConfigUnion\) GetPackages\(\) \*PackagesParams](<#EnvironmentNewParamsConfigUnion.GetPackages>) + - [func \(u EnvironmentNewParamsConfigUnion\) GetType\(\) \*string](<#EnvironmentNewParamsConfigUnion.GetType>) + - [func \(u EnvironmentNewParamsConfigUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentNewParamsConfigUnion.MarshalJSON>) + - [func \(u \*EnvironmentNewParamsConfigUnion\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentNewParamsConfigUnion.UnmarshalJSON>) +- [type EnvironmentNewParamsScope](<#EnvironmentNewParamsScope>) +- [type EnvironmentScope](<#EnvironmentScope>) +- [type EnvironmentService](<#EnvironmentService>) + - [func NewEnvironmentService\(opts ...option.RequestOption\) \(r EnvironmentService\)](<#NewEnvironmentService>) + - [func \(r \*EnvironmentService\) Archive\(ctx context.Context, environmentID string, body EnvironmentArchiveParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Archive>) + - [func \(r \*EnvironmentService\) Delete\(ctx context.Context, environmentID string, body EnvironmentDeleteParams, opts ...option.RequestOption\) \(res \*EnvironmentDeleteResponse, err error\)](<#EnvironmentService.Delete>) + - [func \(r \*EnvironmentService\) Get\(ctx context.Context, environmentID string, query EnvironmentGetParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Get>) + - [func \(r \*EnvironmentService\) List\(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Environment\], err error\)](<#EnvironmentService.List>) + - [func \(r \*EnvironmentService\) ListAutoPaging\(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Environment\]](<#EnvironmentService.ListAutoPaging>) + - [func \(r \*EnvironmentService\) New\(ctx context.Context, params EnvironmentNewParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.New>) + - [func \(r \*EnvironmentService\) Update\(ctx context.Context, environmentID string, params EnvironmentUpdateParams, opts ...option.RequestOption\) \(res \*Environment, err error\)](<#EnvironmentService.Update>) +- [type EnvironmentUpdateParams](<#EnvironmentUpdateParams>) + - [func \(r EnvironmentUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#EnvironmentUpdateParams.MarshalJSON>) + - [func \(r \*EnvironmentUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentUpdateParams.UnmarshalJSON>) +- [type EnvironmentUpdateParamsConfigUnion](<#EnvironmentUpdateParamsConfigUnion>) + - [func \(u EnvironmentUpdateParamsConfigUnion\) GetNetworking\(\) \*CloudConfigParamsNetworkingUnion](<#EnvironmentUpdateParamsConfigUnion.GetNetworking>) + - [func \(u EnvironmentUpdateParamsConfigUnion\) GetPackages\(\) \*PackagesParams](<#EnvironmentUpdateParamsConfigUnion.GetPackages>) + - [func \(u EnvironmentUpdateParamsConfigUnion\) GetType\(\) \*string](<#EnvironmentUpdateParamsConfigUnion.GetType>) + - [func \(u EnvironmentUpdateParamsConfigUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentUpdateParamsConfigUnion.MarshalJSON>) + - [func \(u \*EnvironmentUpdateParamsConfigUnion\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentUpdateParamsConfigUnion.UnmarshalJSON>) +- [type EnvironmentUpdateParamsScope](<#EnvironmentUpdateParamsScope>) +- [type EnvironmentWorkAckParams](<#EnvironmentWorkAckParams>) +- [type EnvironmentWorkGetParams](<#EnvironmentWorkGetParams>) +- [type EnvironmentWorkHeartbeatParams](<#EnvironmentWorkHeartbeatParams>) + - [func \(r EnvironmentWorkHeartbeatParams\) URLQuery\(\) \(v url.Values, err error\)](<#EnvironmentWorkHeartbeatParams.URLQuery>) +- [type EnvironmentWorkListParams](<#EnvironmentWorkListParams>) + - [func \(r EnvironmentWorkListParams\) URLQuery\(\) \(v url.Values, err error\)](<#EnvironmentWorkListParams.URLQuery>) +- [type EnvironmentWorkPollParams](<#EnvironmentWorkPollParams>) + - [func \(r EnvironmentWorkPollParams\) URLQuery\(\) \(v url.Values, err error\)](<#EnvironmentWorkPollParams.URLQuery>) +- [type EnvironmentWorkService](<#EnvironmentWorkService>) + - [func NewEnvironmentWorkService\(opts ...option.RequestOption\) \(r EnvironmentWorkService\)](<#NewEnvironmentWorkService>) + - [func \(r \*EnvironmentWorkService\) Ack\(ctx context.Context, workID string, params EnvironmentWorkAckParams, opts ...option.RequestOption\) \(res \*SelfHostedWork, err error\)](<#EnvironmentWorkService.Ack>) + - [func \(r \*EnvironmentWorkService\) Get\(ctx context.Context, workID string, params EnvironmentWorkGetParams, opts ...option.RequestOption\) \(res \*SelfHostedWork, err error\)](<#EnvironmentWorkService.Get>) + - [func \(r \*EnvironmentWorkService\) Heartbeat\(ctx context.Context, workID string, params EnvironmentWorkHeartbeatParams, opts ...option.RequestOption\) \(res \*SelfHostedWorkHeartbeatResponse, err error\)](<#EnvironmentWorkService.Heartbeat>) + - [func \(r \*EnvironmentWorkService\) List\(ctx context.Context, environmentID string, params EnvironmentWorkListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[SelfHostedWork\], err error\)](<#EnvironmentWorkService.List>) + - [func \(r \*EnvironmentWorkService\) ListAutoPaging\(ctx context.Context, environmentID string, params EnvironmentWorkListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[SelfHostedWork\]](<#EnvironmentWorkService.ListAutoPaging>) + - [func \(r \*EnvironmentWorkService\) Poll\(ctx context.Context, environmentID string, params EnvironmentWorkPollParams, opts ...option.RequestOption\) \(res \*SelfHostedWork, err error\)](<#EnvironmentWorkService.Poll>) + - [func \(r \*EnvironmentWorkService\) Stats\(ctx context.Context, environmentID string, query EnvironmentWorkStatsParams, opts ...option.RequestOption\) \(res \*SelfHostedWorkQueueStats, err error\)](<#EnvironmentWorkService.Stats>) + - [func \(r \*EnvironmentWorkService\) Stop\(ctx context.Context, workID string, params EnvironmentWorkStopParams, opts ...option.RequestOption\) \(res \*SelfHostedWork, err error\)](<#EnvironmentWorkService.Stop>) + - [func \(r \*EnvironmentWorkService\) Update\(ctx context.Context, workID string, params EnvironmentWorkUpdateParams, opts ...option.RequestOption\) \(res \*SelfHostedWork, err error\)](<#EnvironmentWorkService.Update>) +- [type EnvironmentWorkStatsParams](<#EnvironmentWorkStatsParams>) +- [type EnvironmentWorkStopParams](<#EnvironmentWorkStopParams>) + - [func \(r EnvironmentWorkStopParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#EnvironmentWorkStopParams.MarshalJSON>) + - [func \(r \*EnvironmentWorkStopParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentWorkStopParams.UnmarshalJSON>) +- [type EnvironmentWorkUpdateParams](<#EnvironmentWorkUpdateParams>) + - [func \(r EnvironmentWorkUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#EnvironmentWorkUpdateParams.MarshalJSON>) + - [func \(r \*EnvironmentWorkUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#EnvironmentWorkUpdateParams.UnmarshalJSON>) +- [type Error](<#Error>) +- [type FallbackBlockParam](<#FallbackBlockParam>) + - [func \(r FallbackBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#FallbackBlockParam.MarshalJSON>) + - [func \(r \*FallbackBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#FallbackBlockParam.UnmarshalJSON>) +- [type FallbackInfoParam](<#FallbackInfoParam>) + - [func \(r FallbackInfoParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#FallbackInfoParam.MarshalJSON>) + - [func \(r \*FallbackInfoParam\) UnmarshalJSON\(data \[\]byte\) error](<#FallbackInfoParam.UnmarshalJSON>) +- [type FileDeleteParams](<#FileDeleteParams>) +- [type FileDocumentSourceParam](<#FileDocumentSourceParam>) + - [func \(r FileDocumentSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#FileDocumentSourceParam.MarshalJSON>) + - [func \(r \*FileDocumentSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#FileDocumentSourceParam.UnmarshalJSON>) +- [type FileDownloadParams](<#FileDownloadParams>) +- [type FileGetMetadataParams](<#FileGetMetadataParams>) +- [type FileImageSourceParam](<#FileImageSourceParam>) + - [func \(r FileImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#FileImageSourceParam.MarshalJSON>) + - [func \(r \*FileImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#FileImageSourceParam.UnmarshalJSON>) +- [type FileListParams](<#FileListParams>) + - [func \(r FileListParams\) URLQuery\(\) \(v url.Values, err error\)](<#FileListParams.URLQuery>) +- [type FileMetadata](<#FileMetadata>) + - [func \(r FileMetadata\) RawJSON\(\) string](<#FileMetadata.RawJSON>) + - [func \(r \*FileMetadata\) UnmarshalJSON\(data \[\]byte\) error](<#FileMetadata.UnmarshalJSON>) +- [type FileScope](<#FileScope>) + - [func \(r FileScope\) RawJSON\(\) string](<#FileScope.RawJSON>) + - [func \(r \*FileScope\) UnmarshalJSON\(data \[\]byte\) error](<#FileScope.UnmarshalJSON>) +- [type FileService](<#FileService>) + - [func NewFileService\(opts ...option.RequestOption\) \(r FileService\)](<#NewFileService>) + - [func \(r \*FileService\) Delete\(ctx context.Context, fileID string, body FileDeleteParams, opts ...option.RequestOption\) \(res \*DeletedFile, err error\)](<#FileService.Delete>) + - [func \(r \*FileService\) Download\(ctx context.Context, fileID string, query FileDownloadParams, opts ...option.RequestOption\) \(res \*http.Response, err error\)](<#FileService.Download>) + - [func \(r \*FileService\) GetMetadata\(ctx context.Context, fileID string, query FileGetMetadataParams, opts ...option.RequestOption\) \(res \*FileMetadata, err error\)](<#FileService.GetMetadata>) + - [func \(r \*FileService\) List\(ctx context.Context, params FileListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[FileMetadata\], err error\)](<#FileService.List>) + - [func \(r \*FileService\) ListAutoPaging\(ctx context.Context, params FileListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[FileMetadata\]](<#FileService.ListAutoPaging>) + - [func \(r \*FileService\) Upload\(ctx context.Context, params FileUploadParams, opts ...option.RequestOption\) \(res \*FileMetadata, err error\)](<#FileService.Upload>) +- [type FileUploadParams](<#FileUploadParams>) + - [func \(r FileUploadParams\) MarshalMultipart\(\) \(data \[\]byte, contentType string, err error\)](<#FileUploadParams.MarshalMultipart>) +- [type HealthCheckWorkData](<#HealthCheckWorkData>) + - [func \(r HealthCheckWorkData\) RawJSON\(\) string](<#HealthCheckWorkData.RawJSON>) + - [func \(r \*HealthCheckWorkData\) UnmarshalJSON\(data \[\]byte\) error](<#HealthCheckWorkData.UnmarshalJSON>) +- [type HealthCheckWorkDataType](<#HealthCheckWorkDataType>) +- [type ImageBlockParam](<#ImageBlockParam>) + - [func \(r ImageBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ImageBlockParam.MarshalJSON>) + - [func \(r \*ImageBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ImageBlockParam.UnmarshalJSON>) +- [type ImageBlockParamSourceUnion](<#ImageBlockParamSourceUnion>) + - [func \(u ImageBlockParamSourceUnion\) GetData\(\) \*string](<#ImageBlockParamSourceUnion.GetData>) + - [func \(u ImageBlockParamSourceUnion\) GetFileID\(\) \*string](<#ImageBlockParamSourceUnion.GetFileID>) + - [func \(u ImageBlockParamSourceUnion\) GetMediaType\(\) \*string](<#ImageBlockParamSourceUnion.GetMediaType>) + - [func \(u ImageBlockParamSourceUnion\) GetType\(\) \*string](<#ImageBlockParamSourceUnion.GetType>) + - [func \(u ImageBlockParamSourceUnion\) GetURL\(\) \*string](<#ImageBlockParamSourceUnion.GetURL>) + - [func \(u ImageBlockParamSourceUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ImageBlockParamSourceUnion.MarshalJSON>) + - [func \(u \*ImageBlockParamSourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ImageBlockParamSourceUnion.UnmarshalJSON>) +- [type ImageTransformationsParam](<#ImageTransformationsParam>) + - [func \(r ImageTransformationsParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ImageTransformationsParam.MarshalJSON>) + - [func \(r \*ImageTransformationsParam\) UnmarshalJSON\(data \[\]byte\) error](<#ImageTransformationsParam.UnmarshalJSON>) +- [type ImageTransformationsParamOversizedImage](<#ImageTransformationsParamOversizedImage>) +- [type LimitedNetwork](<#LimitedNetwork>) + - [func \(r LimitedNetwork\) RawJSON\(\) string](<#LimitedNetwork.RawJSON>) + - [func \(r \*LimitedNetwork\) UnmarshalJSON\(data \[\]byte\) error](<#LimitedNetwork.UnmarshalJSON>) +- [type LimitedNetworkParams](<#LimitedNetworkParams>) + - [func \(r LimitedNetworkParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#LimitedNetworkParams.MarshalJSON>) + - [func \(r \*LimitedNetworkParams\) UnmarshalJSON\(data \[\]byte\) error](<#LimitedNetworkParams.UnmarshalJSON>) +- [type MCPToolUseBlockParam](<#MCPToolUseBlockParam>) + - [func \(r MCPToolUseBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MCPToolUseBlockParam.MarshalJSON>) + - [func \(r \*MCPToolUseBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#MCPToolUseBlockParam.UnmarshalJSON>) +- [type ManagedAgentsAPIActor](<#ManagedAgentsAPIActor>) + - [func \(r ManagedAgentsAPIActor\) RawJSON\(\) string](<#ManagedAgentsAPIActor.RawJSON>) + - [func \(r \*ManagedAgentsAPIActor\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAPIActor.UnmarshalJSON>) +- [type ManagedAgentsAPIActorType](<#ManagedAgentsAPIActorType>) +- [type ManagedAgentsActorUnion](<#ManagedAgentsActorUnion>) + - [func \(u ManagedAgentsActorUnion\) AsAPIActor\(\) \(v ManagedAgentsAPIActor\)](<#ManagedAgentsActorUnion.AsAPIActor>) + - [func \(u ManagedAgentsActorUnion\) AsAny\(\) anyManagedAgentsActor](<#ManagedAgentsActorUnion.AsAny>) + - [func \(u ManagedAgentsActorUnion\) AsServiceAccountActor\(\) \(v ManagedAgentsServiceAccountActor\)](<#ManagedAgentsActorUnion.AsServiceAccountActor>) + - [func \(u ManagedAgentsActorUnion\) AsSessionActor\(\) \(v ManagedAgentsSessionActor\)](<#ManagedAgentsActorUnion.AsSessionActor>) + - [func \(u ManagedAgentsActorUnion\) AsUserActor\(\) \(v ManagedAgentsUserActor\)](<#ManagedAgentsActorUnion.AsUserActor>) + - [func \(u ManagedAgentsActorUnion\) RawJSON\(\) string](<#ManagedAgentsActorUnion.RawJSON>) + - [func \(r \*ManagedAgentsActorUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsActorUnion.UnmarshalJSON>) +- [type ManagedAgentsAdvisor](<#ManagedAgentsAdvisor>) + - [func \(r ManagedAgentsAdvisor\) RawJSON\(\) string](<#ManagedAgentsAdvisor.RawJSON>) + - [func \(r \*ManagedAgentsAdvisor\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAdvisor.UnmarshalJSON>) +- [type ManagedAgentsAdvisorParams](<#ManagedAgentsAdvisorParams>) + - [func \(r ManagedAgentsAdvisorParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAdvisorParams.MarshalJSON>) + - [func \(r \*ManagedAgentsAdvisorParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAdvisorParams.UnmarshalJSON>) +- [type ManagedAgentsAdvisorParamsType](<#ManagedAgentsAdvisorParamsType>) +- [type ManagedAgentsAdvisorType](<#ManagedAgentsAdvisorType>) +- [type ManagedAgentsAgent](<#ManagedAgentsAgent>) + - [func \(r ManagedAgentsAgent\) RawJSON\(\) string](<#ManagedAgentsAgent.RawJSON>) + - [func \(r \*ManagedAgentsAgent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgent.UnmarshalJSON>) +- [type ManagedAgentsAgentArchivedDeploymentPausedReasonError](<#ManagedAgentsAgentArchivedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsAgentArchivedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsAgentArchivedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsAgentArchivedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentArchivedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType](<#ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsAgentArchivedRunError](<#ManagedAgentsAgentArchivedRunError>) + - [func \(r ManagedAgentsAgentArchivedRunError\) RawJSON\(\) string](<#ManagedAgentsAgentArchivedRunError.RawJSON>) + - [func \(r \*ManagedAgentsAgentArchivedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentArchivedRunError.UnmarshalJSON>) +- [type ManagedAgentsAgentArchivedRunErrorType](<#ManagedAgentsAgentArchivedRunErrorType>) +- [type ManagedAgentsAgentCustomToolUseEvent](<#ManagedAgentsAgentCustomToolUseEvent>) + - [func \(r ManagedAgentsAgentCustomToolUseEvent\) RawJSON\(\) string](<#ManagedAgentsAgentCustomToolUseEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentCustomToolUseEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentCustomToolUseEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentCustomToolUseEventType](<#ManagedAgentsAgentCustomToolUseEventType>) +- [type ManagedAgentsAgentMCPToolResultEvent](<#ManagedAgentsAgentMCPToolResultEvent>) + - [func \(r ManagedAgentsAgentMCPToolResultEvent\) RawJSON\(\) string](<#ManagedAgentsAgentMCPToolResultEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentMCPToolResultEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMCPToolResultEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentMCPToolResultEventContentUnion](<#ManagedAgentsAgentMCPToolResultEventContentUnion>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) AsAny\(\) anyManagedAgentsAgentMCPToolResultEventContent](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsAny>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsImage>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) AsSearchResult\(\) \(v ManagedAgentsSearchResultBlock\)](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsSearchResult>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsText>) + - [func \(u ManagedAgentsAgentMCPToolResultEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsAgentMCPToolResultEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentMCPToolResultEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMCPToolResultEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentMCPToolResultEventContentUnionSource](<#ManagedAgentsAgentMCPToolResultEventContentUnionSource>) + - [func \(r \*ManagedAgentsAgentMCPToolResultEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMCPToolResultEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsAgentMCPToolResultEventType](<#ManagedAgentsAgentMCPToolResultEventType>) +- [type ManagedAgentsAgentMCPToolUseEvent](<#ManagedAgentsAgentMCPToolUseEvent>) + - [func \(r ManagedAgentsAgentMCPToolUseEvent\) RawJSON\(\) string](<#ManagedAgentsAgentMCPToolUseEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentMCPToolUseEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMCPToolUseEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentMCPToolUseEventEvaluatedPermission](<#ManagedAgentsAgentMCPToolUseEventEvaluatedPermission>) +- [type ManagedAgentsAgentMCPToolUseEventType](<#ManagedAgentsAgentMCPToolUseEventType>) +- [type ManagedAgentsAgentMessageEvent](<#ManagedAgentsAgentMessageEvent>) + - [func \(r ManagedAgentsAgentMessageEvent\) RawJSON\(\) string](<#ManagedAgentsAgentMessageEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentMessageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMessageEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentMessageEventContentUnion](<#ManagedAgentsAgentMessageEventContentUnion>) + - [func \(u ManagedAgentsAgentMessageEventContentUnion\) AsAny\(\) anyManagedAgentsAgentMessageEventContent](<#ManagedAgentsAgentMessageEventContentUnion.AsAny>) + - [func \(u ManagedAgentsAgentMessageEventContentUnion\) AsRedacted\(\) \(v ManagedAgentsRedactedBlock\)](<#ManagedAgentsAgentMessageEventContentUnion.AsRedacted>) + - [func \(u ManagedAgentsAgentMessageEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsAgentMessageEventContentUnion.AsText>) + - [func \(u ManagedAgentsAgentMessageEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsAgentMessageEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentMessageEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMessageEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentMessageEventType](<#ManagedAgentsAgentMessageEventType>) +- [type ManagedAgentsAgentMessagePreview](<#ManagedAgentsAgentMessagePreview>) + - [func \(r ManagedAgentsAgentMessagePreview\) RawJSON\(\) string](<#ManagedAgentsAgentMessagePreview.RawJSON>) + - [func \(r \*ManagedAgentsAgentMessagePreview\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentMessagePreview.UnmarshalJSON>) +- [type ManagedAgentsAgentMessagePreviewType](<#ManagedAgentsAgentMessagePreviewType>) +- [type ManagedAgentsAgentParams](<#ManagedAgentsAgentParams>) + - [func \(r ManagedAgentsAgentParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAgentParams.MarshalJSON>) + - [func \(r \*ManagedAgentsAgentParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentParams.UnmarshalJSON>) +- [type ManagedAgentsAgentParamsType](<#ManagedAgentsAgentParamsType>) +- [type ManagedAgentsAgentReference](<#ManagedAgentsAgentReference>) + - [func \(r ManagedAgentsAgentReference\) RawJSON\(\) string](<#ManagedAgentsAgentReference.RawJSON>) + - [func \(r \*ManagedAgentsAgentReference\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentReference.UnmarshalJSON>) +- [type ManagedAgentsAgentReferenceType](<#ManagedAgentsAgentReferenceType>) +- [type ManagedAgentsAgentSkillUnion](<#ManagedAgentsAgentSkillUnion>) + - [func \(u ManagedAgentsAgentSkillUnion\) AsAny\(\) anyManagedAgentsAgentSkill](<#ManagedAgentsAgentSkillUnion.AsAny>) + - [func \(u ManagedAgentsAgentSkillUnion\) AsCustom\(\) \(v ManagedAgentsCustomSkill\)](<#ManagedAgentsAgentSkillUnion.AsCustom>) + - [func \(u ManagedAgentsAgentSkillUnion\) AsQoder\(\) \(v ManagedAgentsQoderSkill\)](<#ManagedAgentsAgentSkillUnion.AsQoder>) + - [func \(u ManagedAgentsAgentSkillUnion\) RawJSON\(\) string](<#ManagedAgentsAgentSkillUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentSkillUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentSkillUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentThinkingEvent](<#ManagedAgentsAgentThinkingEvent>) + - [func \(r ManagedAgentsAgentThinkingEvent\) RawJSON\(\) string](<#ManagedAgentsAgentThinkingEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentThinkingEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThinkingEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentThinkingEventType](<#ManagedAgentsAgentThinkingEventType>) +- [type ManagedAgentsAgentThinkingPreview](<#ManagedAgentsAgentThinkingPreview>) + - [func \(r ManagedAgentsAgentThinkingPreview\) RawJSON\(\) string](<#ManagedAgentsAgentThinkingPreview.RawJSON>) + - [func \(r \*ManagedAgentsAgentThinkingPreview\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThinkingPreview.UnmarshalJSON>) +- [type ManagedAgentsAgentThinkingPreviewType](<#ManagedAgentsAgentThinkingPreviewType>) +- [type ManagedAgentsAgentThreadContextCompactedEvent](<#ManagedAgentsAgentThreadContextCompactedEvent>) + - [func \(r ManagedAgentsAgentThreadContextCompactedEvent\) RawJSON\(\) string](<#ManagedAgentsAgentThreadContextCompactedEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentThreadContextCompactedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadContextCompactedEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadContextCompactedEventType](<#ManagedAgentsAgentThreadContextCompactedEventType>) +- [type ManagedAgentsAgentThreadMessageReceivedEvent](<#ManagedAgentsAgentThreadMessageReceivedEvent>) + - [func \(r ManagedAgentsAgentThreadMessageReceivedEvent\) RawJSON\(\) string](<#ManagedAgentsAgentThreadMessageReceivedEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentThreadMessageReceivedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageReceivedEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageReceivedEventContentUnion](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) AsAny\(\) anyManagedAgentsAgentThreadMessageReceivedEventContent](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsAny>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsImage>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) AsRedacted\(\) \(v ManagedAgentsRedactedBlock\)](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsRedacted>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsText>) + - [func \(u ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource>) + - [func \(r \*ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageReceivedEventType](<#ManagedAgentsAgentThreadMessageReceivedEventType>) +- [type ManagedAgentsAgentThreadMessageSentEvent](<#ManagedAgentsAgentThreadMessageSentEvent>) + - [func \(r ManagedAgentsAgentThreadMessageSentEvent\) RawJSON\(\) string](<#ManagedAgentsAgentThreadMessageSentEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentThreadMessageSentEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageSentEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageSentEventContentUnion](<#ManagedAgentsAgentThreadMessageSentEventContentUnion>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) AsAny\(\) anyManagedAgentsAgentThreadMessageSentEventContent](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsAny>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsImage>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) AsRedacted\(\) \(v ManagedAgentsRedactedBlock\)](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsRedacted>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsText>) + - [func \(u ManagedAgentsAgentThreadMessageSentEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentThreadMessageSentEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageSentEventContentUnionSource](<#ManagedAgentsAgentThreadMessageSentEventContentUnionSource>) + - [func \(r \*ManagedAgentsAgentThreadMessageSentEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentThreadMessageSentEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsAgentThreadMessageSentEventType](<#ManagedAgentsAgentThreadMessageSentEventType>) +- [type ManagedAgentsAgentToolConfigParamsUnion](<#ManagedAgentsAgentToolConfigParamsUnion>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetAllowedDomains\(\) \[\]string](<#ManagedAgentsAgentToolConfigParamsUnion.GetAllowedDomains>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetBlockedDomains\(\) \[\]string](<#ManagedAgentsAgentToolConfigParamsUnion.GetBlockedDomains>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetEnabled\(\) \*bool](<#ManagedAgentsAgentToolConfigParamsUnion.GetEnabled>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetMaxContentTokens\(\) \*int64](<#ManagedAgentsAgentToolConfigParamsUnion.GetMaxContentTokens>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetName\(\) \*string](<#ManagedAgentsAgentToolConfigParamsUnion.GetName>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetPermissionPolicy\(\) \(res managedAgentsAgentToolConfigParamsUnionPermissionPolicy\)](<#ManagedAgentsAgentToolConfigParamsUnion.GetPermissionPolicy>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetType\(\) \*string](<#ManagedAgentsAgentToolConfigParamsUnion.GetType>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) GetUserLocation\(\) \*ManagedAgentsUserLocationParam](<#ManagedAgentsAgentToolConfigParamsUnion.GetUserLocation>) + - [func \(u ManagedAgentsAgentToolConfigParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsAgentToolConfigParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsAgentToolConfigParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolConfigParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentToolConfigUnion](<#ManagedAgentsAgentToolConfigUnion>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsAny\(\) anyManagedAgentsAgentToolConfig](<#ManagedAgentsAgentToolConfigUnion.AsAny>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsBash\(\) \(v ManagedAgentsBashToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsBash>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsEdit\(\) \(v ManagedAgentsEditToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsEdit>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsGlob\(\) \(v ManagedAgentsGlobToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsGlob>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsGrep\(\) \(v ManagedAgentsGrepToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsGrep>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsRead\(\) \(v ManagedAgentsReadToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsRead>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsWebFetch\(\) \(v ManagedAgentsWebFetchToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsWebFetch>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsWebSearch\(\) \(v ManagedAgentsWebSearchToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsWebSearch>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) AsWrite\(\) \(v ManagedAgentsWriteToolConfig\)](<#ManagedAgentsAgentToolConfigUnion.AsWrite>) + - [func \(u ManagedAgentsAgentToolConfigUnion\) RawJSON\(\) string](<#ManagedAgentsAgentToolConfigUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolConfigUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolConfigUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentToolConfigUnionPermissionPolicy](<#ManagedAgentsAgentToolConfigUnionPermissionPolicy>) + - [func \(r \*ManagedAgentsAgentToolConfigUnionPermissionPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolConfigUnionPermissionPolicy.UnmarshalJSON>) +- [type ManagedAgentsAgentToolResultEvent](<#ManagedAgentsAgentToolResultEvent>) + - [func \(r ManagedAgentsAgentToolResultEvent\) RawJSON\(\) string](<#ManagedAgentsAgentToolResultEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolResultEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolResultEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentToolResultEventContentUnion](<#ManagedAgentsAgentToolResultEventContentUnion>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) AsAny\(\) anyManagedAgentsAgentToolResultEventContent](<#ManagedAgentsAgentToolResultEventContentUnion.AsAny>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsAgentToolResultEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsAgentToolResultEventContentUnion.AsImage>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) AsSearchResult\(\) \(v ManagedAgentsSearchResultBlock\)](<#ManagedAgentsAgentToolResultEventContentUnion.AsSearchResult>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsAgentToolResultEventContentUnion.AsText>) + - [func \(u ManagedAgentsAgentToolResultEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsAgentToolResultEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolResultEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolResultEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentToolResultEventContentUnionSource](<#ManagedAgentsAgentToolResultEventContentUnionSource>) + - [func \(r \*ManagedAgentsAgentToolResultEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolResultEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsAgentToolResultEventType](<#ManagedAgentsAgentToolResultEventType>) +- [type ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>) + - [func \(u ManagedAgentsAgentToolUnion\) AsAgentToolset20260401\(\) \(v ManagedAgentsAgentToolset20260401\)](<#ManagedAgentsAgentToolUnion.AsAgentToolset20260401>) + - [func \(u ManagedAgentsAgentToolUnion\) AsAny\(\) anyManagedAgentsAgentTool](<#ManagedAgentsAgentToolUnion.AsAny>) + - [func \(u ManagedAgentsAgentToolUnion\) AsCustom\(\) \(v ManagedAgentsCustomTool\)](<#ManagedAgentsAgentToolUnion.AsCustom>) + - [func \(u ManagedAgentsAgentToolUnion\) AsMCPToolset\(\) \(v ManagedAgentsMCPToolset\)](<#ManagedAgentsAgentToolUnion.AsMCPToolset>) + - [func \(u ManagedAgentsAgentToolUnion\) RawJSON\(\) string](<#ManagedAgentsAgentToolUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentToolUnionConfigs](<#ManagedAgentsAgentToolUnionConfigs>) + - [func \(r \*ManagedAgentsAgentToolUnionConfigs\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolUnionConfigs.UnmarshalJSON>) +- [type ManagedAgentsAgentToolUnionDefaultConfig](<#ManagedAgentsAgentToolUnionDefaultConfig>) + - [func \(r \*ManagedAgentsAgentToolUnionDefaultConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolUnionDefaultConfig.UnmarshalJSON>) +- [type ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy](<#ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy>) + - [func \(r \*ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy.UnmarshalJSON>) +- [type ManagedAgentsAgentToolUseEvent](<#ManagedAgentsAgentToolUseEvent>) + - [func \(r ManagedAgentsAgentToolUseEvent\) RawJSON\(\) string](<#ManagedAgentsAgentToolUseEvent.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolUseEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolUseEvent.UnmarshalJSON>) +- [type ManagedAgentsAgentToolUseEventEvaluatedPermission](<#ManagedAgentsAgentToolUseEventEvaluatedPermission>) +- [type ManagedAgentsAgentToolUseEventType](<#ManagedAgentsAgentToolUseEventType>) +- [type ManagedAgentsAgentToolset20260401](<#ManagedAgentsAgentToolset20260401>) + - [func \(r ManagedAgentsAgentToolset20260401\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401BashInput](<#ManagedAgentsAgentToolset20260401BashInput>) + - [func \(r ManagedAgentsAgentToolset20260401BashInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401BashInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401BashInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401BashInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401EditInput](<#ManagedAgentsAgentToolset20260401EditInput>) + - [func \(r ManagedAgentsAgentToolset20260401EditInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401EditInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401EditInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401EditInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401GlobInput](<#ManagedAgentsAgentToolset20260401GlobInput>) + - [func \(r ManagedAgentsAgentToolset20260401GlobInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401GlobInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401GlobInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401GlobInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401GrepInput](<#ManagedAgentsAgentToolset20260401GrepInput>) + - [func \(r ManagedAgentsAgentToolset20260401GrepInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401GrepInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401GrepInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401GrepInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401Params](<#ManagedAgentsAgentToolset20260401Params>) + - [func \(r ManagedAgentsAgentToolset20260401Params\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAgentToolset20260401Params.MarshalJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401Params\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401Params.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401ParamsType](<#ManagedAgentsAgentToolset20260401ParamsType>) +- [type ManagedAgentsAgentToolset20260401ReadInput](<#ManagedAgentsAgentToolset20260401ReadInput>) + - [func \(r ManagedAgentsAgentToolset20260401ReadInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401ReadInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401ReadInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401ReadInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolset20260401Type](<#ManagedAgentsAgentToolset20260401Type>) +- [type ManagedAgentsAgentToolset20260401WriteInput](<#ManagedAgentsAgentToolset20260401WriteInput>) + - [func \(r ManagedAgentsAgentToolset20260401WriteInput\) RawJSON\(\) string](<#ManagedAgentsAgentToolset20260401WriteInput.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolset20260401WriteInput\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolset20260401WriteInput.UnmarshalJSON>) +- [type ManagedAgentsAgentToolsetDefaultConfig](<#ManagedAgentsAgentToolsetDefaultConfig>) + - [func \(r ManagedAgentsAgentToolsetDefaultConfig\) RawJSON\(\) string](<#ManagedAgentsAgentToolsetDefaultConfig.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolsetDefaultConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolsetDefaultConfig.UnmarshalJSON>) +- [type ManagedAgentsAgentToolsetDefaultConfigParams](<#ManagedAgentsAgentToolsetDefaultConfigParams>) + - [func \(r ManagedAgentsAgentToolsetDefaultConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAgentToolsetDefaultConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsAgentToolsetDefaultConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolsetDefaultConfigParams.UnmarshalJSON>) +- [type ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion](<#ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsAgentToolsetDefaultConfigPermissionPolicy](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentType](<#ManagedAgentsAgentType>) +- [type ManagedAgentsAgentWithOverridesParams](<#ManagedAgentsAgentWithOverridesParams>) + - [func \(r ManagedAgentsAgentWithOverridesParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAgentWithOverridesParams.MarshalJSON>) + - [func \(r \*ManagedAgentsAgentWithOverridesParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentWithOverridesParams.UnmarshalJSON>) +- [type ManagedAgentsAgentWithOverridesParamsToolUnion](<#ManagedAgentsAgentWithOverridesParamsToolUnion>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetConfigs\(\) \(res managedAgentsAgentWithOverridesParamsToolUnionConfigs\)](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetConfigs>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetDefaultConfig\(\) \(res managedAgentsAgentWithOverridesParamsToolUnionDefaultConfig\)](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetDefaultConfig>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetDescription\(\) \*string](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetDescription>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetInputSchema\(\) \*ManagedAgentsCustomToolInputSchemaParam](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetInputSchema>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetMCPServerName\(\) \*string](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetMCPServerName>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetName\(\) \*string](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetName>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) GetType\(\) \*string](<#ManagedAgentsAgentWithOverridesParamsToolUnion.GetType>) + - [func \(u ManagedAgentsAgentWithOverridesParamsToolUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsAgentWithOverridesParamsToolUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsAgentWithOverridesParamsToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAgentWithOverridesParamsToolUnion.UnmarshalJSON>) +- [type ManagedAgentsAgentWithOverridesParamsType](<#ManagedAgentsAgentWithOverridesParamsType>) +- [type ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>) + - [func \(r ManagedAgentsAlwaysAllowPolicy\) RawJSON\(\) string](<#ManagedAgentsAlwaysAllowPolicy.RawJSON>) + - [func \(r ManagedAgentsAlwaysAllowPolicy\) ToParam\(\) ManagedAgentsAlwaysAllowPolicyParam](<#ManagedAgentsAlwaysAllowPolicy.ToParam>) + - [func \(r \*ManagedAgentsAlwaysAllowPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAlwaysAllowPolicy.UnmarshalJSON>) +- [type ManagedAgentsAlwaysAllowPolicyParam](<#ManagedAgentsAlwaysAllowPolicyParam>) + - [func \(r ManagedAgentsAlwaysAllowPolicyParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAlwaysAllowPolicyParam.MarshalJSON>) + - [func \(r \*ManagedAgentsAlwaysAllowPolicyParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAlwaysAllowPolicyParam.UnmarshalJSON>) +- [type ManagedAgentsAlwaysAllowPolicyType](<#ManagedAgentsAlwaysAllowPolicyType>) +- [type ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>) + - [func \(r ManagedAgentsAlwaysAskPolicy\) RawJSON\(\) string](<#ManagedAgentsAlwaysAskPolicy.RawJSON>) + - [func \(r ManagedAgentsAlwaysAskPolicy\) ToParam\(\) ManagedAgentsAlwaysAskPolicyParam](<#ManagedAgentsAlwaysAskPolicy.ToParam>) + - [func \(r \*ManagedAgentsAlwaysAskPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAlwaysAskPolicy.UnmarshalJSON>) +- [type ManagedAgentsAlwaysAskPolicyParam](<#ManagedAgentsAlwaysAskPolicyParam>) + - [func \(r ManagedAgentsAlwaysAskPolicyParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsAlwaysAskPolicyParam.MarshalJSON>) + - [func \(r \*ManagedAgentsAlwaysAskPolicyParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsAlwaysAskPolicyParam.UnmarshalJSON>) +- [type ManagedAgentsAlwaysAskPolicyType](<#ManagedAgentsAlwaysAskPolicyType>) +- [type ManagedAgentsBase64DocumentSource](<#ManagedAgentsBase64DocumentSource>) + - [func \(r ManagedAgentsBase64DocumentSource\) RawJSON\(\) string](<#ManagedAgentsBase64DocumentSource.RawJSON>) + - [func \(r ManagedAgentsBase64DocumentSource\) ToParam\(\) ManagedAgentsBase64DocumentSourceParam](<#ManagedAgentsBase64DocumentSource.ToParam>) + - [func \(r \*ManagedAgentsBase64DocumentSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBase64DocumentSource.UnmarshalJSON>) +- [type ManagedAgentsBase64DocumentSourceParam](<#ManagedAgentsBase64DocumentSourceParam>) + - [func \(r ManagedAgentsBase64DocumentSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsBase64DocumentSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsBase64DocumentSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBase64DocumentSourceParam.UnmarshalJSON>) +- [type ManagedAgentsBase64DocumentSourceType](<#ManagedAgentsBase64DocumentSourceType>) +- [type ManagedAgentsBase64ImageSource](<#ManagedAgentsBase64ImageSource>) + - [func \(r ManagedAgentsBase64ImageSource\) RawJSON\(\) string](<#ManagedAgentsBase64ImageSource.RawJSON>) + - [func \(r ManagedAgentsBase64ImageSource\) ToParam\(\) ManagedAgentsBase64ImageSourceParam](<#ManagedAgentsBase64ImageSource.ToParam>) + - [func \(r \*ManagedAgentsBase64ImageSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBase64ImageSource.UnmarshalJSON>) +- [type ManagedAgentsBase64ImageSourceParam](<#ManagedAgentsBase64ImageSourceParam>) + - [func \(r ManagedAgentsBase64ImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsBase64ImageSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsBase64ImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBase64ImageSourceParam.UnmarshalJSON>) +- [type ManagedAgentsBase64ImageSourceType](<#ManagedAgentsBase64ImageSourceType>) +- [type ManagedAgentsBashToolConfig](<#ManagedAgentsBashToolConfig>) + - [func \(r ManagedAgentsBashToolConfig\) RawJSON\(\) string](<#ManagedAgentsBashToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsBashToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBashToolConfig.UnmarshalJSON>) +- [type ManagedAgentsBashToolConfigParams](<#ManagedAgentsBashToolConfigParams>) + - [func \(r ManagedAgentsBashToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsBashToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsBashToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBashToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsBashToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsBashToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsBashToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsBashToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBashToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsBashToolConfigParamsType](<#ManagedAgentsBashToolConfigParamsType>) +- [type ManagedAgentsBashToolConfigPermissionPolicyUnion](<#ManagedAgentsBashToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsBashToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsBashToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsBashToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsBashToolConfigPermissionPolicy](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsBashToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsBashToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsBillingError](<#ManagedAgentsBillingError>) + - [func \(r ManagedAgentsBillingError\) RawJSON\(\) string](<#ManagedAgentsBillingError.RawJSON>) + - [func \(r \*ManagedAgentsBillingError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBillingError.UnmarshalJSON>) +- [type ManagedAgentsBillingErrorRetryStatusUnion](<#ManagedAgentsBillingErrorRetryStatusUnion>) + - [func \(u ManagedAgentsBillingErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsBillingErrorRetryStatus](<#ManagedAgentsBillingErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsBillingErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsBillingErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsBillingErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsBillingErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsBillingErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsBillingErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsBillingErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsBillingErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsBillingErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBillingErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsBillingErrorType](<#ManagedAgentsBillingErrorType>) +- [type ManagedAgentsBranchCheckout](<#ManagedAgentsBranchCheckout>) + - [func \(r ManagedAgentsBranchCheckout\) RawJSON\(\) string](<#ManagedAgentsBranchCheckout.RawJSON>) + - [func \(r ManagedAgentsBranchCheckout\) ToParam\(\) ManagedAgentsBranchCheckoutParam](<#ManagedAgentsBranchCheckout.ToParam>) + - [func \(r \*ManagedAgentsBranchCheckout\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBranchCheckout.UnmarshalJSON>) +- [type ManagedAgentsBranchCheckoutParam](<#ManagedAgentsBranchCheckoutParam>) + - [func \(r ManagedAgentsBranchCheckoutParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsBranchCheckoutParam.MarshalJSON>) + - [func \(r \*ManagedAgentsBranchCheckoutParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBranchCheckoutParam.UnmarshalJSON>) +- [type ManagedAgentsBranchCheckoutType](<#ManagedAgentsBranchCheckoutType>) +- [type ManagedAgentsBudgetLimit](<#ManagedAgentsBudgetLimit>) + - [func \(r ManagedAgentsBudgetLimit\) RawJSON\(\) string](<#ManagedAgentsBudgetLimit.RawJSON>) + - [func \(r ManagedAgentsBudgetLimit\) ToParam\(\) ManagedAgentsBudgetLimitParam](<#ManagedAgentsBudgetLimit.ToParam>) + - [func \(r \*ManagedAgentsBudgetLimit\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBudgetLimit.UnmarshalJSON>) +- [type ManagedAgentsBudgetLimitParam](<#ManagedAgentsBudgetLimitParam>) + - [func \(r ManagedAgentsBudgetLimitParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsBudgetLimitParam.MarshalJSON>) + - [func \(r \*ManagedAgentsBudgetLimitParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsBudgetLimitParam.UnmarshalJSON>) +- [type ManagedAgentsBudgetLimitType](<#ManagedAgentsBudgetLimitType>) +- [type ManagedAgentsCacheCreationUsage](<#ManagedAgentsCacheCreationUsage>) + - [func \(r ManagedAgentsCacheCreationUsage\) RawJSON\(\) string](<#ManagedAgentsCacheCreationUsage.RawJSON>) + - [func \(r \*ManagedAgentsCacheCreationUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCacheCreationUsage.UnmarshalJSON>) +- [type ManagedAgentsCommitCheckout](<#ManagedAgentsCommitCheckout>) + - [func \(r ManagedAgentsCommitCheckout\) RawJSON\(\) string](<#ManagedAgentsCommitCheckout.RawJSON>) + - [func \(r ManagedAgentsCommitCheckout\) ToParam\(\) ManagedAgentsCommitCheckoutParam](<#ManagedAgentsCommitCheckout.ToParam>) + - [func \(r \*ManagedAgentsCommitCheckout\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCommitCheckout.UnmarshalJSON>) +- [type ManagedAgentsCommitCheckoutParam](<#ManagedAgentsCommitCheckoutParam>) + - [func \(r ManagedAgentsCommitCheckoutParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsCommitCheckoutParam.MarshalJSON>) + - [func \(r \*ManagedAgentsCommitCheckoutParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCommitCheckoutParam.UnmarshalJSON>) +- [type ManagedAgentsCommitCheckoutType](<#ManagedAgentsCommitCheckoutType>) +- [type ManagedAgentsCredential](<#ManagedAgentsCredential>) + - [func \(r ManagedAgentsCredential\) RawJSON\(\) string](<#ManagedAgentsCredential.RawJSON>) + - [func \(r \*ManagedAgentsCredential\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredential.UnmarshalJSON>) +- [type ManagedAgentsCredentialAuthUnion](<#ManagedAgentsCredentialAuthUnion>) + - [func \(u ManagedAgentsCredentialAuthUnion\) AsAny\(\) anyManagedAgentsCredentialAuth](<#ManagedAgentsCredentialAuthUnion.AsAny>) + - [func \(u ManagedAgentsCredentialAuthUnion\) AsEnvironmentVariable\(\) \(v ManagedAgentsEnvironmentVariableAuthResponse\)](<#ManagedAgentsCredentialAuthUnion.AsEnvironmentVariable>) + - [func \(u ManagedAgentsCredentialAuthUnion\) AsMCPOAuth\(\) \(v ManagedAgentsMCPOAuthAuthResponse\)](<#ManagedAgentsCredentialAuthUnion.AsMCPOAuth>) + - [func \(u ManagedAgentsCredentialAuthUnion\) AsStaticBearer\(\) \(v ManagedAgentsStaticBearerAuthResponse\)](<#ManagedAgentsCredentialAuthUnion.AsStaticBearer>) + - [func \(u ManagedAgentsCredentialAuthUnion\) RawJSON\(\) string](<#ManagedAgentsCredentialAuthUnion.RawJSON>) + - [func \(r \*ManagedAgentsCredentialAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredentialAuthUnion.UnmarshalJSON>) +- [type ManagedAgentsCredentialHostUnreachableError](<#ManagedAgentsCredentialHostUnreachableError>) + - [func \(r ManagedAgentsCredentialHostUnreachableError\) RawJSON\(\) string](<#ManagedAgentsCredentialHostUnreachableError.RawJSON>) + - [func \(r \*ManagedAgentsCredentialHostUnreachableError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredentialHostUnreachableError.UnmarshalJSON>) +- [type ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion>) + - [func \(u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsCredentialHostUnreachableErrorRetryStatus](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsCredentialHostUnreachableErrorType](<#ManagedAgentsCredentialHostUnreachableErrorType>) +- [type ManagedAgentsCredentialNetworkingParamsUnion](<#ManagedAgentsCredentialNetworkingParamsUnion>) + - [func ManagedAgentsCredentialNetworkingParamsOfLimited\(allowedHosts \[\]string\) ManagedAgentsCredentialNetworkingParamsUnion](<#ManagedAgentsCredentialNetworkingParamsOfLimited>) + - [func ManagedAgentsCredentialNetworkingParamsOfUnrestricted\(type\_ ManagedAgentsUnrestrictedCredentialNetworkingParamsType\) ManagedAgentsCredentialNetworkingParamsUnion](<#ManagedAgentsCredentialNetworkingParamsOfUnrestricted>) + - [func \(u ManagedAgentsCredentialNetworkingParamsUnion\) GetAllowedHosts\(\) \[\]string](<#ManagedAgentsCredentialNetworkingParamsUnion.GetAllowedHosts>) + - [func \(u ManagedAgentsCredentialNetworkingParamsUnion\) GetType\(\) \*string](<#ManagedAgentsCredentialNetworkingParamsUnion.GetType>) + - [func \(u ManagedAgentsCredentialNetworkingParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsCredentialNetworkingParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsCredentialNetworkingParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredentialNetworkingParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsCredentialType](<#ManagedAgentsCredentialType>) +- [type ManagedAgentsCredentialValidation](<#ManagedAgentsCredentialValidation>) + - [func \(r ManagedAgentsCredentialValidation\) RawJSON\(\) string](<#ManagedAgentsCredentialValidation.RawJSON>) + - [func \(r \*ManagedAgentsCredentialValidation\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCredentialValidation.UnmarshalJSON>) +- [type ManagedAgentsCredentialValidationStatus](<#ManagedAgentsCredentialValidationStatus>) +- [type ManagedAgentsCredentialValidationType](<#ManagedAgentsCredentialValidationType>) +- [type ManagedAgentsCustomSkill](<#ManagedAgentsCustomSkill>) + - [func \(r ManagedAgentsCustomSkill\) RawJSON\(\) string](<#ManagedAgentsCustomSkill.RawJSON>) + - [func \(r \*ManagedAgentsCustomSkill\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomSkill.UnmarshalJSON>) +- [type ManagedAgentsCustomSkillParams](<#ManagedAgentsCustomSkillParams>) + - [func \(r ManagedAgentsCustomSkillParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsCustomSkillParams.MarshalJSON>) + - [func \(r \*ManagedAgentsCustomSkillParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomSkillParams.UnmarshalJSON>) +- [type ManagedAgentsCustomSkillParamsType](<#ManagedAgentsCustomSkillParamsType>) +- [type ManagedAgentsCustomSkillType](<#ManagedAgentsCustomSkillType>) +- [type ManagedAgentsCustomTool](<#ManagedAgentsCustomTool>) + - [func \(r ManagedAgentsCustomTool\) RawJSON\(\) string](<#ManagedAgentsCustomTool.RawJSON>) + - [func \(r \*ManagedAgentsCustomTool\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomTool.UnmarshalJSON>) +- [type ManagedAgentsCustomToolInputSchema](<#ManagedAgentsCustomToolInputSchema>) + - [func \(r ManagedAgentsCustomToolInputSchema\) RawJSON\(\) string](<#ManagedAgentsCustomToolInputSchema.RawJSON>) + - [func \(r ManagedAgentsCustomToolInputSchema\) ToParam\(\) ManagedAgentsCustomToolInputSchemaParam](<#ManagedAgentsCustomToolInputSchema.ToParam>) + - [func \(r \*ManagedAgentsCustomToolInputSchema\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomToolInputSchema.UnmarshalJSON>) +- [type ManagedAgentsCustomToolInputSchemaParam](<#ManagedAgentsCustomToolInputSchemaParam>) + - [func \(r ManagedAgentsCustomToolInputSchemaParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsCustomToolInputSchemaParam.MarshalJSON>) + - [func \(r \*ManagedAgentsCustomToolInputSchemaParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomToolInputSchemaParam.UnmarshalJSON>) +- [type ManagedAgentsCustomToolParams](<#ManagedAgentsCustomToolParams>) + - [func \(r ManagedAgentsCustomToolParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsCustomToolParams.MarshalJSON>) + - [func \(r \*ManagedAgentsCustomToolParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsCustomToolParams.UnmarshalJSON>) +- [type ManagedAgentsCustomToolParamsType](<#ManagedAgentsCustomToolParamsType>) +- [type ManagedAgentsCustomToolType](<#ManagedAgentsCustomToolType>) +- [type ManagedAgentsDeleteSessionResource](<#ManagedAgentsDeleteSessionResource>) + - [func \(r ManagedAgentsDeleteSessionResource\) RawJSON\(\) string](<#ManagedAgentsDeleteSessionResource.RawJSON>) + - [func \(r \*ManagedAgentsDeleteSessionResource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeleteSessionResource.UnmarshalJSON>) +- [type ManagedAgentsDeleteSessionResourceType](<#ManagedAgentsDeleteSessionResourceType>) +- [type ManagedAgentsDeletedCredential](<#ManagedAgentsDeletedCredential>) + - [func \(r ManagedAgentsDeletedCredential\) RawJSON\(\) string](<#ManagedAgentsDeletedCredential.RawJSON>) + - [func \(r \*ManagedAgentsDeletedCredential\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeletedCredential.UnmarshalJSON>) +- [type ManagedAgentsDeletedCredentialType](<#ManagedAgentsDeletedCredentialType>) +- [type ManagedAgentsDeletedMemory](<#ManagedAgentsDeletedMemory>) + - [func \(r ManagedAgentsDeletedMemory\) RawJSON\(\) string](<#ManagedAgentsDeletedMemory.RawJSON>) + - [func \(r \*ManagedAgentsDeletedMemory\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeletedMemory.UnmarshalJSON>) +- [type ManagedAgentsDeletedMemoryStore](<#ManagedAgentsDeletedMemoryStore>) + - [func \(r ManagedAgentsDeletedMemoryStore\) RawJSON\(\) string](<#ManagedAgentsDeletedMemoryStore.RawJSON>) + - [func \(r \*ManagedAgentsDeletedMemoryStore\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeletedMemoryStore.UnmarshalJSON>) +- [type ManagedAgentsDeletedMemoryStoreType](<#ManagedAgentsDeletedMemoryStoreType>) +- [type ManagedAgentsDeletedMemoryType](<#ManagedAgentsDeletedMemoryType>) +- [type ManagedAgentsDeletedSession](<#ManagedAgentsDeletedSession>) + - [func \(r ManagedAgentsDeletedSession\) RawJSON\(\) string](<#ManagedAgentsDeletedSession.RawJSON>) + - [func \(r \*ManagedAgentsDeletedSession\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeletedSession.UnmarshalJSON>) +- [type ManagedAgentsDeletedSessionType](<#ManagedAgentsDeletedSessionType>) +- [type ManagedAgentsDeletedVault](<#ManagedAgentsDeletedVault>) + - [func \(r ManagedAgentsDeletedVault\) RawJSON\(\) string](<#ManagedAgentsDeletedVault.RawJSON>) + - [func \(r \*ManagedAgentsDeletedVault\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeletedVault.UnmarshalJSON>) +- [type ManagedAgentsDeletedVaultType](<#ManagedAgentsDeletedVaultType>) +- [type ManagedAgentsDeltaContent](<#ManagedAgentsDeltaContent>) + - [func \(r ManagedAgentsDeltaContent\) RawJSON\(\) string](<#ManagedAgentsDeltaContent.RawJSON>) + - [func \(r \*ManagedAgentsDeltaContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeltaContent.UnmarshalJSON>) +- [type ManagedAgentsDeltaContentType](<#ManagedAgentsDeltaContentType>) +- [type ManagedAgentsDeltaEvent](<#ManagedAgentsDeltaEvent>) + - [func \(r ManagedAgentsDeltaEvent\) RawJSON\(\) string](<#ManagedAgentsDeltaEvent.RawJSON>) + - [func \(r \*ManagedAgentsDeltaEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeltaEvent.UnmarshalJSON>) +- [type ManagedAgentsDeltaEventType](<#ManagedAgentsDeltaEventType>) +- [type ManagedAgentsDeltaType](<#ManagedAgentsDeltaType>) +- [type ManagedAgentsDeployment](<#ManagedAgentsDeployment>) + - [func \(r ManagedAgentsDeployment\) RawJSON\(\) string](<#ManagedAgentsDeployment.RawJSON>) + - [func \(r \*ManagedAgentsDeployment\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeployment.UnmarshalJSON>) +- [type ManagedAgentsDeploymentInitialEventParamsUnion](<#ManagedAgentsDeploymentInitialEventParamsUnion>) + - [func ManagedAgentsDeploymentInitialEventParamsOfSystemMessage\(content \[\]ManagedAgentsSystemContentBlockParam\) ManagedAgentsDeploymentInitialEventParamsUnion](<#ManagedAgentsDeploymentInitialEventParamsOfSystemMessage>) + - [func ManagedAgentsDeploymentInitialEventParamsOfUserDefineOutcome\[T ManagedAgentsFileRubricParams | ManagedAgentsTextRubricParams\]\(description string, rubric T, type\_ ManagedAgentsUserDefineOutcomeEventParamsType\) ManagedAgentsDeploymentInitialEventParamsUnion](<#ManagedAgentsDeploymentInitialEventParamsOfUserDefineOutcome>) + - [func ManagedAgentsDeploymentInitialEventParamsOfUserMessage\(content \[\]ManagedAgentsUserMessageEventParamsContentUnion\) ManagedAgentsDeploymentInitialEventParamsUnion](<#ManagedAgentsDeploymentInitialEventParamsOfUserMessage>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) GetContent\(\) \(res managedAgentsDeploymentInitialEventParamsUnionContent\)](<#ManagedAgentsDeploymentInitialEventParamsUnion.GetContent>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) GetDescription\(\) \*string](<#ManagedAgentsDeploymentInitialEventParamsUnion.GetDescription>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) GetMaxIterations\(\) \*int64](<#ManagedAgentsDeploymentInitialEventParamsUnion.GetMaxIterations>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) GetRubric\(\) \*ManagedAgentsUserDefineOutcomeEventParamsRubricUnion](<#ManagedAgentsDeploymentInitialEventParamsUnion.GetRubric>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) GetType\(\) \*string](<#ManagedAgentsDeploymentInitialEventParamsUnion.GetType>) + - [func \(u ManagedAgentsDeploymentInitialEventParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsDeploymentInitialEventParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsDeploymentInitialEventParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentInitialEventParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentInitialEventUnion](<#ManagedAgentsDeploymentInitialEventUnion>) + - [func \(u ManagedAgentsDeploymentInitialEventUnion\) AsAny\(\) anyManagedAgentsDeploymentInitialEvent](<#ManagedAgentsDeploymentInitialEventUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentInitialEventUnion\) AsSystemMessage\(\) \(v ManagedAgentsDeploymentSystemMessageEvent\)](<#ManagedAgentsDeploymentInitialEventUnion.AsSystemMessage>) + - [func \(u ManagedAgentsDeploymentInitialEventUnion\) AsUserDefineOutcome\(\) \(v ManagedAgentsDeploymentUserDefineOutcomeEvent\)](<#ManagedAgentsDeploymentInitialEventUnion.AsUserDefineOutcome>) + - [func \(u ManagedAgentsDeploymentInitialEventUnion\) AsUserMessage\(\) \(v ManagedAgentsDeploymentUserMessageEvent\)](<#ManagedAgentsDeploymentInitialEventUnion.AsUserMessage>) + - [func \(u ManagedAgentsDeploymentInitialEventUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentInitialEventUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentInitialEventUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentInitialEventUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentInitialEventUnionContent](<#ManagedAgentsDeploymentInitialEventUnionContent>) + - [func \(r \*ManagedAgentsDeploymentInitialEventUnionContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentInitialEventUnionContent.UnmarshalJSON>) +- [type ManagedAgentsDeploymentPausedReasonErrorUnion](<#ManagedAgentsDeploymentPausedReasonErrorUnion>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsAgentArchivedError\(\) \(v ManagedAgentsAgentArchivedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsAgentArchivedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsAny\(\) anyManagedAgentsDeploymentPausedReasonError](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsEnvironmentArchivedError\(\) \(v ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsEnvironmentArchivedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsEnvironmentNotFoundError\(\) \(v ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsEnvironmentNotFoundError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsFileNotFoundError\(\) \(v ManagedAgentsFileNotFoundDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsFileNotFoundError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsMCPEgressBlockedError\(\) \(v ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsMCPEgressBlockedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsMemoryStoreArchivedError\(\) \(v ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsMemoryStoreArchivedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsOrganizationDisabledError\(\) \(v ManagedAgentsOrganizationDisabledDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsOrganizationDisabledError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsSelfHostedResourcesUnsupportedError\(\) \(v ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsSelfHostedResourcesUnsupportedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsSessionResourceNotFoundError\(\) \(v ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsSessionResourceNotFoundError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsSkillNotFoundError\(\) \(v ManagedAgentsSkillNotFoundDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsSkillNotFoundError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsUnknownError\(\) \(v ManagedAgentsUnknownDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsUnknownError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsVaultArchivedError\(\) \(v ManagedAgentsVaultArchivedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsVaultArchivedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsVaultNotFoundError\(\) \(v ManagedAgentsVaultNotFoundDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsVaultNotFoundError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) AsWorkspaceArchivedError\(\) \(v ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError\)](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsWorkspaceArchivedError>) + - [func \(u ManagedAgentsDeploymentPausedReasonErrorUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentPausedReasonErrorUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentPausedReasonErrorUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentPausedReasonErrorUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentPausedReasonUnion](<#ManagedAgentsDeploymentPausedReasonUnion>) + - [func \(u ManagedAgentsDeploymentPausedReasonUnion\) AsAny\(\) anyManagedAgentsDeploymentPausedReason](<#ManagedAgentsDeploymentPausedReasonUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentPausedReasonUnion\) AsError\(\) \(v ManagedAgentsErrorDeploymentPausedReason\)](<#ManagedAgentsDeploymentPausedReasonUnion.AsError>) + - [func \(u ManagedAgentsDeploymentPausedReasonUnion\) AsManual\(\) \(v ManagedAgentsManualDeploymentPausedReason\)](<#ManagedAgentsDeploymentPausedReasonUnion.AsManual>) + - [func \(u ManagedAgentsDeploymentPausedReasonUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentPausedReasonUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentPausedReasonUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentPausedReasonUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentRun](<#ManagedAgentsDeploymentRun>) + - [func \(r ManagedAgentsDeploymentRun\) RawJSON\(\) string](<#ManagedAgentsDeploymentRun.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentRun\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentRun.UnmarshalJSON>) +- [type ManagedAgentsDeploymentRunErrorUnion](<#ManagedAgentsDeploymentRunErrorUnion>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsAgentArchivedError\(\) \(v ManagedAgentsAgentArchivedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsAgentArchivedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsAny\(\) anyManagedAgentsDeploymentRunError](<#ManagedAgentsDeploymentRunErrorUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsEnvironmentArchivedError\(\) \(v ManagedAgentsEnvironmentArchivedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsEnvironmentArchivedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsEnvironmentNotFoundError\(\) \(v ManagedAgentsEnvironmentNotFoundRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsEnvironmentNotFoundError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsFileNotFoundError\(\) \(v ManagedAgentsFileNotFoundRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsFileNotFoundError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsMCPEgressBlockedError\(\) \(v ManagedAgentsMCPEgressBlockedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsMCPEgressBlockedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsMemoryStoreArchivedError\(\) \(v ManagedAgentsMemoryStoreArchivedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsMemoryStoreArchivedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsOrganizationDisabledError\(\) \(v ManagedAgentsOrganizationDisabledRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsOrganizationDisabledError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsSelfHostedResourcesUnsupportedError\(\) \(v ManagedAgentsSelfHostedResourcesUnsupportedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsSelfHostedResourcesUnsupportedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsSessionCreationRejectedError\(\) \(v ManagedAgentsSessionCreationRejectedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsSessionCreationRejectedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsSessionRateLimitedError\(\) \(v ManagedAgentsSessionRateLimitedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsSessionRateLimitedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsSessionResourceNotFoundError\(\) \(v ManagedAgentsSessionResourceNotFoundRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsSessionResourceNotFoundError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsSkillNotFoundError\(\) \(v ManagedAgentsSkillNotFoundRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsSkillNotFoundError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsUnknownError\(\) \(v ManagedAgentsUnknownRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsUnknownError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsVaultArchivedError\(\) \(v ManagedAgentsVaultArchivedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsVaultArchivedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsVaultNotFoundError\(\) \(v ManagedAgentsVaultNotFoundRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsVaultNotFoundError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) AsWorkspaceArchivedError\(\) \(v ManagedAgentsWorkspaceArchivedRunError\)](<#ManagedAgentsDeploymentRunErrorUnion.AsWorkspaceArchivedError>) + - [func \(u ManagedAgentsDeploymentRunErrorUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentRunErrorUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentRunErrorUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentRunErrorUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentRunType](<#ManagedAgentsDeploymentRunType>) +- [type ManagedAgentsDeploymentStatus](<#ManagedAgentsDeploymentStatus>) +- [type ManagedAgentsDeploymentSystemMessageEvent](<#ManagedAgentsDeploymentSystemMessageEvent>) + - [func \(r ManagedAgentsDeploymentSystemMessageEvent\) RawJSON\(\) string](<#ManagedAgentsDeploymentSystemMessageEvent.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentSystemMessageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentSystemMessageEvent.UnmarshalJSON>) +- [type ManagedAgentsDeploymentSystemMessageEventType](<#ManagedAgentsDeploymentSystemMessageEventType>) +- [type ManagedAgentsDeploymentType](<#ManagedAgentsDeploymentType>) +- [type ManagedAgentsDeploymentUserDefineOutcomeEvent](<#ManagedAgentsDeploymentUserDefineOutcomeEvent>) + - [func \(r ManagedAgentsDeploymentUserDefineOutcomeEvent\) RawJSON\(\) string](<#ManagedAgentsDeploymentUserDefineOutcomeEvent.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentUserDefineOutcomeEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentUserDefineOutcomeEvent.UnmarshalJSON>) +- [type ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion>) + - [func \(u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) AsAny\(\) anyManagedAgentsDeploymentUserDefineOutcomeEventRubric](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) AsFile\(\) \(v ManagedAgentsFileRubric\)](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsFile>) + - [func \(u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) AsText\(\) \(v ManagedAgentsTextRubric\)](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsText>) + - [func \(u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentUserDefineOutcomeEventType](<#ManagedAgentsDeploymentUserDefineOutcomeEventType>) +- [type ManagedAgentsDeploymentUserMessageEvent](<#ManagedAgentsDeploymentUserMessageEvent>) + - [func \(r ManagedAgentsDeploymentUserMessageEvent\) RawJSON\(\) string](<#ManagedAgentsDeploymentUserMessageEvent.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentUserMessageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentUserMessageEvent.UnmarshalJSON>) +- [type ManagedAgentsDeploymentUserMessageEventContentUnion](<#ManagedAgentsDeploymentUserMessageEventContentUnion>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) AsAny\(\) anyManagedAgentsDeploymentUserMessageEventContent](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsAny>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsImage>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) AsRedacted\(\) \(v ManagedAgentsRedactedBlock\)](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsRedacted>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsText>) + - [func \(u ManagedAgentsDeploymentUserMessageEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsDeploymentUserMessageEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsDeploymentUserMessageEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentUserMessageEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsDeploymentUserMessageEventContentUnionSource](<#ManagedAgentsDeploymentUserMessageEventContentUnionSource>) + - [func \(r \*ManagedAgentsDeploymentUserMessageEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDeploymentUserMessageEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsDeploymentUserMessageEventType](<#ManagedAgentsDeploymentUserMessageEventType>) +- [type ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>) + - [func \(r ManagedAgentsDocumentBlock\) RawJSON\(\) string](<#ManagedAgentsDocumentBlock.RawJSON>) + - [func \(r ManagedAgentsDocumentBlock\) ToParam\(\) ManagedAgentsDocumentBlockParam](<#ManagedAgentsDocumentBlock.ToParam>) + - [func \(r \*ManagedAgentsDocumentBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDocumentBlock.UnmarshalJSON>) +- [type ManagedAgentsDocumentBlockParam](<#ManagedAgentsDocumentBlockParam>) + - [func \(r ManagedAgentsDocumentBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsDocumentBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsDocumentBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDocumentBlockParam.UnmarshalJSON>) +- [type ManagedAgentsDocumentBlockSourceUnion](<#ManagedAgentsDocumentBlockSourceUnion>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) AsAny\(\) anyManagedAgentsDocumentBlockSource](<#ManagedAgentsDocumentBlockSourceUnion.AsAny>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) AsBase64\(\) \(v ManagedAgentsBase64DocumentSource\)](<#ManagedAgentsDocumentBlockSourceUnion.AsBase64>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) AsFile\(\) \(v ManagedAgentsFileDocumentSource\)](<#ManagedAgentsDocumentBlockSourceUnion.AsFile>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) AsText\(\) \(v ManagedAgentsPlainTextDocumentSource\)](<#ManagedAgentsDocumentBlockSourceUnion.AsText>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) AsURL\(\) \(v ManagedAgentsURLDocumentSource\)](<#ManagedAgentsDocumentBlockSourceUnion.AsURL>) + - [func \(u ManagedAgentsDocumentBlockSourceUnion\) RawJSON\(\) string](<#ManagedAgentsDocumentBlockSourceUnion.RawJSON>) + - [func \(r \*ManagedAgentsDocumentBlockSourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDocumentBlockSourceUnion.UnmarshalJSON>) +- [type ManagedAgentsDocumentBlockSourceUnionParam](<#ManagedAgentsDocumentBlockSourceUnionParam>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) GetData\(\) \*string](<#ManagedAgentsDocumentBlockSourceUnionParam.GetData>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) GetFileID\(\) \*string](<#ManagedAgentsDocumentBlockSourceUnionParam.GetFileID>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) GetMediaType\(\) \*string](<#ManagedAgentsDocumentBlockSourceUnionParam.GetMediaType>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) GetType\(\) \*string](<#ManagedAgentsDocumentBlockSourceUnionParam.GetType>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) GetURL\(\) \*string](<#ManagedAgentsDocumentBlockSourceUnionParam.GetURL>) + - [func \(u ManagedAgentsDocumentBlockSourceUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsDocumentBlockSourceUnionParam.MarshalJSON>) + - [func \(u \*ManagedAgentsDocumentBlockSourceUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsDocumentBlockSourceUnionParam.UnmarshalJSON>) +- [type ManagedAgentsDocumentBlockType](<#ManagedAgentsDocumentBlockType>) +- [type ManagedAgentsEditToolConfig](<#ManagedAgentsEditToolConfig>) + - [func \(r ManagedAgentsEditToolConfig\) RawJSON\(\) string](<#ManagedAgentsEditToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsEditToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEditToolConfig.UnmarshalJSON>) +- [type ManagedAgentsEditToolConfigParams](<#ManagedAgentsEditToolConfigParams>) + - [func \(r ManagedAgentsEditToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEditToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsEditToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEditToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsEditToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsEditToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsEditToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsEditToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEditToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsEditToolConfigParamsType](<#ManagedAgentsEditToolConfigParamsType>) +- [type ManagedAgentsEditToolConfigPermissionPolicyUnion](<#ManagedAgentsEditToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsEditToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsEditToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsEditToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsEditToolConfigPermissionPolicy](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsEditToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsEditToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsEffortHigh](<#ManagedAgentsEffortHigh>) + - [func \(r ManagedAgentsEffortHigh\) RawJSON\(\) string](<#ManagedAgentsEffortHigh.RawJSON>) + - [func \(r ManagedAgentsEffortHigh\) ToParam\(\) ManagedAgentsEffortHighParam](<#ManagedAgentsEffortHigh.ToParam>) + - [func \(r \*ManagedAgentsEffortHigh\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortHigh.UnmarshalJSON>) +- [type ManagedAgentsEffortHighParam](<#ManagedAgentsEffortHighParam>) + - [func \(r ManagedAgentsEffortHighParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEffortHighParam.MarshalJSON>) + - [func \(r \*ManagedAgentsEffortHighParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortHighParam.UnmarshalJSON>) +- [type ManagedAgentsEffortHighType](<#ManagedAgentsEffortHighType>) +- [type ManagedAgentsEffortLow](<#ManagedAgentsEffortLow>) + - [func \(r ManagedAgentsEffortLow\) RawJSON\(\) string](<#ManagedAgentsEffortLow.RawJSON>) + - [func \(r ManagedAgentsEffortLow\) ToParam\(\) ManagedAgentsEffortLowParam](<#ManagedAgentsEffortLow.ToParam>) + - [func \(r \*ManagedAgentsEffortLow\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortLow.UnmarshalJSON>) +- [type ManagedAgentsEffortLowParam](<#ManagedAgentsEffortLowParam>) + - [func \(r ManagedAgentsEffortLowParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEffortLowParam.MarshalJSON>) + - [func \(r \*ManagedAgentsEffortLowParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortLowParam.UnmarshalJSON>) +- [type ManagedAgentsEffortLowType](<#ManagedAgentsEffortLowType>) +- [type ManagedAgentsEffortMax](<#ManagedAgentsEffortMax>) + - [func \(r ManagedAgentsEffortMax\) RawJSON\(\) string](<#ManagedAgentsEffortMax.RawJSON>) + - [func \(r ManagedAgentsEffortMax\) ToParam\(\) ManagedAgentsEffortMaxParam](<#ManagedAgentsEffortMax.ToParam>) + - [func \(r \*ManagedAgentsEffortMax\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortMax.UnmarshalJSON>) +- [type ManagedAgentsEffortMaxParam](<#ManagedAgentsEffortMaxParam>) + - [func \(r ManagedAgentsEffortMaxParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEffortMaxParam.MarshalJSON>) + - [func \(r \*ManagedAgentsEffortMaxParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortMaxParam.UnmarshalJSON>) +- [type ManagedAgentsEffortMaxType](<#ManagedAgentsEffortMaxType>) +- [type ManagedAgentsEffortMedium](<#ManagedAgentsEffortMedium>) + - [func \(r ManagedAgentsEffortMedium\) RawJSON\(\) string](<#ManagedAgentsEffortMedium.RawJSON>) + - [func \(r ManagedAgentsEffortMedium\) ToParam\(\) ManagedAgentsEffortMediumParam](<#ManagedAgentsEffortMedium.ToParam>) + - [func \(r \*ManagedAgentsEffortMedium\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortMedium.UnmarshalJSON>) +- [type ManagedAgentsEffortMediumParam](<#ManagedAgentsEffortMediumParam>) + - [func \(r ManagedAgentsEffortMediumParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEffortMediumParam.MarshalJSON>) + - [func \(r \*ManagedAgentsEffortMediumParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortMediumParam.UnmarshalJSON>) +- [type ManagedAgentsEffortMediumType](<#ManagedAgentsEffortMediumType>) +- [type ManagedAgentsEffortXhigh](<#ManagedAgentsEffortXhigh>) + - [func \(r ManagedAgentsEffortXhigh\) RawJSON\(\) string](<#ManagedAgentsEffortXhigh.RawJSON>) + - [func \(r ManagedAgentsEffortXhigh\) ToParam\(\) ManagedAgentsEffortXhighParam](<#ManagedAgentsEffortXhigh.ToParam>) + - [func \(r \*ManagedAgentsEffortXhigh\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortXhigh.UnmarshalJSON>) +- [type ManagedAgentsEffortXhighParam](<#ManagedAgentsEffortXhighParam>) + - [func \(r ManagedAgentsEffortXhighParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEffortXhighParam.MarshalJSON>) + - [func \(r \*ManagedAgentsEffortXhighParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEffortXhighParam.UnmarshalJSON>) +- [type ManagedAgentsEffortXhighType](<#ManagedAgentsEffortXhighType>) +- [type ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError](<#ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType](<#ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsEnvironmentArchivedRunError](<#ManagedAgentsEnvironmentArchivedRunError>) + - [func \(r ManagedAgentsEnvironmentArchivedRunError\) RawJSON\(\) string](<#ManagedAgentsEnvironmentArchivedRunError.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentArchivedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentArchivedRunError.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentArchivedRunErrorType](<#ManagedAgentsEnvironmentArchivedRunErrorType>) +- [type ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError](<#ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError>) + - [func \(r ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType](<#ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType>) +- [type ManagedAgentsEnvironmentNotFoundRunError](<#ManagedAgentsEnvironmentNotFoundRunError>) + - [func \(r ManagedAgentsEnvironmentNotFoundRunError\) RawJSON\(\) string](<#ManagedAgentsEnvironmentNotFoundRunError.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentNotFoundRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentNotFoundRunError.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentNotFoundRunErrorType](<#ManagedAgentsEnvironmentNotFoundRunErrorType>) +- [type ManagedAgentsEnvironmentVariableAuthResponse](<#ManagedAgentsEnvironmentVariableAuthResponse>) + - [func \(r ManagedAgentsEnvironmentVariableAuthResponse\) RawJSON\(\) string](<#ManagedAgentsEnvironmentVariableAuthResponse.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentVariableAuthResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentVariableAuthResponse.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion>) + - [func \(u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) AsAny\(\) anyManagedAgentsEnvironmentVariableAuthResponseNetworking](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsAny>) + - [func \(u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) AsLimited\(\) \(v ManagedAgentsLimitedCredentialNetworkingResponse\)](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsLimited>) + - [func \(u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) AsUnrestricted\(\) \(v ManagedAgentsUnrestrictedCredentialNetworkingResponse\)](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsUnrestricted>) + - [func \(u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) RawJSON\(\) string](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.RawJSON>) + - [func \(r \*ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentVariableAuthResponseType](<#ManagedAgentsEnvironmentVariableAuthResponseType>) +- [type ManagedAgentsEnvironmentVariableCreateParams](<#ManagedAgentsEnvironmentVariableCreateParams>) + - [func \(r ManagedAgentsEnvironmentVariableCreateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEnvironmentVariableCreateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsEnvironmentVariableCreateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentVariableCreateParams.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentVariableCreateParamsType](<#ManagedAgentsEnvironmentVariableCreateParamsType>) +- [type ManagedAgentsEnvironmentVariableUpdateParams](<#ManagedAgentsEnvironmentVariableUpdateParams>) + - [func \(r ManagedAgentsEnvironmentVariableUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsEnvironmentVariableUpdateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsEnvironmentVariableUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEnvironmentVariableUpdateParams.UnmarshalJSON>) +- [type ManagedAgentsEnvironmentVariableUpdateParamsType](<#ManagedAgentsEnvironmentVariableUpdateParamsType>) +- [type ManagedAgentsErrorDeploymentPausedReason](<#ManagedAgentsErrorDeploymentPausedReason>) + - [func \(r ManagedAgentsErrorDeploymentPausedReason\) RawJSON\(\) string](<#ManagedAgentsErrorDeploymentPausedReason.RawJSON>) + - [func \(r \*ManagedAgentsErrorDeploymentPausedReason\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsErrorDeploymentPausedReason.UnmarshalJSON>) +- [type ManagedAgentsErrorDeploymentPausedReasonType](<#ManagedAgentsErrorDeploymentPausedReasonType>) +- [type ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsUnion>) + - [func ManagedAgentsEventParamsOfSystemMessage\(content \[\]ManagedAgentsSystemContentBlockParam\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfSystemMessage>) + - [func ManagedAgentsEventParamsOfUserCustomToolResult\(customToolUseID string\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserCustomToolResult>) + - [func ManagedAgentsEventParamsOfUserDefineOutcome\[T ManagedAgentsFileRubricParams | ManagedAgentsTextRubricParams\]\(description string, rubric T, type\_ ManagedAgentsUserDefineOutcomeEventParamsType\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserDefineOutcome>) + - [func ManagedAgentsEventParamsOfUserInterrupt\(type\_ ManagedAgentsUserInterruptEventParamsType\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserInterrupt>) + - [func ManagedAgentsEventParamsOfUserMessage\(content \[\]ManagedAgentsUserMessageEventParamsContentUnion\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserMessage>) + - [func ManagedAgentsEventParamsOfUserToolConfirmation\(result ManagedAgentsUserToolConfirmationEventParamsResult, toolUseID string, type\_ ManagedAgentsUserToolConfirmationEventParamsType\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserToolConfirmation>) + - [func ManagedAgentsEventParamsOfUserToolResult\(toolUseID string\) ManagedAgentsEventParamsUnion](<#ManagedAgentsEventParamsOfUserToolResult>) + - [func \(u ManagedAgentsEventParamsUnion\) GetContent\(\) \(res managedAgentsEventParamsUnionContent\)](<#ManagedAgentsEventParamsUnion.GetContent>) + - [func \(u ManagedAgentsEventParamsUnion\) GetCustomToolUseID\(\) \*string](<#ManagedAgentsEventParamsUnion.GetCustomToolUseID>) + - [func \(u ManagedAgentsEventParamsUnion\) GetDenyMessage\(\) \*string](<#ManagedAgentsEventParamsUnion.GetDenyMessage>) + - [func \(u ManagedAgentsEventParamsUnion\) GetDescription\(\) \*string](<#ManagedAgentsEventParamsUnion.GetDescription>) + - [func \(u ManagedAgentsEventParamsUnion\) GetIsError\(\) \*bool](<#ManagedAgentsEventParamsUnion.GetIsError>) + - [func \(u ManagedAgentsEventParamsUnion\) GetMaxIterations\(\) \*int64](<#ManagedAgentsEventParamsUnion.GetMaxIterations>) + - [func \(u ManagedAgentsEventParamsUnion\) GetResult\(\) \*string](<#ManagedAgentsEventParamsUnion.GetResult>) + - [func \(u ManagedAgentsEventParamsUnion\) GetRubric\(\) \*ManagedAgentsUserDefineOutcomeEventParamsRubricUnion](<#ManagedAgentsEventParamsUnion.GetRubric>) + - [func \(u ManagedAgentsEventParamsUnion\) GetSessionThreadID\(\) \*string](<#ManagedAgentsEventParamsUnion.GetSessionThreadID>) + - [func \(u ManagedAgentsEventParamsUnion\) GetToolUseID\(\) \*string](<#ManagedAgentsEventParamsUnion.GetToolUseID>) + - [func \(u ManagedAgentsEventParamsUnion\) GetType\(\) \*string](<#ManagedAgentsEventParamsUnion.GetType>) + - [func \(u ManagedAgentsEventParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsEventParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsEventParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsEventParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsFileDocumentSource](<#ManagedAgentsFileDocumentSource>) + - [func \(r ManagedAgentsFileDocumentSource\) RawJSON\(\) string](<#ManagedAgentsFileDocumentSource.RawJSON>) + - [func \(r ManagedAgentsFileDocumentSource\) ToParam\(\) ManagedAgentsFileDocumentSourceParam](<#ManagedAgentsFileDocumentSource.ToParam>) + - [func \(r \*ManagedAgentsFileDocumentSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileDocumentSource.UnmarshalJSON>) +- [type ManagedAgentsFileDocumentSourceParam](<#ManagedAgentsFileDocumentSourceParam>) + - [func \(r ManagedAgentsFileDocumentSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsFileDocumentSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsFileDocumentSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileDocumentSourceParam.UnmarshalJSON>) +- [type ManagedAgentsFileDocumentSourceType](<#ManagedAgentsFileDocumentSourceType>) +- [type ManagedAgentsFileImageSource](<#ManagedAgentsFileImageSource>) + - [func \(r ManagedAgentsFileImageSource\) RawJSON\(\) string](<#ManagedAgentsFileImageSource.RawJSON>) + - [func \(r ManagedAgentsFileImageSource\) ToParam\(\) ManagedAgentsFileImageSourceParam](<#ManagedAgentsFileImageSource.ToParam>) + - [func \(r \*ManagedAgentsFileImageSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileImageSource.UnmarshalJSON>) +- [type ManagedAgentsFileImageSourceParam](<#ManagedAgentsFileImageSourceParam>) + - [func \(r ManagedAgentsFileImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsFileImageSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsFileImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileImageSourceParam.UnmarshalJSON>) +- [type ManagedAgentsFileImageSourceType](<#ManagedAgentsFileImageSourceType>) +- [type ManagedAgentsFileNotFoundDeploymentPausedReasonError](<#ManagedAgentsFileNotFoundDeploymentPausedReasonError>) + - [func \(r ManagedAgentsFileNotFoundDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsFileNotFoundDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsFileNotFoundDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileNotFoundDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType](<#ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType>) +- [type ManagedAgentsFileNotFoundRunError](<#ManagedAgentsFileNotFoundRunError>) + - [func \(r ManagedAgentsFileNotFoundRunError\) RawJSON\(\) string](<#ManagedAgentsFileNotFoundRunError.RawJSON>) + - [func \(r \*ManagedAgentsFileNotFoundRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileNotFoundRunError.UnmarshalJSON>) +- [type ManagedAgentsFileNotFoundRunErrorType](<#ManagedAgentsFileNotFoundRunErrorType>) +- [type ManagedAgentsFileResource](<#ManagedAgentsFileResource>) + - [func \(r ManagedAgentsFileResource\) RawJSON\(\) string](<#ManagedAgentsFileResource.RawJSON>) + - [func \(r \*ManagedAgentsFileResource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileResource.UnmarshalJSON>) +- [type ManagedAgentsFileResourceConfig](<#ManagedAgentsFileResourceConfig>) + - [func \(r ManagedAgentsFileResourceConfig\) RawJSON\(\) string](<#ManagedAgentsFileResourceConfig.RawJSON>) + - [func \(r \*ManagedAgentsFileResourceConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileResourceConfig.UnmarshalJSON>) +- [type ManagedAgentsFileResourceConfigType](<#ManagedAgentsFileResourceConfigType>) +- [type ManagedAgentsFileResourceParams](<#ManagedAgentsFileResourceParams>) + - [func \(r ManagedAgentsFileResourceParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsFileResourceParams.MarshalJSON>) + - [func \(r \*ManagedAgentsFileResourceParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileResourceParams.UnmarshalJSON>) +- [type ManagedAgentsFileResourceParamsType](<#ManagedAgentsFileResourceParamsType>) +- [type ManagedAgentsFileResourceType](<#ManagedAgentsFileResourceType>) +- [type ManagedAgentsFileRubric](<#ManagedAgentsFileRubric>) + - [func \(r ManagedAgentsFileRubric\) RawJSON\(\) string](<#ManagedAgentsFileRubric.RawJSON>) + - [func \(r \*ManagedAgentsFileRubric\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileRubric.UnmarshalJSON>) +- [type ManagedAgentsFileRubricParams](<#ManagedAgentsFileRubricParams>) + - [func \(r ManagedAgentsFileRubricParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsFileRubricParams.MarshalJSON>) + - [func \(r \*ManagedAgentsFileRubricParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsFileRubricParams.UnmarshalJSON>) +- [type ManagedAgentsFileRubricParamsType](<#ManagedAgentsFileRubricParamsType>) +- [type ManagedAgentsFileRubricType](<#ManagedAgentsFileRubricType>) +- [type ManagedAgentsGitHubRepositoryResource](<#ManagedAgentsGitHubRepositoryResource>) + - [func \(r ManagedAgentsGitHubRepositoryResource\) RawJSON\(\) string](<#ManagedAgentsGitHubRepositoryResource.RawJSON>) + - [func \(r \*ManagedAgentsGitHubRepositoryResource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResource.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceCheckoutUnion](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion>) + - [func \(u ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) AsAny\(\) anyManagedAgentsGitHubRepositoryResourceCheckout](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsAny>) + - [func \(u ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) AsBranch\(\) \(v ManagedAgentsBranchCheckout\)](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsBranch>) + - [func \(u ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) AsCommit\(\) \(v ManagedAgentsCommitCheckout\)](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsCommit>) + - [func \(u ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) RawJSON\(\) string](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.RawJSON>) + - [func \(r \*ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceConfig](<#ManagedAgentsGitHubRepositoryResourceConfig>) + - [func \(r ManagedAgentsGitHubRepositoryResourceConfig\) RawJSON\(\) string](<#ManagedAgentsGitHubRepositoryResourceConfig.RawJSON>) + - [func \(r \*ManagedAgentsGitHubRepositoryResourceConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResourceConfig.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion>) + - [func \(u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) AsAny\(\) anyManagedAgentsGitHubRepositoryResourceConfigCheckout](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsAny>) + - [func \(u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) AsBranch\(\) \(v ManagedAgentsBranchCheckout\)](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsBranch>) + - [func \(u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) AsCommit\(\) \(v ManagedAgentsCommitCheckout\)](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsCommit>) + - [func \(u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) RawJSON\(\) string](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.RawJSON>) + - [func \(r \*ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceConfigType](<#ManagedAgentsGitHubRepositoryResourceConfigType>) +- [type ManagedAgentsGitHubRepositoryResourceParams](<#ManagedAgentsGitHubRepositoryResourceParams>) + - [func \(r ManagedAgentsGitHubRepositoryResourceParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsGitHubRepositoryResourceParams.MarshalJSON>) + - [func \(r \*ManagedAgentsGitHubRepositoryResourceParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResourceParams.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion>) + - [func \(u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) GetName\(\) \*string](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion.GetName>) + - [func \(u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) GetSha\(\) \*string](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion.GetSha>) + - [func \(u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) GetType\(\) \*string](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion.GetType>) + - [func \(u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion.UnmarshalJSON>) +- [type ManagedAgentsGitHubRepositoryResourceParamsType](<#ManagedAgentsGitHubRepositoryResourceParamsType>) +- [type ManagedAgentsGitHubRepositoryResourceType](<#ManagedAgentsGitHubRepositoryResourceType>) +- [type ManagedAgentsGlobToolConfig](<#ManagedAgentsGlobToolConfig>) + - [func \(r ManagedAgentsGlobToolConfig\) RawJSON\(\) string](<#ManagedAgentsGlobToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsGlobToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGlobToolConfig.UnmarshalJSON>) +- [type ManagedAgentsGlobToolConfigParams](<#ManagedAgentsGlobToolConfigParams>) + - [func \(r ManagedAgentsGlobToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsGlobToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsGlobToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGlobToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsGlobToolConfigParamsType](<#ManagedAgentsGlobToolConfigParamsType>) +- [type ManagedAgentsGlobToolConfigPermissionPolicyUnion](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsGlobToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsGlobToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsGlobToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsGlobToolConfigPermissionPolicy](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsGlobToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsGlobToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsGrepToolConfig](<#ManagedAgentsGrepToolConfig>) + - [func \(r ManagedAgentsGrepToolConfig\) RawJSON\(\) string](<#ManagedAgentsGrepToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsGrepToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGrepToolConfig.UnmarshalJSON>) +- [type ManagedAgentsGrepToolConfigParams](<#ManagedAgentsGrepToolConfigParams>) + - [func \(r ManagedAgentsGrepToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsGrepToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsGrepToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGrepToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsGrepToolConfigParamsType](<#ManagedAgentsGrepToolConfigParamsType>) +- [type ManagedAgentsGrepToolConfigPermissionPolicyUnion](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsGrepToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsGrepToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsGrepToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsGrepToolConfigPermissionPolicy](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsGrepToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsGrepToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>) + - [func \(r ManagedAgentsImageBlock\) RawJSON\(\) string](<#ManagedAgentsImageBlock.RawJSON>) + - [func \(r ManagedAgentsImageBlock\) ToParam\(\) ManagedAgentsImageBlockParam](<#ManagedAgentsImageBlock.ToParam>) + - [func \(r \*ManagedAgentsImageBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsImageBlock.UnmarshalJSON>) +- [type ManagedAgentsImageBlockParam](<#ManagedAgentsImageBlockParam>) + - [func \(r ManagedAgentsImageBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsImageBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsImageBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsImageBlockParam.UnmarshalJSON>) +- [type ManagedAgentsImageBlockSourceUnion](<#ManagedAgentsImageBlockSourceUnion>) + - [func \(u ManagedAgentsImageBlockSourceUnion\) AsAny\(\) anyManagedAgentsImageBlockSource](<#ManagedAgentsImageBlockSourceUnion.AsAny>) + - [func \(u ManagedAgentsImageBlockSourceUnion\) AsBase64\(\) \(v ManagedAgentsBase64ImageSource\)](<#ManagedAgentsImageBlockSourceUnion.AsBase64>) + - [func \(u ManagedAgentsImageBlockSourceUnion\) AsFile\(\) \(v ManagedAgentsFileImageSource\)](<#ManagedAgentsImageBlockSourceUnion.AsFile>) + - [func \(u ManagedAgentsImageBlockSourceUnion\) AsURL\(\) \(v ManagedAgentsURLImageSource\)](<#ManagedAgentsImageBlockSourceUnion.AsURL>) + - [func \(u ManagedAgentsImageBlockSourceUnion\) RawJSON\(\) string](<#ManagedAgentsImageBlockSourceUnion.RawJSON>) + - [func \(r \*ManagedAgentsImageBlockSourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsImageBlockSourceUnion.UnmarshalJSON>) +- [type ManagedAgentsImageBlockSourceUnionParam](<#ManagedAgentsImageBlockSourceUnionParam>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) GetData\(\) \*string](<#ManagedAgentsImageBlockSourceUnionParam.GetData>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) GetFileID\(\) \*string](<#ManagedAgentsImageBlockSourceUnionParam.GetFileID>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) GetMediaType\(\) \*string](<#ManagedAgentsImageBlockSourceUnionParam.GetMediaType>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) GetType\(\) \*string](<#ManagedAgentsImageBlockSourceUnionParam.GetType>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) GetURL\(\) \*string](<#ManagedAgentsImageBlockSourceUnionParam.GetURL>) + - [func \(u ManagedAgentsImageBlockSourceUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsImageBlockSourceUnionParam.MarshalJSON>) + - [func \(u \*ManagedAgentsImageBlockSourceUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsImageBlockSourceUnionParam.UnmarshalJSON>) +- [type ManagedAgentsImageBlockType](<#ManagedAgentsImageBlockType>) +- [type ManagedAgentsInjectionLocationParams](<#ManagedAgentsInjectionLocationParams>) + - [func \(r ManagedAgentsInjectionLocationParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsInjectionLocationParams.MarshalJSON>) + - [func \(r \*ManagedAgentsInjectionLocationParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsInjectionLocationParams.UnmarshalJSON>) +- [type ManagedAgentsInjectionLocationResponse](<#ManagedAgentsInjectionLocationResponse>) + - [func \(r ManagedAgentsInjectionLocationResponse\) RawJSON\(\) string](<#ManagedAgentsInjectionLocationResponse.RawJSON>) + - [func \(r \*ManagedAgentsInjectionLocationResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsInjectionLocationResponse.UnmarshalJSON>) +- [type ManagedAgentsInjectionLocationUpdateParams](<#ManagedAgentsInjectionLocationUpdateParams>) + - [func \(r ManagedAgentsInjectionLocationUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsInjectionLocationUpdateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsInjectionLocationUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsInjectionLocationUpdateParams.UnmarshalJSON>) +- [type ManagedAgentsLimitedCredentialNetworkingParams](<#ManagedAgentsLimitedCredentialNetworkingParams>) + - [func \(r ManagedAgentsLimitedCredentialNetworkingParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsLimitedCredentialNetworkingParams.MarshalJSON>) + - [func \(r \*ManagedAgentsLimitedCredentialNetworkingParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsLimitedCredentialNetworkingParams.UnmarshalJSON>) +- [type ManagedAgentsLimitedCredentialNetworkingParamsType](<#ManagedAgentsLimitedCredentialNetworkingParamsType>) +- [type ManagedAgentsLimitedCredentialNetworkingResponse](<#ManagedAgentsLimitedCredentialNetworkingResponse>) + - [func \(r ManagedAgentsLimitedCredentialNetworkingResponse\) RawJSON\(\) string](<#ManagedAgentsLimitedCredentialNetworkingResponse.RawJSON>) + - [func \(r \*ManagedAgentsLimitedCredentialNetworkingResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsLimitedCredentialNetworkingResponse.UnmarshalJSON>) +- [type ManagedAgentsLimitedCredentialNetworkingResponseType](<#ManagedAgentsLimitedCredentialNetworkingResponseType>) +- [type ManagedAgentsMCPAuthenticationFailedError](<#ManagedAgentsMCPAuthenticationFailedError>) + - [func \(r ManagedAgentsMCPAuthenticationFailedError\) RawJSON\(\) string](<#ManagedAgentsMCPAuthenticationFailedError.RawJSON>) + - [func \(r \*ManagedAgentsMCPAuthenticationFailedError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPAuthenticationFailedError.UnmarshalJSON>) +- [type ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion>) + - [func \(u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsMCPAuthenticationFailedErrorRetryStatus](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPAuthenticationFailedErrorType](<#ManagedAgentsMCPAuthenticationFailedErrorType>) +- [type ManagedAgentsMCPConnectionFailedError](<#ManagedAgentsMCPConnectionFailedError>) + - [func \(r ManagedAgentsMCPConnectionFailedError\) RawJSON\(\) string](<#ManagedAgentsMCPConnectionFailedError.RawJSON>) + - [func \(r \*ManagedAgentsMCPConnectionFailedError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPConnectionFailedError.UnmarshalJSON>) +- [type ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion>) + - [func \(u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsMCPConnectionFailedErrorRetryStatus](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPConnectionFailedErrorType](<#ManagedAgentsMCPConnectionFailedErrorType>) +- [type ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError](<#ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType](<#ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsMCPEgressBlockedRunError](<#ManagedAgentsMCPEgressBlockedRunError>) + - [func \(r ManagedAgentsMCPEgressBlockedRunError\) RawJSON\(\) string](<#ManagedAgentsMCPEgressBlockedRunError.RawJSON>) + - [func \(r \*ManagedAgentsMCPEgressBlockedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPEgressBlockedRunError.UnmarshalJSON>) +- [type ManagedAgentsMCPEgressBlockedRunErrorType](<#ManagedAgentsMCPEgressBlockedRunErrorType>) +- [type ManagedAgentsMCPOAuthAuthResponse](<#ManagedAgentsMCPOAuthAuthResponse>) + - [func \(r ManagedAgentsMCPOAuthAuthResponse\) RawJSON\(\) string](<#ManagedAgentsMCPOAuthAuthResponse.RawJSON>) + - [func \(r \*ManagedAgentsMCPOAuthAuthResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthAuthResponse.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthAuthResponseType](<#ManagedAgentsMCPOAuthAuthResponseType>) +- [type ManagedAgentsMCPOAuthCreateParams](<#ManagedAgentsMCPOAuthCreateParams>) + - [func \(r ManagedAgentsMCPOAuthCreateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPOAuthCreateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPOAuthCreateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthCreateParams.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthCreateParamsType](<#ManagedAgentsMCPOAuthCreateParamsType>) +- [type ManagedAgentsMCPOAuthRefreshParams](<#ManagedAgentsMCPOAuthRefreshParams>) + - [func \(r ManagedAgentsMCPOAuthRefreshParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPOAuthRefreshParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPOAuthRefreshParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshParams.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion](<#ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion>) + - [func \(u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) GetClientSecret\(\) \*string](<#ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion.GetClientSecret>) + - [func \(u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) GetType\(\) \*string](<#ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion.GetType>) + - [func \(u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthRefreshResponse](<#ManagedAgentsMCPOAuthRefreshResponse>) + - [func \(r ManagedAgentsMCPOAuthRefreshResponse\) RawJSON\(\) string](<#ManagedAgentsMCPOAuthRefreshResponse.RawJSON>) + - [func \(r \*ManagedAgentsMCPOAuthRefreshResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshResponse.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion>) + - [func \(u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) AsAny\(\) anyManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuth](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsAny>) + - [func \(u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) AsClientSecretBasic\(\) \(v ManagedAgentsTokenEndpointAuthBasicResponse\)](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsClientSecretBasic>) + - [func \(u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) AsClientSecretPost\(\) \(v ManagedAgentsTokenEndpointAuthPostResponse\)](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsClientSecretPost>) + - [func \(u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) AsNone\(\) \(v ManagedAgentsTokenEndpointAuthNoneResponse\)](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsNone>) + - [func \(u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) RawJSON\(\) string](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.RawJSON>) + - [func \(r \*ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthRefreshUpdateParams](<#ManagedAgentsMCPOAuthRefreshUpdateParams>) + - [func \(r ManagedAgentsMCPOAuthRefreshUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPOAuthRefreshUpdateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPOAuthRefreshUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshUpdateParams.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion](<#ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion>) + - [func \(u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) GetClientSecret\(\) \*string](<#ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion.GetClientSecret>) + - [func \(u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) GetType\(\) \*string](<#ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion.GetType>) + - [func \(u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthUpdateParams](<#ManagedAgentsMCPOAuthUpdateParams>) + - [func \(r ManagedAgentsMCPOAuthUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPOAuthUpdateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPOAuthUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPOAuthUpdateParams.UnmarshalJSON>) +- [type ManagedAgentsMCPOAuthUpdateParamsType](<#ManagedAgentsMCPOAuthUpdateParamsType>) +- [type ManagedAgentsMCPProbe](<#ManagedAgentsMCPProbe>) + - [func \(r ManagedAgentsMCPProbe\) RawJSON\(\) string](<#ManagedAgentsMCPProbe.RawJSON>) + - [func \(r \*ManagedAgentsMCPProbe\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPProbe.UnmarshalJSON>) +- [type ManagedAgentsMCPServerURLDefinition](<#ManagedAgentsMCPServerURLDefinition>) + - [func \(r ManagedAgentsMCPServerURLDefinition\) RawJSON\(\) string](<#ManagedAgentsMCPServerURLDefinition.RawJSON>) + - [func \(r \*ManagedAgentsMCPServerURLDefinition\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPServerURLDefinition.UnmarshalJSON>) +- [type ManagedAgentsMCPServerURLDefinitionType](<#ManagedAgentsMCPServerURLDefinitionType>) +- [type ManagedAgentsMCPToolConfig](<#ManagedAgentsMCPToolConfig>) + - [func \(r ManagedAgentsMCPToolConfig\) RawJSON\(\) string](<#ManagedAgentsMCPToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsMCPToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolConfig.UnmarshalJSON>) +- [type ManagedAgentsMCPToolConfigParams](<#ManagedAgentsMCPToolConfigParams>) + - [func \(r ManagedAgentsMCPToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPToolConfigPermissionPolicyUnion](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsMCPToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsMCPToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsMCPToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsMCPToolConfigPermissionPolicy](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsMCPToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsMCPToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPToolset](<#ManagedAgentsMCPToolset>) + - [func \(r ManagedAgentsMCPToolset\) RawJSON\(\) string](<#ManagedAgentsMCPToolset.RawJSON>) + - [func \(r \*ManagedAgentsMCPToolset\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolset.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetDefaultConfig](<#ManagedAgentsMCPToolsetDefaultConfig>) + - [func \(r ManagedAgentsMCPToolsetDefaultConfig\) RawJSON\(\) string](<#ManagedAgentsMCPToolsetDefaultConfig.RawJSON>) + - [func \(r \*ManagedAgentsMCPToolsetDefaultConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolsetDefaultConfig.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetDefaultConfigParams](<#ManagedAgentsMCPToolsetDefaultConfigParams>) + - [func \(r ManagedAgentsMCPToolsetDefaultConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPToolsetDefaultConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPToolsetDefaultConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolsetDefaultConfigParams.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion](<#ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsMCPToolsetDefaultConfigPermissionPolicy](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetParams](<#ManagedAgentsMCPToolsetParams>) + - [func \(r ManagedAgentsMCPToolsetParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMCPToolsetParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMCPToolsetParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMCPToolsetParams.UnmarshalJSON>) +- [type ManagedAgentsMCPToolsetParamsType](<#ManagedAgentsMCPToolsetParamsType>) +- [type ManagedAgentsMCPToolsetType](<#ManagedAgentsMCPToolsetType>) +- [type ManagedAgentsManualDeploymentPausedReason](<#ManagedAgentsManualDeploymentPausedReason>) + - [func \(r ManagedAgentsManualDeploymentPausedReason\) RawJSON\(\) string](<#ManagedAgentsManualDeploymentPausedReason.RawJSON>) + - [func \(r \*ManagedAgentsManualDeploymentPausedReason\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsManualDeploymentPausedReason.UnmarshalJSON>) +- [type ManagedAgentsManualDeploymentPausedReasonType](<#ManagedAgentsManualDeploymentPausedReasonType>) +- [type ManagedAgentsManualTriggerContext](<#ManagedAgentsManualTriggerContext>) + - [func \(r ManagedAgentsManualTriggerContext\) RawJSON\(\) string](<#ManagedAgentsManualTriggerContext.RawJSON>) + - [func \(r \*ManagedAgentsManualTriggerContext\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsManualTriggerContext.UnmarshalJSON>) +- [type ManagedAgentsManualTriggerContextType](<#ManagedAgentsManualTriggerContextType>) +- [type ManagedAgentsMemory](<#ManagedAgentsMemory>) + - [func \(r ManagedAgentsMemory\) RawJSON\(\) string](<#ManagedAgentsMemory.RawJSON>) + - [func \(r \*ManagedAgentsMemory\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemory.UnmarshalJSON>) +- [type ManagedAgentsMemoryListItemUnion](<#ManagedAgentsMemoryListItemUnion>) + - [func \(u ManagedAgentsMemoryListItemUnion\) AsAny\(\) anyManagedAgentsMemoryListItem](<#ManagedAgentsMemoryListItemUnion.AsAny>) + - [func \(u ManagedAgentsMemoryListItemUnion\) AsMemory\(\) \(v ManagedAgentsMemory\)](<#ManagedAgentsMemoryListItemUnion.AsMemory>) + - [func \(u ManagedAgentsMemoryListItemUnion\) AsMemoryPrefix\(\) \(v ManagedAgentsMemoryPrefix\)](<#ManagedAgentsMemoryListItemUnion.AsMemoryPrefix>) + - [func \(u ManagedAgentsMemoryListItemUnion\) RawJSON\(\) string](<#ManagedAgentsMemoryListItemUnion.RawJSON>) + - [func \(r \*ManagedAgentsMemoryListItemUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryListItemUnion.UnmarshalJSON>) +- [type ManagedAgentsMemoryPrefix](<#ManagedAgentsMemoryPrefix>) + - [func \(r ManagedAgentsMemoryPrefix\) RawJSON\(\) string](<#ManagedAgentsMemoryPrefix.RawJSON>) + - [func \(r \*ManagedAgentsMemoryPrefix\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryPrefix.UnmarshalJSON>) +- [type ManagedAgentsMemoryPrefixType](<#ManagedAgentsMemoryPrefixType>) +- [type ManagedAgentsMemoryStore](<#ManagedAgentsMemoryStore>) + - [func \(r ManagedAgentsMemoryStore\) RawJSON\(\) string](<#ManagedAgentsMemoryStore.RawJSON>) + - [func \(r \*ManagedAgentsMemoryStore\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStore.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError](<#ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType](<#ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsMemoryStoreArchivedRunError](<#ManagedAgentsMemoryStoreArchivedRunError>) + - [func \(r ManagedAgentsMemoryStoreArchivedRunError\) RawJSON\(\) string](<#ManagedAgentsMemoryStoreArchivedRunError.RawJSON>) + - [func \(r \*ManagedAgentsMemoryStoreArchivedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStoreArchivedRunError.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreArchivedRunErrorType](<#ManagedAgentsMemoryStoreArchivedRunErrorType>) +- [type ManagedAgentsMemoryStoreResource](<#ManagedAgentsMemoryStoreResource>) + - [func \(r ManagedAgentsMemoryStoreResource\) RawJSON\(\) string](<#ManagedAgentsMemoryStoreResource.RawJSON>) + - [func \(r \*ManagedAgentsMemoryStoreResource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStoreResource.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreResourceAccess](<#ManagedAgentsMemoryStoreResourceAccess>) +- [type ManagedAgentsMemoryStoreResourceConfig](<#ManagedAgentsMemoryStoreResourceConfig>) + - [func \(r ManagedAgentsMemoryStoreResourceConfig\) RawJSON\(\) string](<#ManagedAgentsMemoryStoreResourceConfig.RawJSON>) + - [func \(r \*ManagedAgentsMemoryStoreResourceConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStoreResourceConfig.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreResourceConfigAccess](<#ManagedAgentsMemoryStoreResourceConfigAccess>) +- [type ManagedAgentsMemoryStoreResourceConfigType](<#ManagedAgentsMemoryStoreResourceConfigType>) +- [type ManagedAgentsMemoryStoreResourceParam](<#ManagedAgentsMemoryStoreResourceParam>) + - [func \(r ManagedAgentsMemoryStoreResourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMemoryStoreResourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsMemoryStoreResourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryStoreResourceParam.UnmarshalJSON>) +- [type ManagedAgentsMemoryStoreResourceParamAccess](<#ManagedAgentsMemoryStoreResourceParamAccess>) +- [type ManagedAgentsMemoryStoreResourceParamType](<#ManagedAgentsMemoryStoreResourceParamType>) +- [type ManagedAgentsMemoryStoreResourceType](<#ManagedAgentsMemoryStoreResourceType>) +- [type ManagedAgentsMemoryStoreType](<#ManagedAgentsMemoryStoreType>) +- [type ManagedAgentsMemoryType](<#ManagedAgentsMemoryType>) +- [type ManagedAgentsMemoryVersion](<#ManagedAgentsMemoryVersion>) + - [func \(r ManagedAgentsMemoryVersion\) RawJSON\(\) string](<#ManagedAgentsMemoryVersion.RawJSON>) + - [func \(r \*ManagedAgentsMemoryVersion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMemoryVersion.UnmarshalJSON>) +- [type ManagedAgentsMemoryVersionOperation](<#ManagedAgentsMemoryVersionOperation>) +- [type ManagedAgentsMemoryVersionType](<#ManagedAgentsMemoryVersionType>) +- [type ManagedAgentsMemoryView](<#ManagedAgentsMemoryView>) +- [type ManagedAgentsModel](<#ManagedAgentsModel>) +- [type ManagedAgentsModelConfig](<#ManagedAgentsModelConfig>) + - [func \(r ManagedAgentsModelConfig\) RawJSON\(\) string](<#ManagedAgentsModelConfig.RawJSON>) + - [func \(r \*ManagedAgentsModelConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelConfig.UnmarshalJSON>) +- [type ManagedAgentsModelConfigEffortUnion](<#ManagedAgentsModelConfigEffortUnion>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsAny\(\) anyManagedAgentsModelConfigEffort](<#ManagedAgentsModelConfigEffortUnion.AsAny>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsHigh\(\) \(v ManagedAgentsEffortHigh\)](<#ManagedAgentsModelConfigEffortUnion.AsHigh>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsLow\(\) \(v ManagedAgentsEffortLow\)](<#ManagedAgentsModelConfigEffortUnion.AsLow>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsMax\(\) \(v ManagedAgentsEffortMax\)](<#ManagedAgentsModelConfigEffortUnion.AsMax>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsMedium\(\) \(v ManagedAgentsEffortMedium\)](<#ManagedAgentsModelConfigEffortUnion.AsMedium>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) AsXhigh\(\) \(v ManagedAgentsEffortXhigh\)](<#ManagedAgentsModelConfigEffortUnion.AsXhigh>) + - [func \(u ManagedAgentsModelConfigEffortUnion\) RawJSON\(\) string](<#ManagedAgentsModelConfigEffortUnion.RawJSON>) + - [func \(r \*ManagedAgentsModelConfigEffortUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelConfigEffortUnion.UnmarshalJSON>) +- [type ManagedAgentsModelConfigParams](<#ManagedAgentsModelConfigParams>) + - [func \(r ManagedAgentsModelConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsModelConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsModelConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelConfigParams.UnmarshalJSON>) +- [type ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel](<#ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel>) +- [type ManagedAgentsModelConfigParamsEffortUnion](<#ManagedAgentsModelConfigParamsEffortUnion>) + - [func \(u ManagedAgentsModelConfigParamsEffortUnion\) GetType\(\) \*string](<#ManagedAgentsModelConfigParamsEffortUnion.GetType>) + - [func \(u ManagedAgentsModelConfigParamsEffortUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsModelConfigParamsEffortUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsModelConfigParamsEffortUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelConfigParamsEffortUnion.UnmarshalJSON>) +- [type ManagedAgentsModelConfigParamsSpeed](<#ManagedAgentsModelConfigParamsSpeed>) +- [type ManagedAgentsModelConfigSpeed](<#ManagedAgentsModelConfigSpeed>) +- [type ManagedAgentsModelOverloadedError](<#ManagedAgentsModelOverloadedError>) + - [func \(r ManagedAgentsModelOverloadedError\) RawJSON\(\) string](<#ManagedAgentsModelOverloadedError.RawJSON>) + - [func \(r \*ManagedAgentsModelOverloadedError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelOverloadedError.UnmarshalJSON>) +- [type ManagedAgentsModelOverloadedErrorRetryStatusUnion](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion>) + - [func \(u ManagedAgentsModelOverloadedErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsModelOverloadedErrorRetryStatus](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsModelOverloadedErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsModelOverloadedErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsModelOverloadedErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsModelOverloadedErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsModelOverloadedErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsModelOverloadedErrorType](<#ManagedAgentsModelOverloadedErrorType>) +- [type ManagedAgentsModelRateLimitedError](<#ManagedAgentsModelRateLimitedError>) + - [func \(r ManagedAgentsModelRateLimitedError\) RawJSON\(\) string](<#ManagedAgentsModelRateLimitedError.RawJSON>) + - [func \(r \*ManagedAgentsModelRateLimitedError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelRateLimitedError.UnmarshalJSON>) +- [type ManagedAgentsModelRateLimitedErrorRetryStatusUnion](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion>) + - [func \(u ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsModelRateLimitedErrorRetryStatus](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsModelRateLimitedErrorType](<#ManagedAgentsModelRateLimitedErrorType>) +- [type ManagedAgentsModelRequestFailedError](<#ManagedAgentsModelRequestFailedError>) + - [func \(r ManagedAgentsModelRequestFailedError\) RawJSON\(\) string](<#ManagedAgentsModelRequestFailedError.RawJSON>) + - [func \(r \*ManagedAgentsModelRequestFailedError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelRequestFailedError.UnmarshalJSON>) +- [type ManagedAgentsModelRequestFailedErrorRetryStatusUnion](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion>) + - [func \(u ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsModelRequestFailedErrorRetryStatus](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsModelRequestFailedErrorType](<#ManagedAgentsModelRequestFailedErrorType>) +- [type ManagedAgentsMultiagent](<#ManagedAgentsMultiagent>) + - [func \(r ManagedAgentsMultiagent\) RawJSON\(\) string](<#ManagedAgentsMultiagent.RawJSON>) + - [func \(r \*ManagedAgentsMultiagent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMultiagent.UnmarshalJSON>) +- [type ManagedAgentsMultiagentAgentUnion](<#ManagedAgentsMultiagentAgentUnion>) + - [func \(u ManagedAgentsMultiagentAgentUnion\) AsAdvisor\(\) \(v ManagedAgentsAdvisor\)](<#ManagedAgentsMultiagentAgentUnion.AsAdvisor>) + - [func \(u ManagedAgentsMultiagentAgentUnion\) AsAgent\(\) \(v ManagedAgentsAgentReference\)](<#ManagedAgentsMultiagentAgentUnion.AsAgent>) + - [func \(u ManagedAgentsMultiagentAgentUnion\) AsAny\(\) anyManagedAgentsMultiagentAgent](<#ManagedAgentsMultiagentAgentUnion.AsAny>) + - [func \(u ManagedAgentsMultiagentAgentUnion\) RawJSON\(\) string](<#ManagedAgentsMultiagentAgentUnion.RawJSON>) + - [func \(r \*ManagedAgentsMultiagentAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMultiagentAgentUnion.UnmarshalJSON>) +- [type ManagedAgentsMultiagentParams](<#ManagedAgentsMultiagentParams>) + - [func \(r ManagedAgentsMultiagentParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMultiagentParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMultiagentParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMultiagentParams.UnmarshalJSON>) +- [type ManagedAgentsMultiagentParamsType](<#ManagedAgentsMultiagentParamsType>) +- [type ManagedAgentsMultiagentRosterEntryParamsUnion](<#ManagedAgentsMultiagentRosterEntryParamsUnion>) + - [func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAdvisors\(model string, type\_ ManagedAgentsAdvisorParamsType\) ManagedAgentsMultiagentRosterEntryParamsUnion](<#ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAdvisors>) + - [func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAgents\(id string, type\_ ManagedAgentsAgentParamsType\) ManagedAgentsMultiagentRosterEntryParamsUnion](<#ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAgents>) + - [func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsMultiagentSelfs\(type\_ ManagedAgentsMultiagentSelfParamsType\) ManagedAgentsMultiagentRosterEntryParamsUnion](<#ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsMultiagentSelfs>) + - [func \(u ManagedAgentsMultiagentRosterEntryParamsUnion\) GetID\(\) \*string](<#ManagedAgentsMultiagentRosterEntryParamsUnion.GetID>) + - [func \(u ManagedAgentsMultiagentRosterEntryParamsUnion\) GetModel\(\) \*string](<#ManagedAgentsMultiagentRosterEntryParamsUnion.GetModel>) + - [func \(u ManagedAgentsMultiagentRosterEntryParamsUnion\) GetType\(\) \*string](<#ManagedAgentsMultiagentRosterEntryParamsUnion.GetType>) + - [func \(u ManagedAgentsMultiagentRosterEntryParamsUnion\) GetVersion\(\) \*int64](<#ManagedAgentsMultiagentRosterEntryParamsUnion.GetVersion>) + - [func \(u ManagedAgentsMultiagentRosterEntryParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsMultiagentRosterEntryParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsMultiagentRosterEntryParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMultiagentRosterEntryParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsMultiagentSelfParams](<#ManagedAgentsMultiagentSelfParams>) + - [func \(r ManagedAgentsMultiagentSelfParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsMultiagentSelfParams.MarshalJSON>) + - [func \(r \*ManagedAgentsMultiagentSelfParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsMultiagentSelfParams.UnmarshalJSON>) +- [type ManagedAgentsMultiagentSelfParamsType](<#ManagedAgentsMultiagentSelfParamsType>) +- [type ManagedAgentsMultiagentType](<#ManagedAgentsMultiagentType>) +- [type ManagedAgentsOrganizationDisabledDeploymentPausedReasonError](<#ManagedAgentsOrganizationDisabledDeploymentPausedReasonError>) + - [func \(r ManagedAgentsOrganizationDisabledDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsOrganizationDisabledDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsOrganizationDisabledDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsOrganizationDisabledDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType](<#ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType>) +- [type ManagedAgentsOrganizationDisabledRunError](<#ManagedAgentsOrganizationDisabledRunError>) + - [func \(r ManagedAgentsOrganizationDisabledRunError\) RawJSON\(\) string](<#ManagedAgentsOrganizationDisabledRunError.RawJSON>) + - [func \(r \*ManagedAgentsOrganizationDisabledRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsOrganizationDisabledRunError.UnmarshalJSON>) +- [type ManagedAgentsOrganizationDisabledRunErrorType](<#ManagedAgentsOrganizationDisabledRunErrorType>) +- [type ManagedAgentsOutcomeEvaluationResource](<#ManagedAgentsOutcomeEvaluationResource>) + - [func \(r ManagedAgentsOutcomeEvaluationResource\) RawJSON\(\) string](<#ManagedAgentsOutcomeEvaluationResource.RawJSON>) + - [func \(r \*ManagedAgentsOutcomeEvaluationResource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsOutcomeEvaluationResource.UnmarshalJSON>) +- [type ManagedAgentsOutcomeEvaluationResourceType](<#ManagedAgentsOutcomeEvaluationResourceType>) +- [type ManagedAgentsPlainTextDocumentSource](<#ManagedAgentsPlainTextDocumentSource>) + - [func \(r ManagedAgentsPlainTextDocumentSource\) RawJSON\(\) string](<#ManagedAgentsPlainTextDocumentSource.RawJSON>) + - [func \(r ManagedAgentsPlainTextDocumentSource\) ToParam\(\) ManagedAgentsPlainTextDocumentSourceParam](<#ManagedAgentsPlainTextDocumentSource.ToParam>) + - [func \(r \*ManagedAgentsPlainTextDocumentSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsPlainTextDocumentSource.UnmarshalJSON>) +- [type ManagedAgentsPlainTextDocumentSourceMediaType](<#ManagedAgentsPlainTextDocumentSourceMediaType>) +- [type ManagedAgentsPlainTextDocumentSourceParam](<#ManagedAgentsPlainTextDocumentSourceParam>) + - [func \(r ManagedAgentsPlainTextDocumentSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsPlainTextDocumentSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsPlainTextDocumentSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsPlainTextDocumentSourceParam.UnmarshalJSON>) +- [type ManagedAgentsPlainTextDocumentSourceType](<#ManagedAgentsPlainTextDocumentSourceType>) +- [type ManagedAgentsPreconditionParam](<#ManagedAgentsPreconditionParam>) + - [func \(r ManagedAgentsPreconditionParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsPreconditionParam.MarshalJSON>) + - [func \(r \*ManagedAgentsPreconditionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsPreconditionParam.UnmarshalJSON>) +- [type ManagedAgentsPreconditionType](<#ManagedAgentsPreconditionType>) +- [type ManagedAgentsQoderSkill](<#ManagedAgentsQoderSkill>) + - [func \(r ManagedAgentsQoderSkill\) RawJSON\(\) string](<#ManagedAgentsQoderSkill.RawJSON>) + - [func \(r \*ManagedAgentsQoderSkill\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsQoderSkill.UnmarshalJSON>) +- [type ManagedAgentsQoderSkillParams](<#ManagedAgentsQoderSkillParams>) + - [func \(r ManagedAgentsQoderSkillParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsQoderSkillParams.MarshalJSON>) + - [func \(r \*ManagedAgentsQoderSkillParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsQoderSkillParams.UnmarshalJSON>) +- [type ManagedAgentsQoderSkillParamsType](<#ManagedAgentsQoderSkillParamsType>) +- [type ManagedAgentsQoderSkillType](<#ManagedAgentsQoderSkillType>) +- [type ManagedAgentsReadToolConfig](<#ManagedAgentsReadToolConfig>) + - [func \(r ManagedAgentsReadToolConfig\) RawJSON\(\) string](<#ManagedAgentsReadToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsReadToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsReadToolConfig.UnmarshalJSON>) +- [type ManagedAgentsReadToolConfigParams](<#ManagedAgentsReadToolConfigParams>) + - [func \(r ManagedAgentsReadToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsReadToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsReadToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsReadToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsReadToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsReadToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsReadToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsReadToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsReadToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsReadToolConfigParamsType](<#ManagedAgentsReadToolConfigParamsType>) +- [type ManagedAgentsReadToolConfigPermissionPolicyUnion](<#ManagedAgentsReadToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsReadToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsReadToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsReadToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsReadToolConfigPermissionPolicy](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsReadToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsReadToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>) + - [func \(r ManagedAgentsRedactedBlock\) RawJSON\(\) string](<#ManagedAgentsRedactedBlock.RawJSON>) + - [func \(r ManagedAgentsRedactedBlock\) ToParam\(\) ManagedAgentsRedactedBlockParam](<#ManagedAgentsRedactedBlock.ToParam>) + - [func \(r \*ManagedAgentsRedactedBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRedactedBlock.UnmarshalJSON>) +- [type ManagedAgentsRedactedBlockParam](<#ManagedAgentsRedactedBlockParam>) + - [func \(r ManagedAgentsRedactedBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsRedactedBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsRedactedBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRedactedBlockParam.UnmarshalJSON>) +- [type ManagedAgentsRedactedBlockType](<#ManagedAgentsRedactedBlockType>) +- [type ManagedAgentsRefreshHTTPResponse](<#ManagedAgentsRefreshHTTPResponse>) + - [func \(r ManagedAgentsRefreshHTTPResponse\) RawJSON\(\) string](<#ManagedAgentsRefreshHTTPResponse.RawJSON>) + - [func \(r \*ManagedAgentsRefreshHTTPResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRefreshHTTPResponse.UnmarshalJSON>) +- [type ManagedAgentsRefreshObject](<#ManagedAgentsRefreshObject>) + - [func \(r ManagedAgentsRefreshObject\) RawJSON\(\) string](<#ManagedAgentsRefreshObject.RawJSON>) + - [func \(r \*ManagedAgentsRefreshObject\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRefreshObject.UnmarshalJSON>) +- [type ManagedAgentsRefreshObjectStatus](<#ManagedAgentsRefreshObjectStatus>) +- [type ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>) + - [func \(r ManagedAgentsRetryStatusExhausted\) RawJSON\(\) string](<#ManagedAgentsRetryStatusExhausted.RawJSON>) + - [func \(r \*ManagedAgentsRetryStatusExhausted\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRetryStatusExhausted.UnmarshalJSON>) +- [type ManagedAgentsRetryStatusExhaustedType](<#ManagedAgentsRetryStatusExhaustedType>) +- [type ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>) + - [func \(r ManagedAgentsRetryStatusRetrying\) RawJSON\(\) string](<#ManagedAgentsRetryStatusRetrying.RawJSON>) + - [func \(r \*ManagedAgentsRetryStatusRetrying\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRetryStatusRetrying.UnmarshalJSON>) +- [type ManagedAgentsRetryStatusRetryingType](<#ManagedAgentsRetryStatusRetryingType>) +- [type ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>) + - [func \(r ManagedAgentsRetryStatusTerminal\) RawJSON\(\) string](<#ManagedAgentsRetryStatusTerminal.RawJSON>) + - [func \(r \*ManagedAgentsRetryStatusTerminal\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsRetryStatusTerminal.UnmarshalJSON>) +- [type ManagedAgentsRetryStatusTerminalType](<#ManagedAgentsRetryStatusTerminalType>) +- [type ManagedAgentsSchedule](<#ManagedAgentsSchedule>) + - [func \(r ManagedAgentsSchedule\) RawJSON\(\) string](<#ManagedAgentsSchedule.RawJSON>) + - [func \(r \*ManagedAgentsSchedule\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSchedule.UnmarshalJSON>) +- [type ManagedAgentsScheduleParams](<#ManagedAgentsScheduleParams>) + - [func \(r ManagedAgentsScheduleParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsScheduleParams.MarshalJSON>) + - [func \(r \*ManagedAgentsScheduleParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsScheduleParams.UnmarshalJSON>) +- [type ManagedAgentsScheduleParamsType](<#ManagedAgentsScheduleParamsType>) +- [type ManagedAgentsScheduleTriggerContext](<#ManagedAgentsScheduleTriggerContext>) + - [func \(r ManagedAgentsScheduleTriggerContext\) RawJSON\(\) string](<#ManagedAgentsScheduleTriggerContext.RawJSON>) + - [func \(r \*ManagedAgentsScheduleTriggerContext\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsScheduleTriggerContext.UnmarshalJSON>) +- [type ManagedAgentsScheduleTriggerContextType](<#ManagedAgentsScheduleTriggerContextType>) +- [type ManagedAgentsScheduleType](<#ManagedAgentsScheduleType>) +- [type ManagedAgentsSearchResultBlock](<#ManagedAgentsSearchResultBlock>) + - [func \(r ManagedAgentsSearchResultBlock\) RawJSON\(\) string](<#ManagedAgentsSearchResultBlock.RawJSON>) + - [func \(r ManagedAgentsSearchResultBlock\) ToParam\(\) ManagedAgentsSearchResultBlockParam](<#ManagedAgentsSearchResultBlock.ToParam>) + - [func \(r \*ManagedAgentsSearchResultBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultBlock.UnmarshalJSON>) +- [type ManagedAgentsSearchResultBlockParam](<#ManagedAgentsSearchResultBlockParam>) + - [func \(r ManagedAgentsSearchResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSearchResultBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsSearchResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultBlockParam.UnmarshalJSON>) +- [type ManagedAgentsSearchResultBlockType](<#ManagedAgentsSearchResultBlockType>) +- [type ManagedAgentsSearchResultCitations](<#ManagedAgentsSearchResultCitations>) + - [func \(r ManagedAgentsSearchResultCitations\) RawJSON\(\) string](<#ManagedAgentsSearchResultCitations.RawJSON>) + - [func \(r ManagedAgentsSearchResultCitations\) ToParam\(\) ManagedAgentsSearchResultCitationsParam](<#ManagedAgentsSearchResultCitations.ToParam>) + - [func \(r \*ManagedAgentsSearchResultCitations\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultCitations.UnmarshalJSON>) +- [type ManagedAgentsSearchResultCitationsParam](<#ManagedAgentsSearchResultCitationsParam>) + - [func \(r ManagedAgentsSearchResultCitationsParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSearchResultCitationsParam.MarshalJSON>) + - [func \(r \*ManagedAgentsSearchResultCitationsParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultCitationsParam.UnmarshalJSON>) +- [type ManagedAgentsSearchResultContent](<#ManagedAgentsSearchResultContent>) + - [func \(r ManagedAgentsSearchResultContent\) RawJSON\(\) string](<#ManagedAgentsSearchResultContent.RawJSON>) + - [func \(r ManagedAgentsSearchResultContent\) ToParam\(\) ManagedAgentsSearchResultContentParam](<#ManagedAgentsSearchResultContent.ToParam>) + - [func \(r \*ManagedAgentsSearchResultContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultContent.UnmarshalJSON>) +- [type ManagedAgentsSearchResultContentParam](<#ManagedAgentsSearchResultContentParam>) + - [func \(r ManagedAgentsSearchResultContentParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSearchResultContentParam.MarshalJSON>) + - [func \(r \*ManagedAgentsSearchResultContentParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSearchResultContentParam.UnmarshalJSON>) +- [type ManagedAgentsSearchResultContentType](<#ManagedAgentsSearchResultContentType>) +- [type ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError](<#ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType](<#ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsSelfHostedResourcesUnsupportedRunError](<#ManagedAgentsSelfHostedResourcesUnsupportedRunError>) + - [func \(r ManagedAgentsSelfHostedResourcesUnsupportedRunError\) RawJSON\(\) string](<#ManagedAgentsSelfHostedResourcesUnsupportedRunError.RawJSON>) + - [func \(r \*ManagedAgentsSelfHostedResourcesUnsupportedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSelfHostedResourcesUnsupportedRunError.UnmarshalJSON>) +- [type ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType](<#ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType>) +- [type ManagedAgentsSendSessionEvents](<#ManagedAgentsSendSessionEvents>) + - [func \(r ManagedAgentsSendSessionEvents\) RawJSON\(\) string](<#ManagedAgentsSendSessionEvents.RawJSON>) + - [func \(r \*ManagedAgentsSendSessionEvents\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSendSessionEvents.UnmarshalJSON>) +- [type ManagedAgentsSendSessionEventsDataUnion](<#ManagedAgentsSendSessionEventsDataUnion>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsAny\(\) anyManagedAgentsSendSessionEventsData](<#ManagedAgentsSendSessionEventsDataUnion.AsAny>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsSystemMessage\(\) \(v ManagedAgentsSystemMessageEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsSystemMessage>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserCustomToolResult\(\) \(v ManagedAgentsUserCustomToolResultEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserCustomToolResult>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserDefineOutcome\(\) \(v ManagedAgentsUserDefineOutcomeEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserDefineOutcome>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserInterrupt\(\) \(v ManagedAgentsUserInterruptEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserInterrupt>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserMessage\(\) \(v ManagedAgentsUserMessageEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserMessage>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserToolConfirmation\(\) \(v ManagedAgentsUserToolConfirmationEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserToolConfirmation>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) AsUserToolResult\(\) \(v ManagedAgentsUserToolResultEvent\)](<#ManagedAgentsSendSessionEventsDataUnion.AsUserToolResult>) + - [func \(u ManagedAgentsSendSessionEventsDataUnion\) RawJSON\(\) string](<#ManagedAgentsSendSessionEventsDataUnion.RawJSON>) + - [func \(r \*ManagedAgentsSendSessionEventsDataUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSendSessionEventsDataUnion.UnmarshalJSON>) +- [type ManagedAgentsSendSessionEventsDataUnionContent](<#ManagedAgentsSendSessionEventsDataUnionContent>) + - [func \(r \*ManagedAgentsSendSessionEventsDataUnionContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSendSessionEventsDataUnionContent.UnmarshalJSON>) +- [type ManagedAgentsServerToolUsage](<#ManagedAgentsServerToolUsage>) + - [func \(r ManagedAgentsServerToolUsage\) RawJSON\(\) string](<#ManagedAgentsServerToolUsage.RawJSON>) + - [func \(r \*ManagedAgentsServerToolUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsServerToolUsage.UnmarshalJSON>) +- [type ManagedAgentsServiceAccountActor](<#ManagedAgentsServiceAccountActor>) + - [func \(r ManagedAgentsServiceAccountActor\) RawJSON\(\) string](<#ManagedAgentsServiceAccountActor.RawJSON>) + - [func \(r \*ManagedAgentsServiceAccountActor\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsServiceAccountActor.UnmarshalJSON>) +- [type ManagedAgentsSession](<#ManagedAgentsSession>) + - [func \(r ManagedAgentsSession\) RawJSON\(\) string](<#ManagedAgentsSession.RawJSON>) + - [func \(r \*ManagedAgentsSession\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSession.UnmarshalJSON>) +- [type ManagedAgentsSessionActor](<#ManagedAgentsSessionActor>) + - [func \(r ManagedAgentsSessionActor\) RawJSON\(\) string](<#ManagedAgentsSessionActor.RawJSON>) + - [func \(r \*ManagedAgentsSessionActor\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionActor.UnmarshalJSON>) +- [type ManagedAgentsSessionActorType](<#ManagedAgentsSessionActorType>) +- [type ManagedAgentsSessionAgent](<#ManagedAgentsSessionAgent>) + - [func \(r ManagedAgentsSessionAgent\) RawJSON\(\) string](<#ManagedAgentsSessionAgent.RawJSON>) + - [func \(r \*ManagedAgentsSessionAgent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgent.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentSkillUnion](<#ManagedAgentsSessionAgentSkillUnion>) + - [func \(u ManagedAgentsSessionAgentSkillUnion\) AsAny\(\) anyManagedAgentsSessionAgentSkill](<#ManagedAgentsSessionAgentSkillUnion.AsAny>) + - [func \(u ManagedAgentsSessionAgentSkillUnion\) AsCustom\(\) \(v ManagedAgentsCustomSkill\)](<#ManagedAgentsSessionAgentSkillUnion.AsCustom>) + - [func \(u ManagedAgentsSessionAgentSkillUnion\) AsQoder\(\) \(v ManagedAgentsQoderSkill\)](<#ManagedAgentsSessionAgentSkillUnion.AsQoder>) + - [func \(u ManagedAgentsSessionAgentSkillUnion\) RawJSON\(\) string](<#ManagedAgentsSessionAgentSkillUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionAgentSkillUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentSkillUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>) + - [func \(u ManagedAgentsSessionAgentToolUnion\) AsAgentToolset20260401\(\) \(v ManagedAgentsAgentToolset20260401\)](<#ManagedAgentsSessionAgentToolUnion.AsAgentToolset20260401>) + - [func \(u ManagedAgentsSessionAgentToolUnion\) AsAny\(\) anyManagedAgentsSessionAgentTool](<#ManagedAgentsSessionAgentToolUnion.AsAny>) + - [func \(u ManagedAgentsSessionAgentToolUnion\) AsCustom\(\) \(v ManagedAgentsCustomTool\)](<#ManagedAgentsSessionAgentToolUnion.AsCustom>) + - [func \(u ManagedAgentsSessionAgentToolUnion\) AsMCPToolset\(\) \(v ManagedAgentsMCPToolset\)](<#ManagedAgentsSessionAgentToolUnion.AsMCPToolset>) + - [func \(u ManagedAgentsSessionAgentToolUnion\) RawJSON\(\) string](<#ManagedAgentsSessionAgentToolUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionAgentToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentToolUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentToolUnionConfigs](<#ManagedAgentsSessionAgentToolUnionConfigs>) + - [func \(r \*ManagedAgentsSessionAgentToolUnionConfigs\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentToolUnionConfigs.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentToolUnionDefaultConfig](<#ManagedAgentsSessionAgentToolUnionDefaultConfig>) + - [func \(r \*ManagedAgentsSessionAgentToolUnionDefaultConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentToolUnionDefaultConfig.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy](<#ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy>) + - [func \(r \*ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentType](<#ManagedAgentsSessionAgentType>) +- [type ManagedAgentsSessionAgentUpdateParam](<#ManagedAgentsSessionAgentUpdateParam>) + - [func \(r ManagedAgentsSessionAgentUpdateParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSessionAgentUpdateParam.MarshalJSON>) + - [func \(r \*ManagedAgentsSessionAgentUpdateParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentUpdateParam.UnmarshalJSON>) +- [type ManagedAgentsSessionAgentUpdateToolUnionParam](<#ManagedAgentsSessionAgentUpdateToolUnionParam>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetConfigs\(\) \(res managedAgentsSessionAgentUpdateToolUnionParamConfigs\)](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetConfigs>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetDefaultConfig\(\) \(res managedAgentsSessionAgentUpdateToolUnionParamDefaultConfig\)](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetDefaultConfig>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetDescription\(\) \*string](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetDescription>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetInputSchema\(\) \*ManagedAgentsCustomToolInputSchemaParam](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetInputSchema>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetMCPServerName\(\) \*string](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetMCPServerName>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetName\(\) \*string](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetName>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) GetType\(\) \*string](<#ManagedAgentsSessionAgentUpdateToolUnionParam.GetType>) + - [func \(u ManagedAgentsSessionAgentUpdateToolUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsSessionAgentUpdateToolUnionParam.MarshalJSON>) + - [func \(u \*ManagedAgentsSessionAgentUpdateToolUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionAgentUpdateToolUnionParam.UnmarshalJSON>) +- [type ManagedAgentsSessionBudgetReached](<#ManagedAgentsSessionBudgetReached>) + - [func \(r ManagedAgentsSessionBudgetReached\) RawJSON\(\) string](<#ManagedAgentsSessionBudgetReached.RawJSON>) + - [func \(r \*ManagedAgentsSessionBudgetReached\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionBudgetReached.UnmarshalJSON>) +- [type ManagedAgentsSessionBudgetReachedType](<#ManagedAgentsSessionBudgetReachedType>) +- [type ManagedAgentsSessionCreationRejectedRunError](<#ManagedAgentsSessionCreationRejectedRunError>) + - [func \(r ManagedAgentsSessionCreationRejectedRunError\) RawJSON\(\) string](<#ManagedAgentsSessionCreationRejectedRunError.RawJSON>) + - [func \(r \*ManagedAgentsSessionCreationRejectedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionCreationRejectedRunError.UnmarshalJSON>) +- [type ManagedAgentsSessionCreationRejectedRunErrorType](<#ManagedAgentsSessionCreationRejectedRunErrorType>) +- [type ManagedAgentsSessionDeletedEvent](<#ManagedAgentsSessionDeletedEvent>) + - [func \(r ManagedAgentsSessionDeletedEvent\) RawJSON\(\) string](<#ManagedAgentsSessionDeletedEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionDeletedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionDeletedEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionDeletedEventType](<#ManagedAgentsSessionDeletedEventType>) +- [type ManagedAgentsSessionEndTurn](<#ManagedAgentsSessionEndTurn>) + - [func \(r ManagedAgentsSessionEndTurn\) RawJSON\(\) string](<#ManagedAgentsSessionEndTurn.RawJSON>) + - [func \(r \*ManagedAgentsSessionEndTurn\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionEndTurn.UnmarshalJSON>) +- [type ManagedAgentsSessionEndTurnType](<#ManagedAgentsSessionEndTurnType>) +- [type ManagedAgentsSessionErrorEvent](<#ManagedAgentsSessionErrorEvent>) + - [func \(r ManagedAgentsSessionErrorEvent\) RawJSON\(\) string](<#ManagedAgentsSessionErrorEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionErrorEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionErrorEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionErrorEventErrorUnion](<#ManagedAgentsSessionErrorEventErrorUnion>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsAny\(\) anyManagedAgentsSessionErrorEventError](<#ManagedAgentsSessionErrorEventErrorUnion.AsAny>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsBillingError\(\) \(v ManagedAgentsBillingError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsBillingError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsCredentialHostUnreachableError\(\) \(v ManagedAgentsCredentialHostUnreachableError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsCredentialHostUnreachableError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsMCPAuthenticationFailedError\(\) \(v ManagedAgentsMCPAuthenticationFailedError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsMCPAuthenticationFailedError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsMCPConnectionFailedError\(\) \(v ManagedAgentsMCPConnectionFailedError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsMCPConnectionFailedError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsModelOverloadedError\(\) \(v ManagedAgentsModelOverloadedError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsModelOverloadedError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsModelRateLimitedError\(\) \(v ManagedAgentsModelRateLimitedError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsModelRateLimitedError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsModelRequestFailedError\(\) \(v ManagedAgentsModelRequestFailedError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsModelRequestFailedError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) AsUnknownError\(\) \(v ManagedAgentsUnknownError\)](<#ManagedAgentsSessionErrorEventErrorUnion.AsUnknownError>) + - [func \(u ManagedAgentsSessionErrorEventErrorUnion\) RawJSON\(\) string](<#ManagedAgentsSessionErrorEventErrorUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionErrorEventErrorUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionErrorEventErrorUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionErrorEventErrorUnionRetryStatus](<#ManagedAgentsSessionErrorEventErrorUnionRetryStatus>) + - [func \(r \*ManagedAgentsSessionErrorEventErrorUnionRetryStatus\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionErrorEventErrorUnionRetryStatus.UnmarshalJSON>) +- [type ManagedAgentsSessionErrorEventType](<#ManagedAgentsSessionErrorEventType>) +- [type ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentCustomToolUse\(\) \(v ManagedAgentsAgentCustomToolUseEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentCustomToolUse>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentMCPToolResult\(\) \(v ManagedAgentsAgentMCPToolResultEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentMCPToolResult>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentMCPToolUse\(\) \(v ManagedAgentsAgentMCPToolUseEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentMCPToolUse>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentMessage\(\) \(v ManagedAgentsAgentMessageEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentMessage>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentThinking\(\) \(v ManagedAgentsAgentThinkingEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentThinking>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentThreadContextCompacted\(\) \(v ManagedAgentsAgentThreadContextCompactedEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentThreadContextCompacted>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentThreadMessageReceived\(\) \(v ManagedAgentsAgentThreadMessageReceivedEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentThreadMessageReceived>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentThreadMessageSent\(\) \(v ManagedAgentsAgentThreadMessageSentEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentThreadMessageSent>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentToolResult\(\) \(v ManagedAgentsAgentToolResultEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentToolResult>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAgentToolUse\(\) \(v ManagedAgentsAgentToolUseEvent\)](<#ManagedAgentsSessionEventUnion.AsAgentToolUse>) + - [func \(u ManagedAgentsSessionEventUnion\) AsAny\(\) anyManagedAgentsSessionEvent](<#ManagedAgentsSessionEventUnion.AsAny>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionDeleted\(\) \(v ManagedAgentsSessionDeletedEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionDeleted>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionError\(\) \(v ManagedAgentsSessionErrorEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionError>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionStatusIdle\(\) \(v ManagedAgentsSessionStatusIdleEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionStatusIdle>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionStatusRescheduled\(\) \(v ManagedAgentsSessionStatusRescheduledEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionStatusRescheduled>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionStatusRunning\(\) \(v ManagedAgentsSessionStatusRunningEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionStatusRunning>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionStatusTerminated\(\) \(v ManagedAgentsSessionStatusTerminatedEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionStatusTerminated>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionThreadCreated\(\) \(v ManagedAgentsSessionThreadCreatedEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionThreadCreated>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionThreadStatusIdle\(\) \(v ManagedAgentsSessionThreadStatusIdleEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionThreadStatusIdle>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionThreadStatusRescheduled\(\) \(v ManagedAgentsSessionThreadStatusRescheduledEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionThreadStatusRescheduled>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionThreadStatusRunning\(\) \(v ManagedAgentsSessionThreadStatusRunningEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionThreadStatusRunning>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionThreadStatusTerminated\(\) \(v ManagedAgentsSessionThreadStatusTerminatedEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionThreadStatusTerminated>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionUpdated\(\) \(v ManagedAgentsSessionUpdatedEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionUpdated>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSessionUsage\(\) \(v ManagedAgentsSessionUsageEvent\)](<#ManagedAgentsSessionEventUnion.AsSessionUsage>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSpanModelRequestEnd\(\) \(v ManagedAgentsSpanModelRequestEndEvent\)](<#ManagedAgentsSessionEventUnion.AsSpanModelRequestEnd>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSpanModelRequestStart\(\) \(v ManagedAgentsSpanModelRequestStartEvent\)](<#ManagedAgentsSessionEventUnion.AsSpanModelRequestStart>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSpanOutcomeEvaluationEnd\(\) \(v ManagedAgentsSpanOutcomeEvaluationEndEvent\)](<#ManagedAgentsSessionEventUnion.AsSpanOutcomeEvaluationEnd>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSpanOutcomeEvaluationOngoing\(\) \(v ManagedAgentsSpanOutcomeEvaluationOngoingEvent\)](<#ManagedAgentsSessionEventUnion.AsSpanOutcomeEvaluationOngoing>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSpanOutcomeEvaluationStart\(\) \(v ManagedAgentsSpanOutcomeEvaluationStartEvent\)](<#ManagedAgentsSessionEventUnion.AsSpanOutcomeEvaluationStart>) + - [func \(u ManagedAgentsSessionEventUnion\) AsSystemMessage\(\) \(v ManagedAgentsSystemMessageEvent\)](<#ManagedAgentsSessionEventUnion.AsSystemMessage>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserCustomToolResult\(\) \(v ManagedAgentsUserCustomToolResultEvent\)](<#ManagedAgentsSessionEventUnion.AsUserCustomToolResult>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserDefineOutcome\(\) \(v ManagedAgentsUserDefineOutcomeEvent\)](<#ManagedAgentsSessionEventUnion.AsUserDefineOutcome>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserInterrupt\(\) \(v ManagedAgentsUserInterruptEvent\)](<#ManagedAgentsSessionEventUnion.AsUserInterrupt>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserMessage\(\) \(v ManagedAgentsUserMessageEvent\)](<#ManagedAgentsSessionEventUnion.AsUserMessage>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserToolConfirmation\(\) \(v ManagedAgentsUserToolConfirmationEvent\)](<#ManagedAgentsSessionEventUnion.AsUserToolConfirmation>) + - [func \(u ManagedAgentsSessionEventUnion\) AsUserToolResult\(\) \(v ManagedAgentsUserToolResultEvent\)](<#ManagedAgentsSessionEventUnion.AsUserToolResult>) + - [func \(u ManagedAgentsSessionEventUnion\) RawJSON\(\) string](<#ManagedAgentsSessionEventUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionEventUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionEventUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionEventUnionContent](<#ManagedAgentsSessionEventUnionContent>) + - [func \(r \*ManagedAgentsSessionEventUnionContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionEventUnionContent.UnmarshalJSON>) +- [type ManagedAgentsSessionEventUnionStopReason](<#ManagedAgentsSessionEventUnionStopReason>) + - [func \(r \*ManagedAgentsSessionEventUnionStopReason\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionEventUnionStopReason.UnmarshalJSON>) +- [type ManagedAgentsSessionEventUnionUsage](<#ManagedAgentsSessionEventUnionUsage>) + - [func \(r \*ManagedAgentsSessionEventUnionUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionEventUnionUsage.UnmarshalJSON>) +- [type ManagedAgentsSessionMultiagentCoordinator](<#ManagedAgentsSessionMultiagentCoordinator>) + - [func \(r ManagedAgentsSessionMultiagentCoordinator\) RawJSON\(\) string](<#ManagedAgentsSessionMultiagentCoordinator.RawJSON>) + - [func \(r \*ManagedAgentsSessionMultiagentCoordinator\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionMultiagentCoordinator.UnmarshalJSON>) +- [type ManagedAgentsSessionMultiagentCoordinatorAgentUnion](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion>) + - [func \(u ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) AsAdvisor\(\) \(v ManagedAgentsAdvisor\)](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAdvisor>) + - [func \(u ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) AsAgent\(\) \(v ManagedAgentsSessionThreadAgent\)](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAgent>) + - [func \(u ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) AsAny\(\) anyManagedAgentsSessionMultiagentCoordinatorAgent](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAny>) + - [func \(u ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) RawJSON\(\) string](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel>) + - [func \(r \*ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel.UnmarshalJSON>) +- [type ManagedAgentsSessionMultiagentCoordinatorType](<#ManagedAgentsSessionMultiagentCoordinatorType>) +- [type ManagedAgentsSessionRateLimitedRunError](<#ManagedAgentsSessionRateLimitedRunError>) + - [func \(r ManagedAgentsSessionRateLimitedRunError\) RawJSON\(\) string](<#ManagedAgentsSessionRateLimitedRunError.RawJSON>) + - [func \(r \*ManagedAgentsSessionRateLimitedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionRateLimitedRunError.UnmarshalJSON>) +- [type ManagedAgentsSessionRateLimitedRunErrorType](<#ManagedAgentsSessionRateLimitedRunErrorType>) +- [type ManagedAgentsSessionRequiresAction](<#ManagedAgentsSessionRequiresAction>) + - [func \(r ManagedAgentsSessionRequiresAction\) RawJSON\(\) string](<#ManagedAgentsSessionRequiresAction.RawJSON>) + - [func \(r \*ManagedAgentsSessionRequiresAction\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionRequiresAction.UnmarshalJSON>) +- [type ManagedAgentsSessionRequiresActionType](<#ManagedAgentsSessionRequiresActionType>) +- [type ManagedAgentsSessionResourceConfigUnion](<#ManagedAgentsSessionResourceConfigUnion>) + - [func \(u ManagedAgentsSessionResourceConfigUnion\) AsAny\(\) anyManagedAgentsSessionResourceConfig](<#ManagedAgentsSessionResourceConfigUnion.AsAny>) + - [func \(u ManagedAgentsSessionResourceConfigUnion\) AsFile\(\) \(v ManagedAgentsFileResourceConfig\)](<#ManagedAgentsSessionResourceConfigUnion.AsFile>) + - [func \(u ManagedAgentsSessionResourceConfigUnion\) AsGitHubRepository\(\) \(v ManagedAgentsGitHubRepositoryResourceConfig\)](<#ManagedAgentsSessionResourceConfigUnion.AsGitHubRepository>) + - [func \(u ManagedAgentsSessionResourceConfigUnion\) AsMemoryStore\(\) \(v ManagedAgentsMemoryStoreResourceConfig\)](<#ManagedAgentsSessionResourceConfigUnion.AsMemoryStore>) + - [func \(u ManagedAgentsSessionResourceConfigUnion\) RawJSON\(\) string](<#ManagedAgentsSessionResourceConfigUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionResourceConfigUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionResourceConfigUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError](<#ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError>) + - [func \(r ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType](<#ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType>) +- [type ManagedAgentsSessionResourceNotFoundRunError](<#ManagedAgentsSessionResourceNotFoundRunError>) + - [func \(r ManagedAgentsSessionResourceNotFoundRunError\) RawJSON\(\) string](<#ManagedAgentsSessionResourceNotFoundRunError.RawJSON>) + - [func \(r \*ManagedAgentsSessionResourceNotFoundRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionResourceNotFoundRunError.UnmarshalJSON>) +- [type ManagedAgentsSessionResourceNotFoundRunErrorType](<#ManagedAgentsSessionResourceNotFoundRunErrorType>) +- [type ManagedAgentsSessionResourceUnion](<#ManagedAgentsSessionResourceUnion>) + - [func \(u ManagedAgentsSessionResourceUnion\) AsAny\(\) anyManagedAgentsSessionResource](<#ManagedAgentsSessionResourceUnion.AsAny>) + - [func \(u ManagedAgentsSessionResourceUnion\) AsFile\(\) \(v ManagedAgentsFileResource\)](<#ManagedAgentsSessionResourceUnion.AsFile>) + - [func \(u ManagedAgentsSessionResourceUnion\) AsGitHubRepository\(\) \(v ManagedAgentsGitHubRepositoryResource\)](<#ManagedAgentsSessionResourceUnion.AsGitHubRepository>) + - [func \(u ManagedAgentsSessionResourceUnion\) AsMemoryStore\(\) \(v ManagedAgentsMemoryStoreResource\)](<#ManagedAgentsSessionResourceUnion.AsMemoryStore>) + - [func \(u ManagedAgentsSessionResourceUnion\) RawJSON\(\) string](<#ManagedAgentsSessionResourceUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionResourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionResourceUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionRetriesExhausted](<#ManagedAgentsSessionRetriesExhausted>) + - [func \(r ManagedAgentsSessionRetriesExhausted\) RawJSON\(\) string](<#ManagedAgentsSessionRetriesExhausted.RawJSON>) + - [func \(r \*ManagedAgentsSessionRetriesExhausted\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionRetriesExhausted.UnmarshalJSON>) +- [type ManagedAgentsSessionRetriesExhaustedType](<#ManagedAgentsSessionRetriesExhaustedType>) +- [type ManagedAgentsSessionStats](<#ManagedAgentsSessionStats>) + - [func \(r ManagedAgentsSessionStats\) RawJSON\(\) string](<#ManagedAgentsSessionStats.RawJSON>) + - [func \(r \*ManagedAgentsSessionStats\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStats.UnmarshalJSON>) +- [type ManagedAgentsSessionStatus](<#ManagedAgentsSessionStatus>) +- [type ManagedAgentsSessionStatusIdleEvent](<#ManagedAgentsSessionStatusIdleEvent>) + - [func \(r ManagedAgentsSessionStatusIdleEvent\) RawJSON\(\) string](<#ManagedAgentsSessionStatusIdleEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionStatusIdleEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStatusIdleEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionStatusIdleEventStopReasonUnion](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) AsAny\(\) anyManagedAgentsSessionStatusIdleEventStopReason](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsAny>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) AsBudgetReached\(\) \(v ManagedAgentsSessionBudgetReached\)](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsBudgetReached>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) AsEndTurn\(\) \(v ManagedAgentsSessionEndTurn\)](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsEndTurn>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) AsRequiresAction\(\) \(v ManagedAgentsSessionRequiresAction\)](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsRequiresAction>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) AsRetriesExhausted\(\) \(v ManagedAgentsSessionRetriesExhausted\)](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsRetriesExhausted>) + - [func \(u ManagedAgentsSessionStatusIdleEventStopReasonUnion\) RawJSON\(\) string](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionStatusIdleEventStopReasonUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionStatusIdleEventType](<#ManagedAgentsSessionStatusIdleEventType>) +- [type ManagedAgentsSessionStatusRescheduledEvent](<#ManagedAgentsSessionStatusRescheduledEvent>) + - [func \(r ManagedAgentsSessionStatusRescheduledEvent\) RawJSON\(\) string](<#ManagedAgentsSessionStatusRescheduledEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionStatusRescheduledEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStatusRescheduledEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionStatusRescheduledEventType](<#ManagedAgentsSessionStatusRescheduledEventType>) +- [type ManagedAgentsSessionStatusRunningEvent](<#ManagedAgentsSessionStatusRunningEvent>) + - [func \(r ManagedAgentsSessionStatusRunningEvent\) RawJSON\(\) string](<#ManagedAgentsSessionStatusRunningEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionStatusRunningEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStatusRunningEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionStatusRunningEventType](<#ManagedAgentsSessionStatusRunningEventType>) +- [type ManagedAgentsSessionStatusTerminatedEvent](<#ManagedAgentsSessionStatusTerminatedEvent>) + - [func \(r ManagedAgentsSessionStatusTerminatedEvent\) RawJSON\(\) string](<#ManagedAgentsSessionStatusTerminatedEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionStatusTerminatedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionStatusTerminatedEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionStatusTerminatedEventType](<#ManagedAgentsSessionStatusTerminatedEventType>) +- [type ManagedAgentsSessionThread](<#ManagedAgentsSessionThread>) + - [func \(r ManagedAgentsSessionThread\) RawJSON\(\) string](<#ManagedAgentsSessionThread.RawJSON>) + - [func \(r \*ManagedAgentsSessionThread\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThread.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgent](<#ManagedAgentsSessionThreadAgent>) + - [func \(r ManagedAgentsSessionThreadAgent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadAgent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadAgent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentSkillUnion](<#ManagedAgentsSessionThreadAgentSkillUnion>) + - [func \(u ManagedAgentsSessionThreadAgentSkillUnion\) AsAny\(\) anyManagedAgentsSessionThreadAgentSkill](<#ManagedAgentsSessionThreadAgentSkillUnion.AsAny>) + - [func \(u ManagedAgentsSessionThreadAgentSkillUnion\) AsCustom\(\) \(v ManagedAgentsCustomSkill\)](<#ManagedAgentsSessionThreadAgentSkillUnion.AsCustom>) + - [func \(u ManagedAgentsSessionThreadAgentSkillUnion\) AsQoder\(\) \(v ManagedAgentsQoderSkill\)](<#ManagedAgentsSessionThreadAgentSkillUnion.AsQoder>) + - [func \(u ManagedAgentsSessionThreadAgentSkillUnion\) RawJSON\(\) string](<#ManagedAgentsSessionThreadAgentSkillUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadAgentSkillUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentSkillUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>) + - [func \(u ManagedAgentsSessionThreadAgentToolUnion\) AsAgentToolset20260401\(\) \(v ManagedAgentsAgentToolset20260401\)](<#ManagedAgentsSessionThreadAgentToolUnion.AsAgentToolset20260401>) + - [func \(u ManagedAgentsSessionThreadAgentToolUnion\) AsAny\(\) anyManagedAgentsSessionThreadAgentTool](<#ManagedAgentsSessionThreadAgentToolUnion.AsAny>) + - [func \(u ManagedAgentsSessionThreadAgentToolUnion\) AsCustom\(\) \(v ManagedAgentsCustomTool\)](<#ManagedAgentsSessionThreadAgentToolUnion.AsCustom>) + - [func \(u ManagedAgentsSessionThreadAgentToolUnion\) AsMCPToolset\(\) \(v ManagedAgentsMCPToolset\)](<#ManagedAgentsSessionThreadAgentToolUnion.AsMCPToolset>) + - [func \(u ManagedAgentsSessionThreadAgentToolUnion\) RawJSON\(\) string](<#ManagedAgentsSessionThreadAgentToolUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadAgentToolUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentToolUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentToolUnionConfigs](<#ManagedAgentsSessionThreadAgentToolUnionConfigs>) + - [func \(r \*ManagedAgentsSessionThreadAgentToolUnionConfigs\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentToolUnionConfigs.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentToolUnionDefaultConfig](<#ManagedAgentsSessionThreadAgentToolUnionDefaultConfig>) + - [func \(r \*ManagedAgentsSessionThreadAgentToolUnionDefaultConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentToolUnionDefaultConfig.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy](<#ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy>) + - [func \(r \*ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentType](<#ManagedAgentsSessionThreadAgentType>) +- [type ManagedAgentsSessionThreadAgentUnion](<#ManagedAgentsSessionThreadAgentUnion>) + - [func \(u ManagedAgentsSessionThreadAgentUnion\) AsAdvisor\(\) \(v ManagedAgentsAdvisor\)](<#ManagedAgentsSessionThreadAgentUnion.AsAdvisor>) + - [func \(u ManagedAgentsSessionThreadAgentUnion\) AsAgent\(\) \(v ManagedAgentsSessionThreadAgent\)](<#ManagedAgentsSessionThreadAgentUnion.AsAgent>) + - [func \(u ManagedAgentsSessionThreadAgentUnion\) AsAny\(\) anyManagedAgentsSessionThreadAgent](<#ManagedAgentsSessionThreadAgentUnion.AsAny>) + - [func \(u ManagedAgentsSessionThreadAgentUnion\) RawJSON\(\) string](<#ManagedAgentsSessionThreadAgentUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadAgentUnionModel](<#ManagedAgentsSessionThreadAgentUnionModel>) + - [func \(r \*ManagedAgentsSessionThreadAgentUnionModel\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadAgentUnionModel.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadCreatedEvent](<#ManagedAgentsSessionThreadCreatedEvent>) + - [func \(r ManagedAgentsSessionThreadCreatedEvent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadCreatedEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadCreatedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadCreatedEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadCreatedEventType](<#ManagedAgentsSessionThreadCreatedEventType>) +- [type ManagedAgentsSessionThreadStats](<#ManagedAgentsSessionThreadStats>) + - [func \(r ManagedAgentsSessionThreadStats\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStats.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStats\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStats.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatus](<#ManagedAgentsSessionThreadStatus>) +- [type ManagedAgentsSessionThreadStatusIdleEvent](<#ManagedAgentsSessionThreadStatusIdleEvent>) + - [func \(r ManagedAgentsSessionThreadStatusIdleEvent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStatusIdleEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStatusIdleEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStatusIdleEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) AsAny\(\) anyManagedAgentsSessionThreadStatusIdleEventStopReason](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsAny>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) AsBudgetReached\(\) \(v ManagedAgentsSessionBudgetReached\)](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsBudgetReached>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) AsEndTurn\(\) \(v ManagedAgentsSessionEndTurn\)](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsEndTurn>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) AsRequiresAction\(\) \(v ManagedAgentsSessionRequiresAction\)](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsRequiresAction>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) AsRetriesExhausted\(\) \(v ManagedAgentsSessionRetriesExhausted\)](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsRetriesExhausted>) + - [func \(u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatusIdleEventType](<#ManagedAgentsSessionThreadStatusIdleEventType>) +- [type ManagedAgentsSessionThreadStatusRescheduledEvent](<#ManagedAgentsSessionThreadStatusRescheduledEvent>) + - [func \(r ManagedAgentsSessionThreadStatusRescheduledEvent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStatusRescheduledEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStatusRescheduledEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStatusRescheduledEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatusRescheduledEventType](<#ManagedAgentsSessionThreadStatusRescheduledEventType>) +- [type ManagedAgentsSessionThreadStatusRunningEvent](<#ManagedAgentsSessionThreadStatusRunningEvent>) + - [func \(r ManagedAgentsSessionThreadStatusRunningEvent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStatusRunningEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStatusRunningEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStatusRunningEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatusRunningEventType](<#ManagedAgentsSessionThreadStatusRunningEventType>) +- [type ManagedAgentsSessionThreadStatusTerminatedEvent](<#ManagedAgentsSessionThreadStatusTerminatedEvent>) + - [func \(r ManagedAgentsSessionThreadStatusTerminatedEvent\) RawJSON\(\) string](<#ManagedAgentsSessionThreadStatusTerminatedEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadStatusTerminatedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadStatusTerminatedEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionThreadStatusTerminatedEventType](<#ManagedAgentsSessionThreadStatusTerminatedEventType>) +- [type ManagedAgentsSessionThreadType](<#ManagedAgentsSessionThreadType>) +- [type ManagedAgentsSessionThreadUsage](<#ManagedAgentsSessionThreadUsage>) + - [func \(r ManagedAgentsSessionThreadUsage\) RawJSON\(\) string](<#ManagedAgentsSessionThreadUsage.RawJSON>) + - [func \(r \*ManagedAgentsSessionThreadUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionThreadUsage.UnmarshalJSON>) +- [type ManagedAgentsSessionType](<#ManagedAgentsSessionType>) +- [type ManagedAgentsSessionUpdatedEvent](<#ManagedAgentsSessionUpdatedEvent>) + - [func \(r ManagedAgentsSessionUpdatedEvent\) RawJSON\(\) string](<#ManagedAgentsSessionUpdatedEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionUpdatedEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionUpdatedEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionUpdatedEventType](<#ManagedAgentsSessionUpdatedEventType>) +- [type ManagedAgentsSessionUsage](<#ManagedAgentsSessionUsage>) + - [func \(r ManagedAgentsSessionUsage\) RawJSON\(\) string](<#ManagedAgentsSessionUsage.RawJSON>) + - [func \(r \*ManagedAgentsSessionUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionUsage.UnmarshalJSON>) +- [type ManagedAgentsSessionUsageEvent](<#ManagedAgentsSessionUsageEvent>) + - [func \(r ManagedAgentsSessionUsageEvent\) RawJSON\(\) string](<#ManagedAgentsSessionUsageEvent.RawJSON>) + - [func \(r \*ManagedAgentsSessionUsageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionUsageEvent.UnmarshalJSON>) +- [type ManagedAgentsSessionUsageEventType](<#ManagedAgentsSessionUsageEventType>) +- [type ManagedAgentsSessionUsageSnapshot](<#ManagedAgentsSessionUsageSnapshot>) + - [func \(r ManagedAgentsSessionUsageSnapshot\) RawJSON\(\) string](<#ManagedAgentsSessionUsageSnapshot.RawJSON>) + - [func \(r \*ManagedAgentsSessionUsageSnapshot\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSessionUsageSnapshot.UnmarshalJSON>) +- [type ManagedAgentsSkillNotFoundDeploymentPausedReasonError](<#ManagedAgentsSkillNotFoundDeploymentPausedReasonError>) + - [func \(r ManagedAgentsSkillNotFoundDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsSkillNotFoundDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsSkillNotFoundDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSkillNotFoundDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType](<#ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType>) +- [type ManagedAgentsSkillNotFoundRunError](<#ManagedAgentsSkillNotFoundRunError>) + - [func \(r ManagedAgentsSkillNotFoundRunError\) RawJSON\(\) string](<#ManagedAgentsSkillNotFoundRunError.RawJSON>) + - [func \(r \*ManagedAgentsSkillNotFoundRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSkillNotFoundRunError.UnmarshalJSON>) +- [type ManagedAgentsSkillNotFoundRunErrorType](<#ManagedAgentsSkillNotFoundRunErrorType>) +- [type ManagedAgentsSkillParamsUnion](<#ManagedAgentsSkillParamsUnion>) + - [func ManagedAgentsSkillParamsOfCustom\(skillID string\) ManagedAgentsSkillParamsUnion](<#ManagedAgentsSkillParamsOfCustom>) + - [func ManagedAgentsSkillParamsOfQoder\(skillID string\) ManagedAgentsSkillParamsUnion](<#ManagedAgentsSkillParamsOfQoder>) + - [func \(u ManagedAgentsSkillParamsUnion\) GetSkillID\(\) \*string](<#ManagedAgentsSkillParamsUnion.GetSkillID>) + - [func \(u ManagedAgentsSkillParamsUnion\) GetType\(\) \*string](<#ManagedAgentsSkillParamsUnion.GetType>) + - [func \(u ManagedAgentsSkillParamsUnion\) GetVersion\(\) \*string](<#ManagedAgentsSkillParamsUnion.GetVersion>) + - [func \(u ManagedAgentsSkillParamsUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsSkillParamsUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsSkillParamsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSkillParamsUnion.UnmarshalJSON>) +- [type ManagedAgentsSpanModelRequestEndEvent](<#ManagedAgentsSpanModelRequestEndEvent>) + - [func \(r ManagedAgentsSpanModelRequestEndEvent\) RawJSON\(\) string](<#ManagedAgentsSpanModelRequestEndEvent.RawJSON>) + - [func \(r \*ManagedAgentsSpanModelRequestEndEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanModelRequestEndEvent.UnmarshalJSON>) +- [type ManagedAgentsSpanModelRequestEndEventType](<#ManagedAgentsSpanModelRequestEndEventType>) +- [type ManagedAgentsSpanModelRequestStartEvent](<#ManagedAgentsSpanModelRequestStartEvent>) + - [func \(r ManagedAgentsSpanModelRequestStartEvent\) RawJSON\(\) string](<#ManagedAgentsSpanModelRequestStartEvent.RawJSON>) + - [func \(r \*ManagedAgentsSpanModelRequestStartEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanModelRequestStartEvent.UnmarshalJSON>) +- [type ManagedAgentsSpanModelRequestStartEventType](<#ManagedAgentsSpanModelRequestStartEventType>) +- [type ManagedAgentsSpanModelUsage](<#ManagedAgentsSpanModelUsage>) + - [func \(r ManagedAgentsSpanModelUsage\) RawJSON\(\) string](<#ManagedAgentsSpanModelUsage.RawJSON>) + - [func \(r \*ManagedAgentsSpanModelUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanModelUsage.UnmarshalJSON>) +- [type ManagedAgentsSpanModelUsageSpeed](<#ManagedAgentsSpanModelUsageSpeed>) +- [type ManagedAgentsSpanOutcomeEvaluationEndEvent](<#ManagedAgentsSpanOutcomeEvaluationEndEvent>) + - [func \(r ManagedAgentsSpanOutcomeEvaluationEndEvent\) RawJSON\(\) string](<#ManagedAgentsSpanOutcomeEvaluationEndEvent.RawJSON>) + - [func \(r \*ManagedAgentsSpanOutcomeEvaluationEndEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanOutcomeEvaluationEndEvent.UnmarshalJSON>) +- [type ManagedAgentsSpanOutcomeEvaluationEndEventType](<#ManagedAgentsSpanOutcomeEvaluationEndEventType>) +- [type ManagedAgentsSpanOutcomeEvaluationOngoingEvent](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent>) + - [func \(r ManagedAgentsSpanOutcomeEvaluationOngoingEvent\) RawJSON\(\) string](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent.RawJSON>) + - [func \(r \*ManagedAgentsSpanOutcomeEvaluationOngoingEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent.UnmarshalJSON>) +- [type ManagedAgentsSpanOutcomeEvaluationOngoingEventType](<#ManagedAgentsSpanOutcomeEvaluationOngoingEventType>) +- [type ManagedAgentsSpanOutcomeEvaluationStartEvent](<#ManagedAgentsSpanOutcomeEvaluationStartEvent>) + - [func \(r ManagedAgentsSpanOutcomeEvaluationStartEvent\) RawJSON\(\) string](<#ManagedAgentsSpanOutcomeEvaluationStartEvent.RawJSON>) + - [func \(r \*ManagedAgentsSpanOutcomeEvaluationStartEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSpanOutcomeEvaluationStartEvent.UnmarshalJSON>) +- [type ManagedAgentsSpanOutcomeEvaluationStartEventType](<#ManagedAgentsSpanOutcomeEvaluationStartEventType>) +- [type ManagedAgentsStartEvent](<#ManagedAgentsStartEvent>) + - [func \(r ManagedAgentsStartEvent\) RawJSON\(\) string](<#ManagedAgentsStartEvent.RawJSON>) + - [func \(r \*ManagedAgentsStartEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStartEvent.UnmarshalJSON>) +- [type ManagedAgentsStartEventPreviewUnion](<#ManagedAgentsStartEventPreviewUnion>) + - [func \(u ManagedAgentsStartEventPreviewUnion\) AsAgentMessage\(\) \(v ManagedAgentsAgentMessagePreview\)](<#ManagedAgentsStartEventPreviewUnion.AsAgentMessage>) + - [func \(u ManagedAgentsStartEventPreviewUnion\) AsAgentThinking\(\) \(v ManagedAgentsAgentThinkingPreview\)](<#ManagedAgentsStartEventPreviewUnion.AsAgentThinking>) + - [func \(u ManagedAgentsStartEventPreviewUnion\) AsAny\(\) anyManagedAgentsStartEventPreview](<#ManagedAgentsStartEventPreviewUnion.AsAny>) + - [func \(u ManagedAgentsStartEventPreviewUnion\) RawJSON\(\) string](<#ManagedAgentsStartEventPreviewUnion.RawJSON>) + - [func \(r \*ManagedAgentsStartEventPreviewUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStartEventPreviewUnion.UnmarshalJSON>) +- [type ManagedAgentsStartEventType](<#ManagedAgentsStartEventType>) +- [type ManagedAgentsStaticBearerAuthResponse](<#ManagedAgentsStaticBearerAuthResponse>) + - [func \(r ManagedAgentsStaticBearerAuthResponse\) RawJSON\(\) string](<#ManagedAgentsStaticBearerAuthResponse.RawJSON>) + - [func \(r \*ManagedAgentsStaticBearerAuthResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStaticBearerAuthResponse.UnmarshalJSON>) +- [type ManagedAgentsStaticBearerAuthResponseType](<#ManagedAgentsStaticBearerAuthResponseType>) +- [type ManagedAgentsStaticBearerCreateParams](<#ManagedAgentsStaticBearerCreateParams>) + - [func \(r ManagedAgentsStaticBearerCreateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsStaticBearerCreateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsStaticBearerCreateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStaticBearerCreateParams.UnmarshalJSON>) +- [type ManagedAgentsStaticBearerCreateParamsType](<#ManagedAgentsStaticBearerCreateParamsType>) +- [type ManagedAgentsStaticBearerUpdateParams](<#ManagedAgentsStaticBearerUpdateParams>) + - [func \(r ManagedAgentsStaticBearerUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsStaticBearerUpdateParams.MarshalJSON>) + - [func \(r \*ManagedAgentsStaticBearerUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStaticBearerUpdateParams.UnmarshalJSON>) +- [type ManagedAgentsStaticBearerUpdateParamsType](<#ManagedAgentsStaticBearerUpdateParamsType>) +- [type ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentCustomToolUse\(\) \(v ManagedAgentsAgentCustomToolUseEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentCustomToolUse>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentMCPToolResult\(\) \(v ManagedAgentsAgentMCPToolResultEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentMCPToolResult>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentMCPToolUse\(\) \(v ManagedAgentsAgentMCPToolUseEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentMCPToolUse>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentMessage\(\) \(v ManagedAgentsAgentMessageEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentMessage>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentThinking\(\) \(v ManagedAgentsAgentThinkingEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentThinking>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentThreadContextCompacted\(\) \(v ManagedAgentsAgentThreadContextCompactedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentThreadContextCompacted>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentThreadMessageReceived\(\) \(v ManagedAgentsAgentThreadMessageReceivedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentThreadMessageReceived>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentThreadMessageSent\(\) \(v ManagedAgentsAgentThreadMessageSentEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentThreadMessageSent>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentToolResult\(\) \(v ManagedAgentsAgentToolResultEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentToolResult>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAgentToolUse\(\) \(v ManagedAgentsAgentToolUseEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsAgentToolUse>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsAny\(\) anyManagedAgentsStreamSessionEvents](<#ManagedAgentsStreamSessionEventsUnion.AsAny>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsEventDelta\(\) \(v ManagedAgentsDeltaEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsEventDelta>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsEventStart\(\) \(v ManagedAgentsStartEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsEventStart>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionDeleted\(\) \(v ManagedAgentsSessionDeletedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionDeleted>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionError\(\) \(v ManagedAgentsSessionErrorEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionError>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionStatusIdle\(\) \(v ManagedAgentsSessionStatusIdleEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionStatusIdle>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionStatusRescheduled\(\) \(v ManagedAgentsSessionStatusRescheduledEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionStatusRescheduled>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionStatusRunning\(\) \(v ManagedAgentsSessionStatusRunningEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionStatusRunning>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionStatusTerminated\(\) \(v ManagedAgentsSessionStatusTerminatedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionStatusTerminated>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionThreadCreated\(\) \(v ManagedAgentsSessionThreadCreatedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionThreadCreated>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionThreadStatusIdle\(\) \(v ManagedAgentsSessionThreadStatusIdleEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionThreadStatusIdle>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionThreadStatusRescheduled\(\) \(v ManagedAgentsSessionThreadStatusRescheduledEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionThreadStatusRescheduled>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionThreadStatusRunning\(\) \(v ManagedAgentsSessionThreadStatusRunningEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionThreadStatusRunning>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionThreadStatusTerminated\(\) \(v ManagedAgentsSessionThreadStatusTerminatedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionThreadStatusTerminated>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionUpdated\(\) \(v ManagedAgentsSessionUpdatedEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionUpdated>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSessionUsage\(\) \(v ManagedAgentsSessionUsageEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSessionUsage>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSpanModelRequestEnd\(\) \(v ManagedAgentsSpanModelRequestEndEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSpanModelRequestEnd>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSpanModelRequestStart\(\) \(v ManagedAgentsSpanModelRequestStartEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSpanModelRequestStart>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSpanOutcomeEvaluationEnd\(\) \(v ManagedAgentsSpanOutcomeEvaluationEndEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSpanOutcomeEvaluationEnd>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSpanOutcomeEvaluationOngoing\(\) \(v ManagedAgentsSpanOutcomeEvaluationOngoingEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSpanOutcomeEvaluationOngoing>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSpanOutcomeEvaluationStart\(\) \(v ManagedAgentsSpanOutcomeEvaluationStartEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSpanOutcomeEvaluationStart>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsSystemMessage\(\) \(v ManagedAgentsSystemMessageEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsSystemMessage>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserCustomToolResult\(\) \(v ManagedAgentsUserCustomToolResultEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserCustomToolResult>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserDefineOutcome\(\) \(v ManagedAgentsUserDefineOutcomeEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserDefineOutcome>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserInterrupt\(\) \(v ManagedAgentsUserInterruptEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserInterrupt>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserMessage\(\) \(v ManagedAgentsUserMessageEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserMessage>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserToolConfirmation\(\) \(v ManagedAgentsUserToolConfirmationEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserToolConfirmation>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) AsUserToolResult\(\) \(v ManagedAgentsUserToolResultEvent\)](<#ManagedAgentsStreamSessionEventsUnion.AsUserToolResult>) + - [func \(u ManagedAgentsStreamSessionEventsUnion\) RawJSON\(\) string](<#ManagedAgentsStreamSessionEventsUnion.RawJSON>) + - [func \(r \*ManagedAgentsStreamSessionEventsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionEventsUnion.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionEventsUnionContent](<#ManagedAgentsStreamSessionEventsUnionContent>) + - [func \(r \*ManagedAgentsStreamSessionEventsUnionContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionEventsUnionContent.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionEventsUnionStopReason](<#ManagedAgentsStreamSessionEventsUnionStopReason>) + - [func \(r \*ManagedAgentsStreamSessionEventsUnionStopReason\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionEventsUnionStopReason.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionEventsUnionUsage](<#ManagedAgentsStreamSessionEventsUnionUsage>) + - [func \(r \*ManagedAgentsStreamSessionEventsUnionUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionEventsUnionUsage.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentCustomToolUse\(\) \(v ManagedAgentsAgentCustomToolUseEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentCustomToolUse>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentMCPToolResult\(\) \(v ManagedAgentsAgentMCPToolResultEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentMCPToolResult>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentMCPToolUse\(\) \(v ManagedAgentsAgentMCPToolUseEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentMCPToolUse>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentMessage\(\) \(v ManagedAgentsAgentMessageEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentMessage>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentThinking\(\) \(v ManagedAgentsAgentThinkingEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentThinking>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentThreadContextCompacted\(\) \(v ManagedAgentsAgentThreadContextCompactedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentThreadContextCompacted>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentThreadMessageReceived\(\) \(v ManagedAgentsAgentThreadMessageReceivedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentThreadMessageReceived>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentThreadMessageSent\(\) \(v ManagedAgentsAgentThreadMessageSentEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentThreadMessageSent>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentToolResult\(\) \(v ManagedAgentsAgentToolResultEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentToolResult>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAgentToolUse\(\) \(v ManagedAgentsAgentToolUseEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAgentToolUse>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsAny\(\) anyManagedAgentsStreamSessionThreadEvents](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAny>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsEventDelta\(\) \(v ManagedAgentsDeltaEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsEventDelta>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsEventStart\(\) \(v ManagedAgentsStartEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsEventStart>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionDeleted\(\) \(v ManagedAgentsSessionDeletedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionDeleted>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionError\(\) \(v ManagedAgentsSessionErrorEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionError>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionStatusIdle\(\) \(v ManagedAgentsSessionStatusIdleEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionStatusIdle>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionStatusRescheduled\(\) \(v ManagedAgentsSessionStatusRescheduledEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionStatusRescheduled>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionStatusRunning\(\) \(v ManagedAgentsSessionStatusRunningEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionStatusRunning>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionStatusTerminated\(\) \(v ManagedAgentsSessionStatusTerminatedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionStatusTerminated>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionThreadCreated\(\) \(v ManagedAgentsSessionThreadCreatedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionThreadCreated>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionThreadStatusIdle\(\) \(v ManagedAgentsSessionThreadStatusIdleEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionThreadStatusIdle>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionThreadStatusRescheduled\(\) \(v ManagedAgentsSessionThreadStatusRescheduledEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionThreadStatusRescheduled>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionThreadStatusRunning\(\) \(v ManagedAgentsSessionThreadStatusRunningEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionThreadStatusRunning>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionThreadStatusTerminated\(\) \(v ManagedAgentsSessionThreadStatusTerminatedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionThreadStatusTerminated>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionUpdated\(\) \(v ManagedAgentsSessionUpdatedEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionUpdated>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSessionUsage\(\) \(v ManagedAgentsSessionUsageEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSessionUsage>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSpanModelRequestEnd\(\) \(v ManagedAgentsSpanModelRequestEndEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSpanModelRequestEnd>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSpanModelRequestStart\(\) \(v ManagedAgentsSpanModelRequestStartEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSpanModelRequestStart>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSpanOutcomeEvaluationEnd\(\) \(v ManagedAgentsSpanOutcomeEvaluationEndEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSpanOutcomeEvaluationEnd>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSpanOutcomeEvaluationOngoing\(\) \(v ManagedAgentsSpanOutcomeEvaluationOngoingEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSpanOutcomeEvaluationOngoing>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSpanOutcomeEvaluationStart\(\) \(v ManagedAgentsSpanOutcomeEvaluationStartEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSpanOutcomeEvaluationStart>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsSystemMessage\(\) \(v ManagedAgentsSystemMessageEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsSystemMessage>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserCustomToolResult\(\) \(v ManagedAgentsUserCustomToolResultEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserCustomToolResult>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserDefineOutcome\(\) \(v ManagedAgentsUserDefineOutcomeEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserDefineOutcome>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserInterrupt\(\) \(v ManagedAgentsUserInterruptEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserInterrupt>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserMessage\(\) \(v ManagedAgentsUserMessageEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserMessage>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserToolConfirmation\(\) \(v ManagedAgentsUserToolConfirmationEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserToolConfirmation>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) AsUserToolResult\(\) \(v ManagedAgentsUserToolResultEvent\)](<#ManagedAgentsStreamSessionThreadEventsUnion.AsUserToolResult>) + - [func \(u ManagedAgentsStreamSessionThreadEventsUnion\) RawJSON\(\) string](<#ManagedAgentsStreamSessionThreadEventsUnion.RawJSON>) + - [func \(r \*ManagedAgentsStreamSessionThreadEventsUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionThreadEventsUnion.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionThreadEventsUnionContent](<#ManagedAgentsStreamSessionThreadEventsUnionContent>) + - [func \(r \*ManagedAgentsStreamSessionThreadEventsUnionContent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionThreadEventsUnionContent.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionThreadEventsUnionStopReason](<#ManagedAgentsStreamSessionThreadEventsUnionStopReason>) + - [func \(r \*ManagedAgentsStreamSessionThreadEventsUnionStopReason\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionThreadEventsUnionStopReason.UnmarshalJSON>) +- [type ManagedAgentsStreamSessionThreadEventsUnionUsage](<#ManagedAgentsStreamSessionThreadEventsUnionUsage>) + - [func \(r \*ManagedAgentsStreamSessionThreadEventsUnionUsage\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsStreamSessionThreadEventsUnionUsage.UnmarshalJSON>) +- [type ManagedAgentsSystemContentBlock](<#ManagedAgentsSystemContentBlock>) + - [func \(r ManagedAgentsSystemContentBlock\) RawJSON\(\) string](<#ManagedAgentsSystemContentBlock.RawJSON>) + - [func \(r ManagedAgentsSystemContentBlock\) ToParam\(\) ManagedAgentsSystemContentBlockParam](<#ManagedAgentsSystemContentBlock.ToParam>) + - [func \(r \*ManagedAgentsSystemContentBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSystemContentBlock.UnmarshalJSON>) +- [type ManagedAgentsSystemContentBlockParam](<#ManagedAgentsSystemContentBlockParam>) + - [func \(r ManagedAgentsSystemContentBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSystemContentBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsSystemContentBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSystemContentBlockParam.UnmarshalJSON>) +- [type ManagedAgentsSystemContentBlockType](<#ManagedAgentsSystemContentBlockType>) +- [type ManagedAgentsSystemMessageEvent](<#ManagedAgentsSystemMessageEvent>) + - [func \(r ManagedAgentsSystemMessageEvent\) RawJSON\(\) string](<#ManagedAgentsSystemMessageEvent.RawJSON>) + - [func \(r \*ManagedAgentsSystemMessageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSystemMessageEvent.UnmarshalJSON>) +- [type ManagedAgentsSystemMessageEventParams](<#ManagedAgentsSystemMessageEventParams>) + - [func \(r ManagedAgentsSystemMessageEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsSystemMessageEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsSystemMessageEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsSystemMessageEventParams.UnmarshalJSON>) +- [type ManagedAgentsSystemMessageEventParamsType](<#ManagedAgentsSystemMessageEventParamsType>) +- [type ManagedAgentsSystemMessageEventType](<#ManagedAgentsSystemMessageEventType>) +- [type ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>) + - [func \(r ManagedAgentsTextBlock\) RawJSON\(\) string](<#ManagedAgentsTextBlock.RawJSON>) + - [func \(r ManagedAgentsTextBlock\) ToParam\(\) ManagedAgentsTextBlockParam](<#ManagedAgentsTextBlock.ToParam>) + - [func \(r \*ManagedAgentsTextBlock\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTextBlock.UnmarshalJSON>) +- [type ManagedAgentsTextBlockParam](<#ManagedAgentsTextBlockParam>) + - [func \(r ManagedAgentsTextBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTextBlockParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTextBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTextBlockParam.UnmarshalJSON>) +- [type ManagedAgentsTextBlockType](<#ManagedAgentsTextBlockType>) +- [type ManagedAgentsTextRubric](<#ManagedAgentsTextRubric>) + - [func \(r ManagedAgentsTextRubric\) RawJSON\(\) string](<#ManagedAgentsTextRubric.RawJSON>) + - [func \(r \*ManagedAgentsTextRubric\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTextRubric.UnmarshalJSON>) +- [type ManagedAgentsTextRubricParams](<#ManagedAgentsTextRubricParams>) + - [func \(r ManagedAgentsTextRubricParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTextRubricParams.MarshalJSON>) + - [func \(r \*ManagedAgentsTextRubricParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTextRubricParams.UnmarshalJSON>) +- [type ManagedAgentsTextRubricParamsType](<#ManagedAgentsTextRubricParamsType>) +- [type ManagedAgentsTextRubricType](<#ManagedAgentsTextRubricType>) +- [type ManagedAgentsTokenEndpointAuthBasicParam](<#ManagedAgentsTokenEndpointAuthBasicParam>) + - [func \(r ManagedAgentsTokenEndpointAuthBasicParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTokenEndpointAuthBasicParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthBasicParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthBasicParam.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthBasicParamType](<#ManagedAgentsTokenEndpointAuthBasicParamType>) +- [type ManagedAgentsTokenEndpointAuthBasicResponse](<#ManagedAgentsTokenEndpointAuthBasicResponse>) + - [func \(r ManagedAgentsTokenEndpointAuthBasicResponse\) RawJSON\(\) string](<#ManagedAgentsTokenEndpointAuthBasicResponse.RawJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthBasicResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthBasicResponse.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthBasicResponseType](<#ManagedAgentsTokenEndpointAuthBasicResponseType>) +- [type ManagedAgentsTokenEndpointAuthBasicUpdateParam](<#ManagedAgentsTokenEndpointAuthBasicUpdateParam>) + - [func \(r ManagedAgentsTokenEndpointAuthBasicUpdateParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTokenEndpointAuthBasicUpdateParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthBasicUpdateParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthBasicUpdateParam.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthBasicUpdateParamType](<#ManagedAgentsTokenEndpointAuthBasicUpdateParamType>) +- [type ManagedAgentsTokenEndpointAuthNoneParam](<#ManagedAgentsTokenEndpointAuthNoneParam>) + - [func \(r ManagedAgentsTokenEndpointAuthNoneParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTokenEndpointAuthNoneParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthNoneParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthNoneParam.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthNoneParamType](<#ManagedAgentsTokenEndpointAuthNoneParamType>) +- [type ManagedAgentsTokenEndpointAuthNoneResponse](<#ManagedAgentsTokenEndpointAuthNoneResponse>) + - [func \(r ManagedAgentsTokenEndpointAuthNoneResponse\) RawJSON\(\) string](<#ManagedAgentsTokenEndpointAuthNoneResponse.RawJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthNoneResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthNoneResponse.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthNoneResponseType](<#ManagedAgentsTokenEndpointAuthNoneResponseType>) +- [type ManagedAgentsTokenEndpointAuthPostParam](<#ManagedAgentsTokenEndpointAuthPostParam>) + - [func \(r ManagedAgentsTokenEndpointAuthPostParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTokenEndpointAuthPostParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthPostParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthPostParam.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthPostParamType](<#ManagedAgentsTokenEndpointAuthPostParamType>) +- [type ManagedAgentsTokenEndpointAuthPostResponse](<#ManagedAgentsTokenEndpointAuthPostResponse>) + - [func \(r ManagedAgentsTokenEndpointAuthPostResponse\) RawJSON\(\) string](<#ManagedAgentsTokenEndpointAuthPostResponse.RawJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthPostResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthPostResponse.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthPostResponseType](<#ManagedAgentsTokenEndpointAuthPostResponseType>) +- [type ManagedAgentsTokenEndpointAuthPostUpdateParam](<#ManagedAgentsTokenEndpointAuthPostUpdateParam>) + - [func \(r ManagedAgentsTokenEndpointAuthPostUpdateParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsTokenEndpointAuthPostUpdateParam.MarshalJSON>) + - [func \(r \*ManagedAgentsTokenEndpointAuthPostUpdateParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTokenEndpointAuthPostUpdateParam.UnmarshalJSON>) +- [type ManagedAgentsTokenEndpointAuthPostUpdateParamType](<#ManagedAgentsTokenEndpointAuthPostUpdateParamType>) +- [type ManagedAgentsTriggerContextUnion](<#ManagedAgentsTriggerContextUnion>) + - [func \(u ManagedAgentsTriggerContextUnion\) AsAny\(\) anyManagedAgentsTriggerContext](<#ManagedAgentsTriggerContextUnion.AsAny>) + - [func \(u ManagedAgentsTriggerContextUnion\) AsManual\(\) \(v ManagedAgentsManualTriggerContext\)](<#ManagedAgentsTriggerContextUnion.AsManual>) + - [func \(u ManagedAgentsTriggerContextUnion\) AsSchedule\(\) \(v ManagedAgentsScheduleTriggerContext\)](<#ManagedAgentsTriggerContextUnion.AsSchedule>) + - [func \(u ManagedAgentsTriggerContextUnion\) RawJSON\(\) string](<#ManagedAgentsTriggerContextUnion.RawJSON>) + - [func \(r \*ManagedAgentsTriggerContextUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsTriggerContextUnion.UnmarshalJSON>) +- [type ManagedAgentsTriggerType](<#ManagedAgentsTriggerType>) +- [type ManagedAgentsURLDocumentSource](<#ManagedAgentsURLDocumentSource>) + - [func \(r ManagedAgentsURLDocumentSource\) RawJSON\(\) string](<#ManagedAgentsURLDocumentSource.RawJSON>) + - [func \(r ManagedAgentsURLDocumentSource\) ToParam\(\) ManagedAgentsURLDocumentSourceParam](<#ManagedAgentsURLDocumentSource.ToParam>) + - [func \(r \*ManagedAgentsURLDocumentSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsURLDocumentSource.UnmarshalJSON>) +- [type ManagedAgentsURLDocumentSourceParam](<#ManagedAgentsURLDocumentSourceParam>) + - [func \(r ManagedAgentsURLDocumentSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsURLDocumentSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsURLDocumentSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsURLDocumentSourceParam.UnmarshalJSON>) +- [type ManagedAgentsURLDocumentSourceType](<#ManagedAgentsURLDocumentSourceType>) +- [type ManagedAgentsURLImageSource](<#ManagedAgentsURLImageSource>) + - [func \(r ManagedAgentsURLImageSource\) RawJSON\(\) string](<#ManagedAgentsURLImageSource.RawJSON>) + - [func \(r ManagedAgentsURLImageSource\) ToParam\(\) ManagedAgentsURLImageSourceParam](<#ManagedAgentsURLImageSource.ToParam>) + - [func \(r \*ManagedAgentsURLImageSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsURLImageSource.UnmarshalJSON>) +- [type ManagedAgentsURLImageSourceParam](<#ManagedAgentsURLImageSourceParam>) + - [func \(r ManagedAgentsURLImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsURLImageSourceParam.MarshalJSON>) + - [func \(r \*ManagedAgentsURLImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsURLImageSourceParam.UnmarshalJSON>) +- [type ManagedAgentsURLImageSourceType](<#ManagedAgentsURLImageSourceType>) +- [type ManagedAgentsURLMCPServerParams](<#ManagedAgentsURLMCPServerParams>) + - [func \(r ManagedAgentsURLMCPServerParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsURLMCPServerParams.MarshalJSON>) + - [func \(r \*ManagedAgentsURLMCPServerParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsURLMCPServerParams.UnmarshalJSON>) +- [type ManagedAgentsURLMCPServerParamsType](<#ManagedAgentsURLMCPServerParamsType>) +- [type ManagedAgentsUnknownDeploymentPausedReasonError](<#ManagedAgentsUnknownDeploymentPausedReasonError>) + - [func \(r ManagedAgentsUnknownDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsUnknownDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsUnknownDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnknownDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsUnknownDeploymentPausedReasonErrorType](<#ManagedAgentsUnknownDeploymentPausedReasonErrorType>) +- [type ManagedAgentsUnknownError](<#ManagedAgentsUnknownError>) + - [func \(r ManagedAgentsUnknownError\) RawJSON\(\) string](<#ManagedAgentsUnknownError.RawJSON>) + - [func \(r \*ManagedAgentsUnknownError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnknownError.UnmarshalJSON>) +- [type ManagedAgentsUnknownErrorRetryStatusUnion](<#ManagedAgentsUnknownErrorRetryStatusUnion>) + - [func \(u ManagedAgentsUnknownErrorRetryStatusUnion\) AsAny\(\) anyManagedAgentsUnknownErrorRetryStatus](<#ManagedAgentsUnknownErrorRetryStatusUnion.AsAny>) + - [func \(u ManagedAgentsUnknownErrorRetryStatusUnion\) AsExhausted\(\) \(v ManagedAgentsRetryStatusExhausted\)](<#ManagedAgentsUnknownErrorRetryStatusUnion.AsExhausted>) + - [func \(u ManagedAgentsUnknownErrorRetryStatusUnion\) AsRetrying\(\) \(v ManagedAgentsRetryStatusRetrying\)](<#ManagedAgentsUnknownErrorRetryStatusUnion.AsRetrying>) + - [func \(u ManagedAgentsUnknownErrorRetryStatusUnion\) AsTerminal\(\) \(v ManagedAgentsRetryStatusTerminal\)](<#ManagedAgentsUnknownErrorRetryStatusUnion.AsTerminal>) + - [func \(u ManagedAgentsUnknownErrorRetryStatusUnion\) RawJSON\(\) string](<#ManagedAgentsUnknownErrorRetryStatusUnion.RawJSON>) + - [func \(r \*ManagedAgentsUnknownErrorRetryStatusUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnknownErrorRetryStatusUnion.UnmarshalJSON>) +- [type ManagedAgentsUnknownErrorType](<#ManagedAgentsUnknownErrorType>) +- [type ManagedAgentsUnknownRunError](<#ManagedAgentsUnknownRunError>) + - [func \(r ManagedAgentsUnknownRunError\) RawJSON\(\) string](<#ManagedAgentsUnknownRunError.RawJSON>) + - [func \(r \*ManagedAgentsUnknownRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnknownRunError.UnmarshalJSON>) +- [type ManagedAgentsUnknownRunErrorType](<#ManagedAgentsUnknownRunErrorType>) +- [type ManagedAgentsUnrestrictedCredentialNetworkingParams](<#ManagedAgentsUnrestrictedCredentialNetworkingParams>) + - [func \(r ManagedAgentsUnrestrictedCredentialNetworkingParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUnrestrictedCredentialNetworkingParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUnrestrictedCredentialNetworkingParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnrestrictedCredentialNetworkingParams.UnmarshalJSON>) +- [type ManagedAgentsUnrestrictedCredentialNetworkingParamsType](<#ManagedAgentsUnrestrictedCredentialNetworkingParamsType>) +- [type ManagedAgentsUnrestrictedCredentialNetworkingResponse](<#ManagedAgentsUnrestrictedCredentialNetworkingResponse>) + - [func \(r ManagedAgentsUnrestrictedCredentialNetworkingResponse\) RawJSON\(\) string](<#ManagedAgentsUnrestrictedCredentialNetworkingResponse.RawJSON>) + - [func \(r \*ManagedAgentsUnrestrictedCredentialNetworkingResponse\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUnrestrictedCredentialNetworkingResponse.UnmarshalJSON>) +- [type ManagedAgentsUnrestrictedCredentialNetworkingResponseType](<#ManagedAgentsUnrestrictedCredentialNetworkingResponseType>) +- [type ManagedAgentsUserActor](<#ManagedAgentsUserActor>) + - [func \(r ManagedAgentsUserActor\) RawJSON\(\) string](<#ManagedAgentsUserActor.RawJSON>) + - [func \(r \*ManagedAgentsUserActor\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserActor.UnmarshalJSON>) +- [type ManagedAgentsUserActorType](<#ManagedAgentsUserActorType>) +- [type ManagedAgentsUserCustomToolResultEvent](<#ManagedAgentsUserCustomToolResultEvent>) + - [func \(r ManagedAgentsUserCustomToolResultEvent\) RawJSON\(\) string](<#ManagedAgentsUserCustomToolResultEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserCustomToolResultEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserCustomToolResultEvent.UnmarshalJSON>) +- [type ManagedAgentsUserCustomToolResultEventContentUnion](<#ManagedAgentsUserCustomToolResultEventContentUnion>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) AsAny\(\) anyManagedAgentsUserCustomToolResultEventContent](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsAny>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsImage>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) AsSearchResult\(\) \(v ManagedAgentsSearchResultBlock\)](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsSearchResult>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsText>) + - [func \(u ManagedAgentsUserCustomToolResultEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsUserCustomToolResultEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsUserCustomToolResultEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserCustomToolResultEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserCustomToolResultEventContentUnionSource](<#ManagedAgentsUserCustomToolResultEventContentUnionSource>) + - [func \(r \*ManagedAgentsUserCustomToolResultEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserCustomToolResultEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsUserCustomToolResultEventParams](<#ManagedAgentsUserCustomToolResultEventParams>) + - [func \(r ManagedAgentsUserCustomToolResultEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserCustomToolResultEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserCustomToolResultEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserCustomToolResultEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserCustomToolResultEventParamsContentUnion](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetCitations\(\) \*ManagedAgentsSearchResultCitationsParam](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetCitations>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetContent\(\) \[\]ManagedAgentsSearchResultContentParam](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetContent>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetContext\(\) \*string](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetContext>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetSource\(\) \(res managedAgentsUserCustomToolResultEventParamsContentUnionSource\)](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetSource>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetText\(\) \*string](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetText>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetTitle\(\) \*string](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetTitle>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) GetType\(\) \*string](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.GetType>) + - [func \(u ManagedAgentsUserCustomToolResultEventParamsContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsUserCustomToolResultEventParamsContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserCustomToolResultEventParamsContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserCustomToolResultEventParamsType](<#ManagedAgentsUserCustomToolResultEventParamsType>) +- [type ManagedAgentsUserCustomToolResultEventType](<#ManagedAgentsUserCustomToolResultEventType>) +- [type ManagedAgentsUserDefineOutcomeEvent](<#ManagedAgentsUserDefineOutcomeEvent>) + - [func \(r ManagedAgentsUserDefineOutcomeEvent\) RawJSON\(\) string](<#ManagedAgentsUserDefineOutcomeEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserDefineOutcomeEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserDefineOutcomeEvent.UnmarshalJSON>) +- [type ManagedAgentsUserDefineOutcomeEventParams](<#ManagedAgentsUserDefineOutcomeEventParams>) + - [func \(r ManagedAgentsUserDefineOutcomeEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserDefineOutcomeEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserDefineOutcomeEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserDefineOutcomeEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserDefineOutcomeEventParamsRubricUnion](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion>) + - [func \(u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) GetContent\(\) \*string](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion.GetContent>) + - [func \(u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) GetFileID\(\) \*string](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion.GetFileID>) + - [func \(u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) GetType\(\) \*string](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion.GetType>) + - [func \(u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserDefineOutcomeEventParamsRubricUnion.UnmarshalJSON>) +- [type ManagedAgentsUserDefineOutcomeEventParamsType](<#ManagedAgentsUserDefineOutcomeEventParamsType>) +- [type ManagedAgentsUserDefineOutcomeEventRubricUnion](<#ManagedAgentsUserDefineOutcomeEventRubricUnion>) + - [func \(u ManagedAgentsUserDefineOutcomeEventRubricUnion\) AsAny\(\) anyManagedAgentsUserDefineOutcomeEventRubric](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.AsAny>) + - [func \(u ManagedAgentsUserDefineOutcomeEventRubricUnion\) AsFile\(\) \(v ManagedAgentsFileRubric\)](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.AsFile>) + - [func \(u ManagedAgentsUserDefineOutcomeEventRubricUnion\) AsText\(\) \(v ManagedAgentsTextRubric\)](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.AsText>) + - [func \(u ManagedAgentsUserDefineOutcomeEventRubricUnion\) RawJSON\(\) string](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.RawJSON>) + - [func \(r \*ManagedAgentsUserDefineOutcomeEventRubricUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.UnmarshalJSON>) +- [type ManagedAgentsUserDefineOutcomeEventType](<#ManagedAgentsUserDefineOutcomeEventType>) +- [type ManagedAgentsUserInterruptEvent](<#ManagedAgentsUserInterruptEvent>) + - [func \(r ManagedAgentsUserInterruptEvent\) RawJSON\(\) string](<#ManagedAgentsUserInterruptEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserInterruptEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserInterruptEvent.UnmarshalJSON>) +- [type ManagedAgentsUserInterruptEventParams](<#ManagedAgentsUserInterruptEventParams>) + - [func \(r ManagedAgentsUserInterruptEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserInterruptEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserInterruptEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserInterruptEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserInterruptEventParamsType](<#ManagedAgentsUserInterruptEventParamsType>) +- [type ManagedAgentsUserInterruptEventType](<#ManagedAgentsUserInterruptEventType>) +- [type ManagedAgentsUserLocation](<#ManagedAgentsUserLocation>) + - [func \(r ManagedAgentsUserLocation\) RawJSON\(\) string](<#ManagedAgentsUserLocation.RawJSON>) + - [func \(r ManagedAgentsUserLocation\) ToParam\(\) ManagedAgentsUserLocationParam](<#ManagedAgentsUserLocation.ToParam>) + - [func \(r \*ManagedAgentsUserLocation\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserLocation.UnmarshalJSON>) +- [type ManagedAgentsUserLocationParam](<#ManagedAgentsUserLocationParam>) + - [func \(r ManagedAgentsUserLocationParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserLocationParam.MarshalJSON>) + - [func \(r \*ManagedAgentsUserLocationParam\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserLocationParam.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEvent](<#ManagedAgentsUserMessageEvent>) + - [func \(r ManagedAgentsUserMessageEvent\) RawJSON\(\) string](<#ManagedAgentsUserMessageEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserMessageEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserMessageEvent.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEventContentUnion](<#ManagedAgentsUserMessageEventContentUnion>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) AsAny\(\) anyManagedAgentsUserMessageEventContent](<#ManagedAgentsUserMessageEventContentUnion.AsAny>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsUserMessageEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsUserMessageEventContentUnion.AsImage>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) AsRedacted\(\) \(v ManagedAgentsRedactedBlock\)](<#ManagedAgentsUserMessageEventContentUnion.AsRedacted>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsUserMessageEventContentUnion.AsText>) + - [func \(u ManagedAgentsUserMessageEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsUserMessageEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsUserMessageEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserMessageEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEventContentUnionSource](<#ManagedAgentsUserMessageEventContentUnionSource>) + - [func \(r \*ManagedAgentsUserMessageEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserMessageEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEventParams](<#ManagedAgentsUserMessageEventParams>) + - [func \(r ManagedAgentsUserMessageEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserMessageEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserMessageEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserMessageEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEventParamsContentUnion](<#ManagedAgentsUserMessageEventParamsContentUnion>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) GetContext\(\) \*string](<#ManagedAgentsUserMessageEventParamsContentUnion.GetContext>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) GetSource\(\) \(res managedAgentsUserMessageEventParamsContentUnionSource\)](<#ManagedAgentsUserMessageEventParamsContentUnion.GetSource>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) GetText\(\) \*string](<#ManagedAgentsUserMessageEventParamsContentUnion.GetText>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) GetTitle\(\) \*string](<#ManagedAgentsUserMessageEventParamsContentUnion.GetTitle>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) GetType\(\) \*string](<#ManagedAgentsUserMessageEventParamsContentUnion.GetType>) + - [func \(u ManagedAgentsUserMessageEventParamsContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsUserMessageEventParamsContentUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsUserMessageEventParamsContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserMessageEventParamsContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserMessageEventParamsType](<#ManagedAgentsUserMessageEventParamsType>) +- [type ManagedAgentsUserMessageEventType](<#ManagedAgentsUserMessageEventType>) +- [type ManagedAgentsUserToolConfirmationEvent](<#ManagedAgentsUserToolConfirmationEvent>) + - [func \(r ManagedAgentsUserToolConfirmationEvent\) RawJSON\(\) string](<#ManagedAgentsUserToolConfirmationEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserToolConfirmationEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolConfirmationEvent.UnmarshalJSON>) +- [type ManagedAgentsUserToolConfirmationEventParams](<#ManagedAgentsUserToolConfirmationEventParams>) + - [func \(r ManagedAgentsUserToolConfirmationEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserToolConfirmationEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserToolConfirmationEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolConfirmationEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserToolConfirmationEventParamsResult](<#ManagedAgentsUserToolConfirmationEventParamsResult>) +- [type ManagedAgentsUserToolConfirmationEventParamsType](<#ManagedAgentsUserToolConfirmationEventParamsType>) +- [type ManagedAgentsUserToolConfirmationEventResult](<#ManagedAgentsUserToolConfirmationEventResult>) +- [type ManagedAgentsUserToolConfirmationEventType](<#ManagedAgentsUserToolConfirmationEventType>) +- [type ManagedAgentsUserToolResultEvent](<#ManagedAgentsUserToolResultEvent>) + - [func \(r ManagedAgentsUserToolResultEvent\) RawJSON\(\) string](<#ManagedAgentsUserToolResultEvent.RawJSON>) + - [func \(r \*ManagedAgentsUserToolResultEvent\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolResultEvent.UnmarshalJSON>) +- [type ManagedAgentsUserToolResultEventContentUnion](<#ManagedAgentsUserToolResultEventContentUnion>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) AsAny\(\) anyManagedAgentsUserToolResultEventContent](<#ManagedAgentsUserToolResultEventContentUnion.AsAny>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) AsDocument\(\) \(v ManagedAgentsDocumentBlock\)](<#ManagedAgentsUserToolResultEventContentUnion.AsDocument>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) AsImage\(\) \(v ManagedAgentsImageBlock\)](<#ManagedAgentsUserToolResultEventContentUnion.AsImage>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) AsSearchResult\(\) \(v ManagedAgentsSearchResultBlock\)](<#ManagedAgentsUserToolResultEventContentUnion.AsSearchResult>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) AsText\(\) \(v ManagedAgentsTextBlock\)](<#ManagedAgentsUserToolResultEventContentUnion.AsText>) + - [func \(u ManagedAgentsUserToolResultEventContentUnion\) RawJSON\(\) string](<#ManagedAgentsUserToolResultEventContentUnion.RawJSON>) + - [func \(r \*ManagedAgentsUserToolResultEventContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolResultEventContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserToolResultEventContentUnionSource](<#ManagedAgentsUserToolResultEventContentUnionSource>) + - [func \(r \*ManagedAgentsUserToolResultEventContentUnionSource\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolResultEventContentUnionSource.UnmarshalJSON>) +- [type ManagedAgentsUserToolResultEventParams](<#ManagedAgentsUserToolResultEventParams>) + - [func \(r ManagedAgentsUserToolResultEventParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsUserToolResultEventParams.MarshalJSON>) + - [func \(r \*ManagedAgentsUserToolResultEventParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolResultEventParams.UnmarshalJSON>) +- [type ManagedAgentsUserToolResultEventParamsContentUnion](<#ManagedAgentsUserToolResultEventParamsContentUnion>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetCitations\(\) \*ManagedAgentsSearchResultCitationsParam](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetCitations>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetContent\(\) \[\]ManagedAgentsSearchResultContentParam](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetContent>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetContext\(\) \*string](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetContext>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetSource\(\) \(res managedAgentsUserToolResultEventParamsContentUnionSource\)](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetSource>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetText\(\) \*string](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetText>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetTitle\(\) \*string](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetTitle>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) GetType\(\) \*string](<#ManagedAgentsUserToolResultEventParamsContentUnion.GetType>) + - [func \(u ManagedAgentsUserToolResultEventParamsContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsUserToolResultEventParamsContentUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsUserToolResultEventParamsContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsUserToolResultEventParamsContentUnion.UnmarshalJSON>) +- [type ManagedAgentsUserToolResultEventParamsType](<#ManagedAgentsUserToolResultEventParamsType>) +- [type ManagedAgentsUserToolResultEventType](<#ManagedAgentsUserToolResultEventType>) +- [type ManagedAgentsVault](<#ManagedAgentsVault>) + - [func \(r ManagedAgentsVault\) RawJSON\(\) string](<#ManagedAgentsVault.RawJSON>) + - [func \(r \*ManagedAgentsVault\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsVault.UnmarshalJSON>) +- [type ManagedAgentsVaultArchivedDeploymentPausedReasonError](<#ManagedAgentsVaultArchivedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsVaultArchivedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsVaultArchivedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsVaultArchivedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsVaultArchivedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType](<#ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsVaultArchivedRunError](<#ManagedAgentsVaultArchivedRunError>) + - [func \(r ManagedAgentsVaultArchivedRunError\) RawJSON\(\) string](<#ManagedAgentsVaultArchivedRunError.RawJSON>) + - [func \(r \*ManagedAgentsVaultArchivedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsVaultArchivedRunError.UnmarshalJSON>) +- [type ManagedAgentsVaultArchivedRunErrorType](<#ManagedAgentsVaultArchivedRunErrorType>) +- [type ManagedAgentsVaultNotFoundDeploymentPausedReasonError](<#ManagedAgentsVaultNotFoundDeploymentPausedReasonError>) + - [func \(r ManagedAgentsVaultNotFoundDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsVaultNotFoundDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsVaultNotFoundDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsVaultNotFoundDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType](<#ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType>) +- [type ManagedAgentsVaultNotFoundRunError](<#ManagedAgentsVaultNotFoundRunError>) + - [func \(r ManagedAgentsVaultNotFoundRunError\) RawJSON\(\) string](<#ManagedAgentsVaultNotFoundRunError.RawJSON>) + - [func \(r \*ManagedAgentsVaultNotFoundRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsVaultNotFoundRunError.UnmarshalJSON>) +- [type ManagedAgentsVaultNotFoundRunErrorType](<#ManagedAgentsVaultNotFoundRunErrorType>) +- [type ManagedAgentsVaultType](<#ManagedAgentsVaultType>) +- [type ManagedAgentsWebFetchToolConfig](<#ManagedAgentsWebFetchToolConfig>) + - [func \(r ManagedAgentsWebFetchToolConfig\) RawJSON\(\) string](<#ManagedAgentsWebFetchToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsWebFetchToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebFetchToolConfig.UnmarshalJSON>) +- [type ManagedAgentsWebFetchToolConfigParams](<#ManagedAgentsWebFetchToolConfigParams>) + - [func \(r ManagedAgentsWebFetchToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsWebFetchToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsWebFetchToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebFetchToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsWebFetchToolConfigParamsType](<#ManagedAgentsWebFetchToolConfigParamsType>) +- [type ManagedAgentsWebFetchToolConfigPermissionPolicyUnion](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsWebFetchToolConfigPermissionPolicy](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsWebSearchToolConfig](<#ManagedAgentsWebSearchToolConfig>) + - [func \(r ManagedAgentsWebSearchToolConfig\) RawJSON\(\) string](<#ManagedAgentsWebSearchToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsWebSearchToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebSearchToolConfig.UnmarshalJSON>) +- [type ManagedAgentsWebSearchToolConfigParams](<#ManagedAgentsWebSearchToolConfigParams>) + - [func \(r ManagedAgentsWebSearchToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsWebSearchToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsWebSearchToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebSearchToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsWebSearchToolConfigParamsType](<#ManagedAgentsWebSearchToolConfigParamsType>) +- [type ManagedAgentsWebSearchToolConfigPermissionPolicyUnion](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsWebSearchToolConfigPermissionPolicy](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError](<#ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError>) + - [func \(r ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError\) RawJSON\(\) string](<#ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError.RawJSON>) + - [func \(r \*ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError.UnmarshalJSON>) +- [type ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType](<#ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType>) +- [type ManagedAgentsWorkspaceArchivedRunError](<#ManagedAgentsWorkspaceArchivedRunError>) + - [func \(r ManagedAgentsWorkspaceArchivedRunError\) RawJSON\(\) string](<#ManagedAgentsWorkspaceArchivedRunError.RawJSON>) + - [func \(r \*ManagedAgentsWorkspaceArchivedRunError\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWorkspaceArchivedRunError.UnmarshalJSON>) +- [type ManagedAgentsWorkspaceArchivedRunErrorType](<#ManagedAgentsWorkspaceArchivedRunErrorType>) +- [type ManagedAgentsWriteToolConfig](<#ManagedAgentsWriteToolConfig>) + - [func \(r ManagedAgentsWriteToolConfig\) RawJSON\(\) string](<#ManagedAgentsWriteToolConfig.RawJSON>) + - [func \(r \*ManagedAgentsWriteToolConfig\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWriteToolConfig.UnmarshalJSON>) +- [type ManagedAgentsWriteToolConfigParams](<#ManagedAgentsWriteToolConfigParams>) + - [func \(r ManagedAgentsWriteToolConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ManagedAgentsWriteToolConfigParams.MarshalJSON>) + - [func \(r \*ManagedAgentsWriteToolConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWriteToolConfigParams.UnmarshalJSON>) +- [type ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion](<#ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion>) + - [func \(u ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) GetType\(\) \*string](<#ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion.GetType>) + - [func \(u ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion.MarshalJSON>) + - [func \(u \*ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion.UnmarshalJSON>) +- [type ManagedAgentsWriteToolConfigParamsType](<#ManagedAgentsWriteToolConfigParamsType>) +- [type ManagedAgentsWriteToolConfigPermissionPolicyUnion](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion>) + - [func \(u ManagedAgentsWriteToolConfigPermissionPolicyUnion\) AsAlwaysAllow\(\) \(v ManagedAgentsAlwaysAllowPolicy\)](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAlwaysAllow>) + - [func \(u ManagedAgentsWriteToolConfigPermissionPolicyUnion\) AsAlwaysAsk\(\) \(v ManagedAgentsAlwaysAskPolicy\)](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAlwaysAsk>) + - [func \(u ManagedAgentsWriteToolConfigPermissionPolicyUnion\) AsAny\(\) anyManagedAgentsWriteToolConfigPermissionPolicy](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAny>) + - [func \(u ManagedAgentsWriteToolConfigPermissionPolicyUnion\) RawJSON\(\) string](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.RawJSON>) + - [func \(r \*ManagedAgentsWriteToolConfigPermissionPolicyUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.UnmarshalJSON>) +- [type MemoryStoreArchiveParams](<#MemoryStoreArchiveParams>) +- [type MemoryStoreDeleteParams](<#MemoryStoreDeleteParams>) +- [type MemoryStoreGetParams](<#MemoryStoreGetParams>) +- [type MemoryStoreListParams](<#MemoryStoreListParams>) + - [func \(r MemoryStoreListParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreListParams.URLQuery>) +- [type MemoryStoreMemoryDeleteParams](<#MemoryStoreMemoryDeleteParams>) + - [func \(r MemoryStoreMemoryDeleteParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryDeleteParams.URLQuery>) +- [type MemoryStoreMemoryGetParams](<#MemoryStoreMemoryGetParams>) + - [func \(r MemoryStoreMemoryGetParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryGetParams.URLQuery>) +- [type MemoryStoreMemoryListParams](<#MemoryStoreMemoryListParams>) + - [func \(r MemoryStoreMemoryListParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryListParams.URLQuery>) +- [type MemoryStoreMemoryNewParams](<#MemoryStoreMemoryNewParams>) + - [func \(r MemoryStoreMemoryNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MemoryStoreMemoryNewParams.MarshalJSON>) + - [func \(r MemoryStoreMemoryNewParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryNewParams.URLQuery>) + - [func \(r \*MemoryStoreMemoryNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreMemoryNewParams.UnmarshalJSON>) +- [type MemoryStoreMemoryService](<#MemoryStoreMemoryService>) + - [func NewMemoryStoreMemoryService\(opts ...option.RequestOption\) \(r MemoryStoreMemoryService\)](<#NewMemoryStoreMemoryService>) + - [func \(r \*MemoryStoreMemoryService\) Delete\(ctx context.Context, memoryID string, params MemoryStoreMemoryDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeletedMemory, err error\)](<#MemoryStoreMemoryService.Delete>) + - [func \(r \*MemoryStoreMemoryService\) Get\(ctx context.Context, memoryID string, params MemoryStoreMemoryGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemory, err error\)](<#MemoryStoreMemoryService.Get>) + - [func \(r \*MemoryStoreMemoryService\) List\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsMemoryListItemUnion\], err error\)](<#MemoryStoreMemoryService.List>) + - [func \(r \*MemoryStoreMemoryService\) ListAutoPaging\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsMemoryListItemUnion\]](<#MemoryStoreMemoryService.ListAutoPaging>) + - [func \(r \*MemoryStoreMemoryService\) New\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemory, err error\)](<#MemoryStoreMemoryService.New>) + - [func \(r \*MemoryStoreMemoryService\) Update\(ctx context.Context, memoryID string, params MemoryStoreMemoryUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemory, err error\)](<#MemoryStoreMemoryService.Update>) +- [type MemoryStoreMemoryUpdateParams](<#MemoryStoreMemoryUpdateParams>) + - [func \(r MemoryStoreMemoryUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MemoryStoreMemoryUpdateParams.MarshalJSON>) + - [func \(r MemoryStoreMemoryUpdateParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryUpdateParams.URLQuery>) + - [func \(r \*MemoryStoreMemoryUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreMemoryUpdateParams.UnmarshalJSON>) +- [type MemoryStoreMemoryVersionGetParams](<#MemoryStoreMemoryVersionGetParams>) + - [func \(r MemoryStoreMemoryVersionGetParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryVersionGetParams.URLQuery>) +- [type MemoryStoreMemoryVersionListParams](<#MemoryStoreMemoryVersionListParams>) + - [func \(r MemoryStoreMemoryVersionListParams\) URLQuery\(\) \(v url.Values, err error\)](<#MemoryStoreMemoryVersionListParams.URLQuery>) +- [type MemoryStoreMemoryVersionRedactParams](<#MemoryStoreMemoryVersionRedactParams>) +- [type MemoryStoreMemoryVersionService](<#MemoryStoreMemoryVersionService>) + - [func NewMemoryStoreMemoryVersionService\(opts ...option.RequestOption\) \(r MemoryStoreMemoryVersionService\)](<#NewMemoryStoreMemoryVersionService>) + - [func \(r \*MemoryStoreMemoryVersionService\) Get\(ctx context.Context, memoryVersionID string, params MemoryStoreMemoryVersionGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryVersion, err error\)](<#MemoryStoreMemoryVersionService.Get>) + - [func \(r \*MemoryStoreMemoryVersionService\) List\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsMemoryVersion\], err error\)](<#MemoryStoreMemoryVersionService.List>) + - [func \(r \*MemoryStoreMemoryVersionService\) ListAutoPaging\(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsMemoryVersion\]](<#MemoryStoreMemoryVersionService.ListAutoPaging>) + - [func \(r \*MemoryStoreMemoryVersionService\) Redact\(ctx context.Context, memoryVersionID string, params MemoryStoreMemoryVersionRedactParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryVersion, err error\)](<#MemoryStoreMemoryVersionService.Redact>) +- [type MemoryStoreNewParams](<#MemoryStoreNewParams>) + - [func \(r MemoryStoreNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MemoryStoreNewParams.MarshalJSON>) + - [func \(r \*MemoryStoreNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreNewParams.UnmarshalJSON>) +- [type MemoryStoreService](<#MemoryStoreService>) + - [func NewMemoryStoreService\(opts ...option.RequestOption\) \(r MemoryStoreService\)](<#NewMemoryStoreService>) + - [func \(r \*MemoryStoreService\) Archive\(ctx context.Context, memoryStoreID string, body MemoryStoreArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryStore, err error\)](<#MemoryStoreService.Archive>) + - [func \(r \*MemoryStoreService\) Delete\(ctx context.Context, memoryStoreID string, body MemoryStoreDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeletedMemoryStore, err error\)](<#MemoryStoreService.Delete>) + - [func \(r \*MemoryStoreService\) Get\(ctx context.Context, memoryStoreID string, query MemoryStoreGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryStore, err error\)](<#MemoryStoreService.Get>) + - [func \(r \*MemoryStoreService\) List\(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsMemoryStore\], err error\)](<#MemoryStoreService.List>) + - [func \(r \*MemoryStoreService\) ListAutoPaging\(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsMemoryStore\]](<#MemoryStoreService.ListAutoPaging>) + - [func \(r \*MemoryStoreService\) New\(ctx context.Context, params MemoryStoreNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryStore, err error\)](<#MemoryStoreService.New>) + - [func \(r \*MemoryStoreService\) Update\(ctx context.Context, memoryStoreID string, params MemoryStoreUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsMemoryStore, err error\)](<#MemoryStoreService.Update>) +- [type MemoryStoreUpdateParams](<#MemoryStoreUpdateParams>) + - [func \(r MemoryStoreUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MemoryStoreUpdateParams.MarshalJSON>) + - [func \(r \*MemoryStoreUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#MemoryStoreUpdateParams.UnmarshalJSON>) +- [type Model](<#Model>) +- [type ModelCapabilities](<#ModelCapabilities>) + - [func \(r ModelCapabilities\) RawJSON\(\) string](<#ModelCapabilities.RawJSON>) + - [func \(r \*ModelCapabilities\) UnmarshalJSON\(data \[\]byte\) error](<#ModelCapabilities.UnmarshalJSON>) +- [type ModelInfo](<#ModelInfo>) + - [func \(r ModelInfo\) RawJSON\(\) string](<#ModelInfo.RawJSON>) + - [func \(r \*ModelInfo\) UnmarshalJSON\(data \[\]byte\) error](<#ModelInfo.UnmarshalJSON>) +- [type ModelListParams](<#ModelListParams>) + - [func \(r ModelListParams\) URLQuery\(\) \(v url.Values, err error\)](<#ModelListParams.URLQuery>) +- [type ModelService](<#ModelService>) + - [func NewModelService\(opts ...option.RequestOption\) \(r ModelService\)](<#NewModelService>) + - [func \(r \*ModelService\) List\(ctx context.Context, params ModelListParams, opts ...option.RequestOption\) \(res \*pagination.Page\[ModelInfo\], err error\)](<#ModelService.List>) + - [func \(r \*ModelService\) ListAutoPaging\(ctx context.Context, params ModelListParams, opts ...option.RequestOption\) \*pagination.PageAutoPager\[ModelInfo\]](<#ModelService.ListAutoPaging>) +- [type MonetaryAmount](<#MonetaryAmount>) + - [func \(r MonetaryAmount\) RawJSON\(\) string](<#MonetaryAmount.RawJSON>) + - [func \(r MonetaryAmount\) ToParam\(\) MonetaryAmountParam](<#MonetaryAmount.ToParam>) + - [func \(r \*MonetaryAmount\) UnmarshalJSON\(data \[\]byte\) error](<#MonetaryAmount.UnmarshalJSON>) +- [type MonetaryAmountParam](<#MonetaryAmountParam>) + - [func \(r MonetaryAmountParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#MonetaryAmountParam.MarshalJSON>) + - [func \(r \*MonetaryAmountParam\) UnmarshalJSON\(data \[\]byte\) error](<#MonetaryAmountParam.UnmarshalJSON>) +- [type OutputBehaviorCreateNew](<#OutputBehaviorCreateNew>) + - [func \(r OutputBehaviorCreateNew\) RawJSON\(\) string](<#OutputBehaviorCreateNew.RawJSON>) + - [func \(r OutputBehaviorCreateNew\) ToParam\(\) OutputBehaviorCreateNewParam](<#OutputBehaviorCreateNew.ToParam>) + - [func \(r \*OutputBehaviorCreateNew\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorCreateNew.UnmarshalJSON>) +- [type OutputBehaviorCreateNewParam](<#OutputBehaviorCreateNewParam>) + - [func \(r OutputBehaviorCreateNewParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#OutputBehaviorCreateNewParam.MarshalJSON>) + - [func \(r \*OutputBehaviorCreateNewParam\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorCreateNewParam.UnmarshalJSON>) +- [type OutputBehaviorCreateNewType](<#OutputBehaviorCreateNewType>) +- [type OutputBehaviorUnion](<#OutputBehaviorUnion>) + - [func \(u OutputBehaviorUnion\) AsAny\(\) anyOutputBehavior](<#OutputBehaviorUnion.AsAny>) + - [func \(u OutputBehaviorUnion\) AsCreateNew\(\) \(v OutputBehaviorCreateNew\)](<#OutputBehaviorUnion.AsCreateNew>) + - [func \(u OutputBehaviorUnion\) AsUpdateExisting\(\) \(v OutputBehaviorUpdateExisting\)](<#OutputBehaviorUnion.AsUpdateExisting>) + - [func \(u OutputBehaviorUnion\) RawJSON\(\) string](<#OutputBehaviorUnion.RawJSON>) + - [func \(r OutputBehaviorUnion\) ToParam\(\) OutputBehaviorUnionParam](<#OutputBehaviorUnion.ToParam>) + - [func \(r \*OutputBehaviorUnion\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorUnion.UnmarshalJSON>) +- [type OutputBehaviorUnionParam](<#OutputBehaviorUnionParam>) + - [func OutputBehaviorParamOfCreateNew\(type\_ OutputBehaviorCreateNewType\) OutputBehaviorUnionParam](<#OutputBehaviorParamOfCreateNew>) + - [func OutputBehaviorParamOfUpdateExisting\(memoryStoreID string\) OutputBehaviorUnionParam](<#OutputBehaviorParamOfUpdateExisting>) + - [func \(u OutputBehaviorUnionParam\) GetMemoryStoreID\(\) \*string](<#OutputBehaviorUnionParam.GetMemoryStoreID>) + - [func \(u OutputBehaviorUnionParam\) GetType\(\) \*string](<#OutputBehaviorUnionParam.GetType>) + - [func \(u OutputBehaviorUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#OutputBehaviorUnionParam.MarshalJSON>) + - [func \(u \*OutputBehaviorUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorUnionParam.UnmarshalJSON>) +- [type OutputBehaviorUpdateExisting](<#OutputBehaviorUpdateExisting>) + - [func \(r OutputBehaviorUpdateExisting\) RawJSON\(\) string](<#OutputBehaviorUpdateExisting.RawJSON>) + - [func \(r OutputBehaviorUpdateExisting\) ToParam\(\) OutputBehaviorUpdateExistingParam](<#OutputBehaviorUpdateExisting.ToParam>) + - [func \(r \*OutputBehaviorUpdateExisting\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorUpdateExisting.UnmarshalJSON>) +- [type OutputBehaviorUpdateExistingParam](<#OutputBehaviorUpdateExistingParam>) + - [func \(r OutputBehaviorUpdateExistingParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#OutputBehaviorUpdateExistingParam.MarshalJSON>) + - [func \(r \*OutputBehaviorUpdateExistingParam\) UnmarshalJSON\(data \[\]byte\) error](<#OutputBehaviorUpdateExistingParam.UnmarshalJSON>) +- [type OutputBehaviorUpdateExistingType](<#OutputBehaviorUpdateExistingType>) +- [type Packages](<#Packages>) + - [func \(r Packages\) RawJSON\(\) string](<#Packages.RawJSON>) + - [func \(r \*Packages\) UnmarshalJSON\(data \[\]byte\) error](<#Packages.UnmarshalJSON>) +- [type PackagesParams](<#PackagesParams>) + - [func \(r PackagesParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#PackagesParams.MarshalJSON>) + - [func \(r \*PackagesParams\) UnmarshalJSON\(data \[\]byte\) error](<#PackagesParams.UnmarshalJSON>) +- [type PackagesParamsType](<#PackagesParamsType>) +- [type PackagesType](<#PackagesType>) +- [type PlainTextSourceParam](<#PlainTextSourceParam>) + - [func \(r PlainTextSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#PlainTextSourceParam.MarshalJSON>) + - [func \(r \*PlainTextSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#PlainTextSourceParam.UnmarshalJSON>) +- [type QoderBeta](<#QoderBeta>) +- [type RedactedThinkingBlockParam](<#RedactedThinkingBlockParam>) + - [func \(r RedactedThinkingBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#RedactedThinkingBlockParam.MarshalJSON>) + - [func \(r \*RedactedThinkingBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#RedactedThinkingBlockParam.UnmarshalJSON>) +- [type RequestDocumentBlockParam](<#RequestDocumentBlockParam>) + - [func \(r RequestDocumentBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#RequestDocumentBlockParam.MarshalJSON>) + - [func \(r \*RequestDocumentBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestDocumentBlockParam.UnmarshalJSON>) +- [type RequestDocumentBlockSourceUnionParam](<#RequestDocumentBlockSourceUnionParam>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetContent\(\) \*ContentBlockSourceContentUnionParam](<#RequestDocumentBlockSourceUnionParam.GetContent>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetData\(\) \*string](<#RequestDocumentBlockSourceUnionParam.GetData>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetFileID\(\) \*string](<#RequestDocumentBlockSourceUnionParam.GetFileID>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetMediaType\(\) \*string](<#RequestDocumentBlockSourceUnionParam.GetMediaType>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetType\(\) \*string](<#RequestDocumentBlockSourceUnionParam.GetType>) + - [func \(u RequestDocumentBlockSourceUnionParam\) GetURL\(\) \*string](<#RequestDocumentBlockSourceUnionParam.GetURL>) + - [func \(u RequestDocumentBlockSourceUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#RequestDocumentBlockSourceUnionParam.MarshalJSON>) + - [func \(u \*RequestDocumentBlockSourceUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestDocumentBlockSourceUnionParam.UnmarshalJSON>) +- [type RequestMCPToolResultBlockParam](<#RequestMCPToolResultBlockParam>) + - [func \(r RequestMCPToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#RequestMCPToolResultBlockParam.MarshalJSON>) + - [func \(r \*RequestMCPToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestMCPToolResultBlockParam.UnmarshalJSON>) +- [type RequestMCPToolResultBlockParamContentUnion](<#RequestMCPToolResultBlockParamContentUnion>) + - [func \(u RequestMCPToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#RequestMCPToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*RequestMCPToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#RequestMCPToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type RequestToolAdditionBlockParam](<#RequestToolAdditionBlockParam>) + - [func \(r RequestToolAdditionBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#RequestToolAdditionBlockParam.MarshalJSON>) + - [func \(r \*RequestToolAdditionBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestToolAdditionBlockParam.UnmarshalJSON>) +- [type RequestToolAdditionBlockToolUnionParam](<#RequestToolAdditionBlockToolUnionParam>) + - [func \(u RequestToolAdditionBlockToolUnionParam\) GetName\(\) \*string](<#RequestToolAdditionBlockToolUnionParam.GetName>) + - [func \(u RequestToolAdditionBlockToolUnionParam\) GetServerName\(\) \*string](<#RequestToolAdditionBlockToolUnionParam.GetServerName>) + - [func \(u RequestToolAdditionBlockToolUnionParam\) GetType\(\) \*string](<#RequestToolAdditionBlockToolUnionParam.GetType>) + - [func \(u RequestToolAdditionBlockToolUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#RequestToolAdditionBlockToolUnionParam.MarshalJSON>) + - [func \(u \*RequestToolAdditionBlockToolUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestToolAdditionBlockToolUnionParam.UnmarshalJSON>) +- [type RequestToolRemovalBlockParam](<#RequestToolRemovalBlockParam>) + - [func \(r RequestToolRemovalBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#RequestToolRemovalBlockParam.MarshalJSON>) + - [func \(r \*RequestToolRemovalBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestToolRemovalBlockParam.UnmarshalJSON>) +- [type RequestToolRemovalBlockToolUnionParam](<#RequestToolRemovalBlockToolUnionParam>) + - [func \(u RequestToolRemovalBlockToolUnionParam\) GetName\(\) \*string](<#RequestToolRemovalBlockToolUnionParam.GetName>) + - [func \(u RequestToolRemovalBlockToolUnionParam\) GetServerName\(\) \*string](<#RequestToolRemovalBlockToolUnionParam.GetServerName>) + - [func \(u RequestToolRemovalBlockToolUnionParam\) GetType\(\) \*string](<#RequestToolRemovalBlockToolUnionParam.GetType>) + - [func \(u RequestToolRemovalBlockToolUnionParam\) MarshalJSON\(\) \(\[\]byte, error\)](<#RequestToolRemovalBlockToolUnionParam.MarshalJSON>) + - [func \(u \*RequestToolRemovalBlockToolUnionParam\) UnmarshalJSON\(data \[\]byte\) error](<#RequestToolRemovalBlockToolUnionParam.UnmarshalJSON>) +- [type ResumableSessionEventStream](<#ResumableSessionEventStream>) + - [func \(s \*ResumableSessionEventStream\) Close\(\) error](<#ResumableSessionEventStream.Close>) + - [func \(s \*ResumableSessionEventStream\) Current\(\) ManagedAgentsStreamSessionEventsUnion](<#ResumableSessionEventStream.Current>) + - [func \(s \*ResumableSessionEventStream\) Err\(\) error](<#ResumableSessionEventStream.Err>) + - [func \(s \*ResumableSessionEventStream\) LastEventID\(\) string](<#ResumableSessionEventStream.LastEventID>) + - [func \(s \*ResumableSessionEventStream\) Next\(\) bool](<#ResumableSessionEventStream.Next>) +- [type SearchResultBlockParam](<#SearchResultBlockParam>) + - [func \(r SearchResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SearchResultBlockParam.MarshalJSON>) + - [func \(r \*SearchResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#SearchResultBlockParam.UnmarshalJSON>) +- [type SelfHostedConfig](<#SelfHostedConfig>) + - [func \(r SelfHostedConfig\) RawJSON\(\) string](<#SelfHostedConfig.RawJSON>) + - [func \(r \*SelfHostedConfig\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedConfig.UnmarshalJSON>) +- [type SelfHostedConfigParams](<#SelfHostedConfigParams>) + - [func NewSelfHostedConfigParams\(\) SelfHostedConfigParams](<#NewSelfHostedConfigParams>) + - [func \(r SelfHostedConfigParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SelfHostedConfigParams.MarshalJSON>) + - [func \(r \*SelfHostedConfigParams\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedConfigParams.UnmarshalJSON>) +- [type SelfHostedWork](<#SelfHostedWork>) + - [func \(r SelfHostedWork\) RawJSON\(\) string](<#SelfHostedWork.RawJSON>) + - [func \(r \*SelfHostedWork\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWork.UnmarshalJSON>) +- [type SelfHostedWorkHeartbeatResponse](<#SelfHostedWorkHeartbeatResponse>) + - [func \(r SelfHostedWorkHeartbeatResponse\) RawJSON\(\) string](<#SelfHostedWorkHeartbeatResponse.RawJSON>) + - [func \(r \*SelfHostedWorkHeartbeatResponse\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWorkHeartbeatResponse.UnmarshalJSON>) +- [type SelfHostedWorkHeartbeatResponseState](<#SelfHostedWorkHeartbeatResponseState>) +- [type SelfHostedWorkListResponse](<#SelfHostedWorkListResponse>) + - [func \(r SelfHostedWorkListResponse\) RawJSON\(\) string](<#SelfHostedWorkListResponse.RawJSON>) + - [func \(r \*SelfHostedWorkListResponse\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWorkListResponse.UnmarshalJSON>) +- [type SelfHostedWorkQueueStats](<#SelfHostedWorkQueueStats>) + - [func \(r SelfHostedWorkQueueStats\) RawJSON\(\) string](<#SelfHostedWorkQueueStats.RawJSON>) + - [func \(r \*SelfHostedWorkQueueStats\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWorkQueueStats.UnmarshalJSON>) +- [type SelfHostedWorkState](<#SelfHostedWorkState>) +- [type SelfHostedWorkStopRequestParam](<#SelfHostedWorkStopRequestParam>) + - [func \(r SelfHostedWorkStopRequestParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SelfHostedWorkStopRequestParam.MarshalJSON>) + - [func \(r \*SelfHostedWorkStopRequestParam\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWorkStopRequestParam.UnmarshalJSON>) +- [type SelfHostedWorkUpdateRequestParam](<#SelfHostedWorkUpdateRequestParam>) + - [func \(r SelfHostedWorkUpdateRequestParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SelfHostedWorkUpdateRequestParam.MarshalJSON>) + - [func \(r \*SelfHostedWorkUpdateRequestParam\) UnmarshalJSON\(data \[\]byte\) error](<#SelfHostedWorkUpdateRequestParam.UnmarshalJSON>) +- [type ServerToolCaller20260120Param](<#ServerToolCaller20260120Param>) + - [func \(r ServerToolCaller20260120Param\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ServerToolCaller20260120Param.MarshalJSON>) + - [func \(r \*ServerToolCaller20260120Param\) UnmarshalJSON\(data \[\]byte\) error](<#ServerToolCaller20260120Param.UnmarshalJSON>) +- [type ServerToolCallerParam](<#ServerToolCallerParam>) + - [func \(r ServerToolCallerParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ServerToolCallerParam.MarshalJSON>) + - [func \(r \*ServerToolCallerParam\) UnmarshalJSON\(data \[\]byte\) error](<#ServerToolCallerParam.UnmarshalJSON>) +- [type ServerToolUseBlockParam](<#ServerToolUseBlockParam>) + - [func \(r ServerToolUseBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ServerToolUseBlockParam.MarshalJSON>) + - [func \(r \*ServerToolUseBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ServerToolUseBlockParam.UnmarshalJSON>) +- [type ServerToolUseBlockParamCallerUnion](<#ServerToolUseBlockParamCallerUnion>) + - [func \(u ServerToolUseBlockParamCallerUnion\) GetToolID\(\) \*string](<#ServerToolUseBlockParamCallerUnion.GetToolID>) + - [func \(u ServerToolUseBlockParamCallerUnion\) GetType\(\) \*string](<#ServerToolUseBlockParamCallerUnion.GetType>) + - [func \(u ServerToolUseBlockParamCallerUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServerToolUseBlockParamCallerUnion.MarshalJSON>) + - [func \(u \*ServerToolUseBlockParamCallerUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ServerToolUseBlockParamCallerUnion.UnmarshalJSON>) +- [type ServerToolUseBlockParamName](<#ServerToolUseBlockParamName>) +- [type SessionArchiveParams](<#SessionArchiveParams>) +- [type SessionDeleteParams](<#SessionDeleteParams>) +- [type SessionEventListParams](<#SessionEventListParams>) + - [func \(r SessionEventListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionEventListParams.URLQuery>) +- [type SessionEventListParamsOrder](<#SessionEventListParamsOrder>) +- [type SessionEventSendParams](<#SessionEventSendParams>) + - [func \(r SessionEventSendParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SessionEventSendParams.MarshalJSON>) + - [func \(r \*SessionEventSendParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionEventSendParams.UnmarshalJSON>) +- [type SessionEventService](<#SessionEventService>) + - [func NewSessionEventService\(opts ...option.RequestOption\) \(r SessionEventService\)](<#NewSessionEventService>) + - [func \(r \*SessionEventService\) List\(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsSessionEventUnion\], err error\)](<#SessionEventService.List>) + - [func \(r \*SessionEventService\) ListAutoPaging\(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsSessionEventUnion\]](<#SessionEventService.ListAutoPaging>) + - [func \(r \*SessionEventService\) NewResumableStream\(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption\) \*ResumableSessionEventStream](<#SessionEventService.NewResumableStream>) + - [func \(r \*SessionEventService\) Send\(ctx context.Context, sessionID string, params SessionEventSendParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSendSessionEvents, err error\)](<#SessionEventService.Send>) + - [func \(r \*SessionEventService\) StreamEvents\(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption\) \(stream \*ssestream.Stream\[ManagedAgentsStreamSessionEventsUnion\]\)](<#SessionEventService.StreamEvents>) +- [type SessionEventStreamParams](<#SessionEventStreamParams>) + - [func \(r SessionEventStreamParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionEventStreamParams.URLQuery>) +- [type SessionGetParams](<#SessionGetParams>) +- [type SessionListParams](<#SessionListParams>) + - [func \(r SessionListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionListParams.URLQuery>) +- [type SessionListParamsOrder](<#SessionListParamsOrder>) +- [type SessionNewParams](<#SessionNewParams>) + - [func \(r SessionNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SessionNewParams.MarshalJSON>) + - [func \(r \*SessionNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParams.UnmarshalJSON>) +- [type SessionNewParamsAgentUnion](<#SessionNewParamsAgentUnion>) + - [func \(u SessionNewParamsAgentUnion\) GetID\(\) \*string](<#SessionNewParamsAgentUnion.GetID>) + - [func \(u SessionNewParamsAgentUnion\) GetMCPServers\(\) \[\]ManagedAgentsURLMCPServerParams](<#SessionNewParamsAgentUnion.GetMCPServers>) + - [func \(u SessionNewParamsAgentUnion\) GetModel\(\) \*ManagedAgentsModelConfigParams](<#SessionNewParamsAgentUnion.GetModel>) + - [func \(u SessionNewParamsAgentUnion\) GetSkills\(\) \[\]ManagedAgentsSkillParamsUnion](<#SessionNewParamsAgentUnion.GetSkills>) + - [func \(u SessionNewParamsAgentUnion\) GetSystem\(\) \*string](<#SessionNewParamsAgentUnion.GetSystem>) + - [func \(u SessionNewParamsAgentUnion\) GetTools\(\) \[\]ManagedAgentsAgentWithOverridesParamsToolUnion](<#SessionNewParamsAgentUnion.GetTools>) + - [func \(u SessionNewParamsAgentUnion\) GetType\(\) \*string](<#SessionNewParamsAgentUnion.GetType>) + - [func \(u SessionNewParamsAgentUnion\) GetVersion\(\) \*int64](<#SessionNewParamsAgentUnion.GetVersion>) + - [func \(u SessionNewParamsAgentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionNewParamsAgentUnion.MarshalJSON>) + - [func \(u \*SessionNewParamsAgentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParamsAgentUnion.UnmarshalJSON>) +- [type SessionNewParamsInitialEventUnion](<#SessionNewParamsInitialEventUnion>) + - [func \(u SessionNewParamsInitialEventUnion\) GetContent\(\) \[\]ManagedAgentsUserMessageEventParamsContentUnion](<#SessionNewParamsInitialEventUnion.GetContent>) + - [func \(u SessionNewParamsInitialEventUnion\) GetDescription\(\) \*string](<#SessionNewParamsInitialEventUnion.GetDescription>) + - [func \(u SessionNewParamsInitialEventUnion\) GetMaxIterations\(\) \*int64](<#SessionNewParamsInitialEventUnion.GetMaxIterations>) + - [func \(u SessionNewParamsInitialEventUnion\) GetRubric\(\) \*ManagedAgentsUserDefineOutcomeEventParamsRubricUnion](<#SessionNewParamsInitialEventUnion.GetRubric>) + - [func \(u SessionNewParamsInitialEventUnion\) GetType\(\) \*string](<#SessionNewParamsInitialEventUnion.GetType>) + - [func \(u SessionNewParamsInitialEventUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionNewParamsInitialEventUnion.MarshalJSON>) + - [func \(u \*SessionNewParamsInitialEventUnion\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParamsInitialEventUnion.UnmarshalJSON>) +- [type SessionNewParamsResourceUnion](<#SessionNewParamsResourceUnion>) + - [func \(u SessionNewParamsResourceUnion\) GetAccess\(\) \*string](<#SessionNewParamsResourceUnion.GetAccess>) + - [func \(u SessionNewParamsResourceUnion\) GetAuthorizationToken\(\) \*string](<#SessionNewParamsResourceUnion.GetAuthorizationToken>) + - [func \(u SessionNewParamsResourceUnion\) GetCheckout\(\) \*ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion](<#SessionNewParamsResourceUnion.GetCheckout>) + - [func \(u SessionNewParamsResourceUnion\) GetFileID\(\) \*string](<#SessionNewParamsResourceUnion.GetFileID>) + - [func \(u SessionNewParamsResourceUnion\) GetInstructions\(\) \*string](<#SessionNewParamsResourceUnion.GetInstructions>) + - [func \(u SessionNewParamsResourceUnion\) GetMemoryStoreID\(\) \*string](<#SessionNewParamsResourceUnion.GetMemoryStoreID>) + - [func \(u SessionNewParamsResourceUnion\) GetMountPath\(\) \*string](<#SessionNewParamsResourceUnion.GetMountPath>) + - [func \(u SessionNewParamsResourceUnion\) GetType\(\) \*string](<#SessionNewParamsResourceUnion.GetType>) + - [func \(u SessionNewParamsResourceUnion\) GetURL\(\) \*string](<#SessionNewParamsResourceUnion.GetURL>) + - [func \(u SessionNewParamsResourceUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionNewParamsResourceUnion.MarshalJSON>) + - [func \(u \*SessionNewParamsResourceUnion\) UnmarshalJSON\(data \[\]byte\) error](<#SessionNewParamsResourceUnion.UnmarshalJSON>) +- [type SessionResourceAddParams](<#SessionResourceAddParams>) + - [func \(r SessionResourceAddParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SessionResourceAddParams.MarshalJSON>) + - [func \(r \*SessionResourceAddParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceAddParams.UnmarshalJSON>) +- [type SessionResourceDeleteParams](<#SessionResourceDeleteParams>) +- [type SessionResourceGetParams](<#SessionResourceGetParams>) +- [type SessionResourceGetResponseUnion](<#SessionResourceGetResponseUnion>) + - [func \(u SessionResourceGetResponseUnion\) AsAny\(\) anySessionResourceGetResponse](<#SessionResourceGetResponseUnion.AsAny>) + - [func \(u SessionResourceGetResponseUnion\) AsFile\(\) \(v ManagedAgentsFileResource\)](<#SessionResourceGetResponseUnion.AsFile>) + - [func \(u SessionResourceGetResponseUnion\) AsGitHubRepository\(\) \(v ManagedAgentsGitHubRepositoryResource\)](<#SessionResourceGetResponseUnion.AsGitHubRepository>) + - [func \(u SessionResourceGetResponseUnion\) AsMemoryStore\(\) \(v ManagedAgentsMemoryStoreResource\)](<#SessionResourceGetResponseUnion.AsMemoryStore>) + - [func \(u SessionResourceGetResponseUnion\) RawJSON\(\) string](<#SessionResourceGetResponseUnion.RawJSON>) + - [func \(r \*SessionResourceGetResponseUnion\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceGetResponseUnion.UnmarshalJSON>) +- [type SessionResourceListParams](<#SessionResourceListParams>) + - [func \(r SessionResourceListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionResourceListParams.URLQuery>) +- [type SessionResourceService](<#SessionResourceService>) + - [func NewSessionResourceService\(opts ...option.RequestOption\) \(r SessionResourceService\)](<#NewSessionResourceService>) + - [func \(r \*SessionResourceService\) Add\(ctx context.Context, sessionID string, params SessionResourceAddParams, opts ...option.RequestOption\) \(res \*ManagedAgentsFileResource, err error\)](<#SessionResourceService.Add>) + - [func \(r \*SessionResourceService\) Delete\(ctx context.Context, resourceID string, params SessionResourceDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeleteSessionResource, err error\)](<#SessionResourceService.Delete>) + - [func \(r \*SessionResourceService\) Get\(ctx context.Context, resourceID string, params SessionResourceGetParams, opts ...option.RequestOption\) \(res \*SessionResourceGetResponseUnion, err error\)](<#SessionResourceService.Get>) + - [func \(r \*SessionResourceService\) List\(ctx context.Context, sessionID string, params SessionResourceListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsSessionResourceUnion\], err error\)](<#SessionResourceService.List>) + - [func \(r \*SessionResourceService\) ListAutoPaging\(ctx context.Context, sessionID string, params SessionResourceListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsSessionResourceUnion\]](<#SessionResourceService.ListAutoPaging>) + - [func \(r \*SessionResourceService\) Update\(ctx context.Context, resourceID string, params SessionResourceUpdateParams, opts ...option.RequestOption\) \(res \*SessionResourceUpdateResponseUnion, err error\)](<#SessionResourceService.Update>) +- [type SessionResourceUpdateParams](<#SessionResourceUpdateParams>) + - [func \(r SessionResourceUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SessionResourceUpdateParams.MarshalJSON>) + - [func \(r \*SessionResourceUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceUpdateParams.UnmarshalJSON>) +- [type SessionResourceUpdateResponseUnion](<#SessionResourceUpdateResponseUnion>) + - [func \(u SessionResourceUpdateResponseUnion\) AsAny\(\) anySessionResourceUpdateResponse](<#SessionResourceUpdateResponseUnion.AsAny>) + - [func \(u SessionResourceUpdateResponseUnion\) AsFile\(\) \(v ManagedAgentsFileResource\)](<#SessionResourceUpdateResponseUnion.AsFile>) + - [func \(u SessionResourceUpdateResponseUnion\) AsGitHubRepository\(\) \(v ManagedAgentsGitHubRepositoryResource\)](<#SessionResourceUpdateResponseUnion.AsGitHubRepository>) + - [func \(u SessionResourceUpdateResponseUnion\) AsMemoryStore\(\) \(v ManagedAgentsMemoryStoreResource\)](<#SessionResourceUpdateResponseUnion.AsMemoryStore>) + - [func \(u SessionResourceUpdateResponseUnion\) RawJSON\(\) string](<#SessionResourceUpdateResponseUnion.RawJSON>) + - [func \(r \*SessionResourceUpdateResponseUnion\) UnmarshalJSON\(data \[\]byte\) error](<#SessionResourceUpdateResponseUnion.UnmarshalJSON>) +- [type SessionService](<#SessionService>) + - [func NewSessionService\(opts ...option.RequestOption\) \(r SessionService\)](<#NewSessionService>) + - [func \(r \*SessionService\) Archive\(ctx context.Context, sessionID string, body SessionArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSession, err error\)](<#SessionService.Archive>) + - [func \(r \*SessionService\) Delete\(ctx context.Context, sessionID string, body SessionDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeletedSession, err error\)](<#SessionService.Delete>) + - [func \(r \*SessionService\) Get\(ctx context.Context, sessionID string, query SessionGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSession, err error\)](<#SessionService.Get>) + - [func \(r \*SessionService\) List\(ctx context.Context, params SessionListParams, opts ...option.RequestOption\) \(res \*pagination.BidirectionalPageCursor\[ManagedAgentsSession\], err error\)](<#SessionService.List>) + - [func \(r \*SessionService\) ListAutoPaging\(ctx context.Context, params SessionListParams, opts ...option.RequestOption\) \*pagination.BidirectionalPageCursorAutoPager\[ManagedAgentsSession\]](<#SessionService.ListAutoPaging>) + - [func \(r \*SessionService\) New\(ctx context.Context, params SessionNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSession, err error\)](<#SessionService.New>) + - [func \(r \*SessionService\) Update\(ctx context.Context, sessionID string, params SessionUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSession, err error\)](<#SessionService.Update>) +- [type SessionThreadArchiveParams](<#SessionThreadArchiveParams>) +- [type SessionThreadEventListParams](<#SessionThreadEventListParams>) + - [func \(r SessionThreadEventListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionThreadEventListParams.URLQuery>) +- [type SessionThreadEventService](<#SessionThreadEventService>) + - [func NewSessionThreadEventService\(opts ...option.RequestOption\) \(r SessionThreadEventService\)](<#NewSessionThreadEventService>) + - [func \(r \*SessionThreadEventService\) List\(ctx context.Context, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsSessionEventUnion\], err error\)](<#SessionThreadEventService.List>) + - [func \(r \*SessionThreadEventService\) ListAutoPaging\(ctx context.Context, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsSessionEventUnion\]](<#SessionThreadEventService.ListAutoPaging>) + - [func \(r \*SessionThreadEventService\) StreamEvents\(ctx context.Context, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption\) \(stream \*ssestream.Stream\[ManagedAgentsStreamSessionThreadEventsUnion\]\)](<#SessionThreadEventService.StreamEvents>) +- [type SessionThreadEventStreamParams](<#SessionThreadEventStreamParams>) + - [func \(r SessionThreadEventStreamParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionThreadEventStreamParams.URLQuery>) +- [type SessionThreadGetParams](<#SessionThreadGetParams>) +- [type SessionThreadListParams](<#SessionThreadListParams>) + - [func \(r SessionThreadListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SessionThreadListParams.URLQuery>) +- [type SessionThreadService](<#SessionThreadService>) + - [func NewSessionThreadService\(opts ...option.RequestOption\) \(r SessionThreadService\)](<#NewSessionThreadService>) + - [func \(r \*SessionThreadService\) Archive\(ctx context.Context, threadID string, params SessionThreadArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSessionThread, err error\)](<#SessionThreadService.Archive>) + - [func \(r \*SessionThreadService\) Get\(ctx context.Context, threadID string, params SessionThreadGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsSessionThread, err error\)](<#SessionThreadService.Get>) + - [func \(r \*SessionThreadService\) List\(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsSessionThread\], err error\)](<#SessionThreadService.List>) + - [func \(r \*SessionThreadService\) ListAutoPaging\(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsSessionThread\]](<#SessionThreadService.ListAutoPaging>) +- [type SessionUpdateParams](<#SessionUpdateParams>) + - [func \(r SessionUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#SessionUpdateParams.MarshalJSON>) + - [func \(r \*SessionUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#SessionUpdateParams.UnmarshalJSON>) +- [type SessionWorkData](<#SessionWorkData>) + - [func \(r SessionWorkData\) RawJSON\(\) string](<#SessionWorkData.RawJSON>) + - [func \(r \*SessionWorkData\) UnmarshalJSON\(data \[\]byte\) error](<#SessionWorkData.UnmarshalJSON>) +- [type Skill](<#Skill>) + - [func \(r Skill\) RawJSON\(\) string](<#Skill.RawJSON>) + - [func \(r \*Skill\) UnmarshalJSON\(data \[\]byte\) error](<#Skill.UnmarshalJSON>) +- [type SkillDeleteParams](<#SkillDeleteParams>) +- [type SkillGetParams](<#SkillGetParams>) +- [type SkillListParams](<#SkillListParams>) + - [func \(r SkillListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SkillListParams.URLQuery>) +- [type SkillNewParams](<#SkillNewParams>) + - [func \(r SkillNewParams\) MarshalMultipart\(\) \(data \[\]byte, contentType string, err error\)](<#SkillNewParams.MarshalMultipart>) +- [type SkillService](<#SkillService>) + - [func NewSkillService\(opts ...option.RequestOption\) \(r SkillService\)](<#NewSkillService>) + - [func \(r \*SkillService\) Delete\(ctx context.Context, skillID string, body SkillDeleteParams, opts ...option.RequestOption\) \(res \*DeletedSkill, err error\)](<#SkillService.Delete>) + - [func \(r \*SkillService\) Get\(ctx context.Context, skillID string, query SkillGetParams, opts ...option.RequestOption\) \(res \*Skill, err error\)](<#SkillService.Get>) + - [func \(r \*SkillService\) List\(ctx context.Context, params SkillListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[Skill\], err error\)](<#SkillService.List>) + - [func \(r \*SkillService\) ListAutoPaging\(ctx context.Context, params SkillListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[Skill\]](<#SkillService.ListAutoPaging>) + - [func \(r \*SkillService\) New\(ctx context.Context, params SkillNewParams, opts ...option.RequestOption\) \(res \*Skill, err error\)](<#SkillService.New>) +- [type SkillSource](<#SkillSource>) + - [func \(r SkillSource\) RawJSON\(\) string](<#SkillSource.RawJSON>) + - [func \(r \*SkillSource\) UnmarshalJSON\(data \[\]byte\) error](<#SkillSource.UnmarshalJSON>) +- [type SkillSourceType](<#SkillSourceType>) +- [type SkillVersion](<#SkillVersion>) + - [func \(r SkillVersion\) RawJSON\(\) string](<#SkillVersion.RawJSON>) + - [func \(r \*SkillVersion\) UnmarshalJSON\(data \[\]byte\) error](<#SkillVersion.UnmarshalJSON>) +- [type SkillVersionDeleteParams](<#SkillVersionDeleteParams>) +- [type SkillVersionDownloadParams](<#SkillVersionDownloadParams>) +- [type SkillVersionGetParams](<#SkillVersionGetParams>) +- [type SkillVersionListParams](<#SkillVersionListParams>) + - [func \(r SkillVersionListParams\) URLQuery\(\) \(v url.Values, err error\)](<#SkillVersionListParams.URLQuery>) +- [type SkillVersionNewParams](<#SkillVersionNewParams>) + - [func \(r SkillVersionNewParams\) MarshalMultipart\(\) \(data \[\]byte, contentType string, err error\)](<#SkillVersionNewParams.MarshalMultipart>) +- [type SkillVersionService](<#SkillVersionService>) + - [func NewSkillVersionService\(opts ...option.RequestOption\) \(r SkillVersionService\)](<#NewSkillVersionService>) + - [func \(r \*SkillVersionService\) Delete\(ctx context.Context, version string, params SkillVersionDeleteParams, opts ...option.RequestOption\) \(res \*DeletedSkillVersion, err error\)](<#SkillVersionService.Delete>) + - [func \(r \*SkillVersionService\) Download\(ctx context.Context, version string, params SkillVersionDownloadParams, opts ...option.RequestOption\) \(res \*http.Response, err error\)](<#SkillVersionService.Download>) + - [func \(r \*SkillVersionService\) Get\(ctx context.Context, version string, params SkillVersionGetParams, opts ...option.RequestOption\) \(res \*SkillVersion, err error\)](<#SkillVersionService.Get>) + - [func \(r \*SkillVersionService\) List\(ctx context.Context, skillID string, params SkillVersionListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[SkillVersion\], err error\)](<#SkillVersionService.List>) + - [func \(r \*SkillVersionService\) ListAutoPaging\(ctx context.Context, skillID string, params SkillVersionListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[SkillVersion\]](<#SkillVersionService.ListAutoPaging>) + - [func \(r \*SkillVersionService\) New\(ctx context.Context, skillID string, params SkillVersionNewParams, opts ...option.RequestOption\) \(res \*SkillVersion, err error\)](<#SkillVersionService.New>) +- [type TextBlockParam](<#TextBlockParam>) + - [func \(r TextBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextBlockParam.MarshalJSON>) + - [func \(r \*TextBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextBlockParam.UnmarshalJSON>) +- [type TextCitationParamUnion](<#TextCitationParamUnion>) + - [func \(u TextCitationParamUnion\) GetCitedText\(\) \*string](<#TextCitationParamUnion.GetCitedText>) + - [func \(u TextCitationParamUnion\) GetDocumentIndex\(\) \*int64](<#TextCitationParamUnion.GetDocumentIndex>) + - [func \(u TextCitationParamUnion\) GetDocumentTitle\(\) \*string](<#TextCitationParamUnion.GetDocumentTitle>) + - [func \(u TextCitationParamUnion\) GetEncryptedIndex\(\) \*string](<#TextCitationParamUnion.GetEncryptedIndex>) + - [func \(u TextCitationParamUnion\) GetEndBlockIndex\(\) \*int64](<#TextCitationParamUnion.GetEndBlockIndex>) + - [func \(u TextCitationParamUnion\) GetEndCharIndex\(\) \*int64](<#TextCitationParamUnion.GetEndCharIndex>) + - [func \(u TextCitationParamUnion\) GetEndPageNumber\(\) \*int64](<#TextCitationParamUnion.GetEndPageNumber>) + - [func \(u TextCitationParamUnion\) GetSearchResultIndex\(\) \*int64](<#TextCitationParamUnion.GetSearchResultIndex>) + - [func \(u TextCitationParamUnion\) GetSource\(\) \*string](<#TextCitationParamUnion.GetSource>) + - [func \(u TextCitationParamUnion\) GetStartBlockIndex\(\) \*int64](<#TextCitationParamUnion.GetStartBlockIndex>) + - [func \(u TextCitationParamUnion\) GetStartCharIndex\(\) \*int64](<#TextCitationParamUnion.GetStartCharIndex>) + - [func \(u TextCitationParamUnion\) GetStartPageNumber\(\) \*int64](<#TextCitationParamUnion.GetStartPageNumber>) + - [func \(u TextCitationParamUnion\) GetTitle\(\) \*string](<#TextCitationParamUnion.GetTitle>) + - [func \(u TextCitationParamUnion\) GetType\(\) \*string](<#TextCitationParamUnion.GetType>) + - [func \(u TextCitationParamUnion\) GetURL\(\) \*string](<#TextCitationParamUnion.GetURL>) + - [func \(u TextCitationParamUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextCitationParamUnion.MarshalJSON>) + - [func \(u \*TextCitationParamUnion\) UnmarshalJSON\(data \[\]byte\) error](<#TextCitationParamUnion.UnmarshalJSON>) +- [type TextEditorCodeExecutionCreateResultBlockParam](<#TextEditorCodeExecutionCreateResultBlockParam>) + - [func \(r TextEditorCodeExecutionCreateResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextEditorCodeExecutionCreateResultBlockParam.MarshalJSON>) + - [func \(r \*TextEditorCodeExecutionCreateResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionCreateResultBlockParam.UnmarshalJSON>) +- [type TextEditorCodeExecutionStrReplaceResultBlockParam](<#TextEditorCodeExecutionStrReplaceResultBlockParam>) + - [func \(r TextEditorCodeExecutionStrReplaceResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextEditorCodeExecutionStrReplaceResultBlockParam.MarshalJSON>) + - [func \(r \*TextEditorCodeExecutionStrReplaceResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionStrReplaceResultBlockParam.UnmarshalJSON>) +- [type TextEditorCodeExecutionToolResultBlockParam](<#TextEditorCodeExecutionToolResultBlockParam>) + - [func \(r TextEditorCodeExecutionToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextEditorCodeExecutionToolResultBlockParam.MarshalJSON>) + - [func \(r \*TextEditorCodeExecutionToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionToolResultBlockParam.UnmarshalJSON>) +- [type TextEditorCodeExecutionToolResultBlockParamContentUnion](<#TextEditorCodeExecutionToolResultBlockParamContentUnion>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetContent\(\) \*string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetContent>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetErrorMessage\(\) \*string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetErrorMessage>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetFileType\(\) \*string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetFileType>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetIsFileUpdate\(\) \*bool](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetIsFileUpdate>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetLines\(\) \[\]string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetLines>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetNewLines\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetNewLines>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetNewStart\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetNewStart>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetNumLines\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetNumLines>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetOldLines\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetOldLines>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetOldStart\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetOldStart>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetStartLine\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetStartLine>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetTotalLines\(\) \*int64](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetTotalLines>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) GetType\(\) \*string](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.GetType>) + - [func \(u TextEditorCodeExecutionToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*TextEditorCodeExecutionToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type TextEditorCodeExecutionToolResultErrorParam](<#TextEditorCodeExecutionToolResultErrorParam>) + - [func \(r TextEditorCodeExecutionToolResultErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextEditorCodeExecutionToolResultErrorParam.MarshalJSON>) + - [func \(r \*TextEditorCodeExecutionToolResultErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionToolResultErrorParam.UnmarshalJSON>) +- [type TextEditorCodeExecutionToolResultErrorParamErrorCode](<#TextEditorCodeExecutionToolResultErrorParamErrorCode>) +- [type TextEditorCodeExecutionViewResultBlockParam](<#TextEditorCodeExecutionViewResultBlockParam>) + - [func \(r TextEditorCodeExecutionViewResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#TextEditorCodeExecutionViewResultBlockParam.MarshalJSON>) + - [func \(r \*TextEditorCodeExecutionViewResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#TextEditorCodeExecutionViewResultBlockParam.UnmarshalJSON>) +- [type TextEditorCodeExecutionViewResultBlockParamFileType](<#TextEditorCodeExecutionViewResultBlockParamFileType>) +- [type ThinkingBlockParam](<#ThinkingBlockParam>) + - [func \(r ThinkingBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ThinkingBlockParam.MarshalJSON>) + - [func \(r \*ThinkingBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ThinkingBlockParam.UnmarshalJSON>) +- [type ThinkingCapability](<#ThinkingCapability>) + - [func \(r ThinkingCapability\) RawJSON\(\) string](<#ThinkingCapability.RawJSON>) + - [func \(r \*ThinkingCapability\) UnmarshalJSON\(data \[\]byte\) error](<#ThinkingCapability.UnmarshalJSON>) +- [type ThinkingTypes](<#ThinkingTypes>) + - [func \(r ThinkingTypes\) RawJSON\(\) string](<#ThinkingTypes.RawJSON>) + - [func \(r \*ThinkingTypes\) UnmarshalJSON\(data \[\]byte\) error](<#ThinkingTypes.UnmarshalJSON>) +- [type ToolChangeMCPToolReferenceParam](<#ToolChangeMCPToolReferenceParam>) + - [func \(r ToolChangeMCPToolReferenceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolChangeMCPToolReferenceParam.MarshalJSON>) + - [func \(r \*ToolChangeMCPToolReferenceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolChangeMCPToolReferenceParam.UnmarshalJSON>) +- [type ToolChangeMCPToolsetReferenceParam](<#ToolChangeMCPToolsetReferenceParam>) + - [func \(r ToolChangeMCPToolsetReferenceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolChangeMCPToolsetReferenceParam.MarshalJSON>) + - [func \(r \*ToolChangeMCPToolsetReferenceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolChangeMCPToolsetReferenceParam.UnmarshalJSON>) +- [type ToolChangeToolReferenceParam](<#ToolChangeToolReferenceParam>) + - [func \(r ToolChangeToolReferenceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolChangeToolReferenceParam.MarshalJSON>) + - [func \(r \*ToolChangeToolReferenceParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolChangeToolReferenceParam.UnmarshalJSON>) +- [type ToolReferenceBlockParam](<#ToolReferenceBlockParam>) + - [func \(r ToolReferenceBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolReferenceBlockParam.MarshalJSON>) + - [func \(r \*ToolReferenceBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolReferenceBlockParam.UnmarshalJSON>) +- [type ToolResultBlockParam](<#ToolResultBlockParam>) + - [func \(r ToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolResultBlockParam.MarshalJSON>) + - [func \(r \*ToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolResultBlockParam.UnmarshalJSON>) +- [type ToolResultBlockParamContentUnion](<#ToolResultBlockParamContentUnion>) + - [func \(u ToolResultBlockParamContentUnion\) GetCacheControl\(\) \*CacheControlEphemeralParam](<#ToolResultBlockParamContentUnion.GetCacheControl>) + - [func \(u ToolResultBlockParamContentUnion\) GetCitations\(\) \(res toolResultBlockParamContentUnionCitations\)](<#ToolResultBlockParamContentUnion.GetCitations>) + - [func \(u ToolResultBlockParamContentUnion\) GetContent\(\) \[\]TextBlockParam](<#ToolResultBlockParamContentUnion.GetContent>) + - [func \(u ToolResultBlockParamContentUnion\) GetContext\(\) \*string](<#ToolResultBlockParamContentUnion.GetContext>) + - [func \(u ToolResultBlockParamContentUnion\) GetSource\(\) \(res toolResultBlockParamContentUnionSource\)](<#ToolResultBlockParamContentUnion.GetSource>) + - [func \(u ToolResultBlockParamContentUnion\) GetStateChanges\(\) \[\]BrowserStateChangeUnionParam](<#ToolResultBlockParamContentUnion.GetStateChanges>) + - [func \(u ToolResultBlockParamContentUnion\) GetTabs\(\) \[\]BrowserStateTabEntryParam](<#ToolResultBlockParamContentUnion.GetTabs>) + - [func \(u ToolResultBlockParamContentUnion\) GetText\(\) \*string](<#ToolResultBlockParamContentUnion.GetText>) + - [func \(u ToolResultBlockParamContentUnion\) GetTitle\(\) \*string](<#ToolResultBlockParamContentUnion.GetTitle>) + - [func \(u ToolResultBlockParamContentUnion\) GetToolName\(\) \*string](<#ToolResultBlockParamContentUnion.GetToolName>) + - [func \(u ToolResultBlockParamContentUnion\) GetTransformations\(\) \*ImageTransformationsParam](<#ToolResultBlockParamContentUnion.GetTransformations>) + - [func \(u ToolResultBlockParamContentUnion\) GetType\(\) \*string](<#ToolResultBlockParamContentUnion.GetType>) + - [func \(u ToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*ToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type ToolSearchToolResultBlockParam](<#ToolSearchToolResultBlockParam>) + - [func \(r ToolSearchToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolSearchToolResultBlockParam.MarshalJSON>) + - [func \(r \*ToolSearchToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolSearchToolResultBlockParam.UnmarshalJSON>) +- [type ToolSearchToolResultBlockParamContentUnion](<#ToolSearchToolResultBlockParamContentUnion>) + - [func \(u ToolSearchToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#ToolSearchToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u ToolSearchToolResultBlockParamContentUnion\) GetErrorMessage\(\) \*string](<#ToolSearchToolResultBlockParamContentUnion.GetErrorMessage>) + - [func \(u ToolSearchToolResultBlockParamContentUnion\) GetToolReferences\(\) \[\]ToolReferenceBlockParam](<#ToolSearchToolResultBlockParamContentUnion.GetToolReferences>) + - [func \(u ToolSearchToolResultBlockParamContentUnion\) GetType\(\) \*string](<#ToolSearchToolResultBlockParamContentUnion.GetType>) + - [func \(u ToolSearchToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*ToolSearchToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ToolSearchToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type ToolSearchToolResultErrorParam](<#ToolSearchToolResultErrorParam>) + - [func \(r ToolSearchToolResultErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolSearchToolResultErrorParam.MarshalJSON>) + - [func \(r \*ToolSearchToolResultErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolSearchToolResultErrorParam.UnmarshalJSON>) +- [type ToolSearchToolResultErrorParamErrorCode](<#ToolSearchToolResultErrorParamErrorCode>) +- [type ToolSearchToolSearchResultBlockParam](<#ToolSearchToolSearchResultBlockParam>) + - [func \(r ToolSearchToolSearchResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolSearchToolSearchResultBlockParam.MarshalJSON>) + - [func \(r \*ToolSearchToolSearchResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolSearchToolSearchResultBlockParam.UnmarshalJSON>) +- [type ToolUseBlockParam](<#ToolUseBlockParam>) + - [func \(r ToolUseBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#ToolUseBlockParam.MarshalJSON>) + - [func \(r \*ToolUseBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#ToolUseBlockParam.UnmarshalJSON>) +- [type ToolUseBlockParamCallerUnion](<#ToolUseBlockParamCallerUnion>) + - [func \(u ToolUseBlockParamCallerUnion\) GetToolID\(\) \*string](<#ToolUseBlockParamCallerUnion.GetToolID>) + - [func \(u ToolUseBlockParamCallerUnion\) GetType\(\) \*string](<#ToolUseBlockParamCallerUnion.GetType>) + - [func \(u ToolUseBlockParamCallerUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolUseBlockParamCallerUnion.MarshalJSON>) + - [func \(u \*ToolUseBlockParamCallerUnion\) UnmarshalJSON\(data \[\]byte\) error](<#ToolUseBlockParamCallerUnion.UnmarshalJSON>) +- [type URLImageSourceParam](<#URLImageSourceParam>) + - [func \(r URLImageSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#URLImageSourceParam.MarshalJSON>) + - [func \(r \*URLImageSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#URLImageSourceParam.UnmarshalJSON>) +- [type URLPDFSourceParam](<#URLPDFSourceParam>) + - [func \(r URLPDFSourceParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#URLPDFSourceParam.MarshalJSON>) + - [func \(r \*URLPDFSourceParam\) UnmarshalJSON\(data \[\]byte\) error](<#URLPDFSourceParam.UnmarshalJSON>) +- [type UnrestrictedNetwork](<#UnrestrictedNetwork>) + - [func \(r UnrestrictedNetwork\) RawJSON\(\) string](<#UnrestrictedNetwork.RawJSON>) + - [func \(r UnrestrictedNetwork\) ToParam\(\) UnrestrictedNetworkParam](<#UnrestrictedNetwork.ToParam>) + - [func \(r \*UnrestrictedNetwork\) UnmarshalJSON\(data \[\]byte\) error](<#UnrestrictedNetwork.UnmarshalJSON>) +- [type UnrestrictedNetworkParam](<#UnrestrictedNetworkParam>) + - [func NewUnrestrictedNetworkParam\(\) UnrestrictedNetworkParam](<#NewUnrestrictedNetworkParam>) + - [func \(r UnrestrictedNetworkParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#UnrestrictedNetworkParam.MarshalJSON>) + - [func \(r \*UnrestrictedNetworkParam\) UnmarshalJSON\(data \[\]byte\) error](<#UnrestrictedNetworkParam.UnmarshalJSON>) +- [type VaultArchiveParams](<#VaultArchiveParams>) +- [type VaultCredentialArchiveParams](<#VaultCredentialArchiveParams>) +- [type VaultCredentialDeleteParams](<#VaultCredentialDeleteParams>) +- [type VaultCredentialGetParams](<#VaultCredentialGetParams>) +- [type VaultCredentialListParams](<#VaultCredentialListParams>) + - [func \(r VaultCredentialListParams\) URLQuery\(\) \(v url.Values, err error\)](<#VaultCredentialListParams.URLQuery>) +- [type VaultCredentialMCPOAuthValidateParams](<#VaultCredentialMCPOAuthValidateParams>) +- [type VaultCredentialNewParams](<#VaultCredentialNewParams>) + - [func \(r VaultCredentialNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#VaultCredentialNewParams.MarshalJSON>) + - [func \(r \*VaultCredentialNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialNewParams.UnmarshalJSON>) +- [type VaultCredentialNewParamsAuthUnion](<#VaultCredentialNewParamsAuthUnion>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetAccessToken\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetAccessToken>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetExpiresAt\(\) \*time.Time](<#VaultCredentialNewParamsAuthUnion.GetExpiresAt>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetInjectionLocation\(\) \*ManagedAgentsInjectionLocationParams](<#VaultCredentialNewParamsAuthUnion.GetInjectionLocation>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetMCPServerURL\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetMCPServerURL>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetNetworking\(\) \*ManagedAgentsCredentialNetworkingParamsUnion](<#VaultCredentialNewParamsAuthUnion.GetNetworking>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetRefresh\(\) \*ManagedAgentsMCPOAuthRefreshParams](<#VaultCredentialNewParamsAuthUnion.GetRefresh>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetSecretName\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetSecretName>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetSecretValue\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetSecretValue>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetToken\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetToken>) + - [func \(u VaultCredentialNewParamsAuthUnion\) GetType\(\) \*string](<#VaultCredentialNewParamsAuthUnion.GetType>) + - [func \(u VaultCredentialNewParamsAuthUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialNewParamsAuthUnion.MarshalJSON>) + - [func \(u \*VaultCredentialNewParamsAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialNewParamsAuthUnion.UnmarshalJSON>) +- [type VaultCredentialService](<#VaultCredentialService>) + - [func NewVaultCredentialService\(opts ...option.RequestOption\) \(r VaultCredentialService\)](<#NewVaultCredentialService>) + - [func \(r \*VaultCredentialService\) Archive\(ctx context.Context, credentialID string, params VaultCredentialArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsCredential, err error\)](<#VaultCredentialService.Archive>) + - [func \(r \*VaultCredentialService\) Delete\(ctx context.Context, credentialID string, params VaultCredentialDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeletedCredential, err error\)](<#VaultCredentialService.Delete>) + - [func \(r \*VaultCredentialService\) Get\(ctx context.Context, credentialID string, params VaultCredentialGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsCredential, err error\)](<#VaultCredentialService.Get>) + - [func \(r \*VaultCredentialService\) List\(ctx context.Context, vaultID string, params VaultCredentialListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsCredential\], err error\)](<#VaultCredentialService.List>) + - [func \(r \*VaultCredentialService\) ListAutoPaging\(ctx context.Context, vaultID string, params VaultCredentialListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsCredential\]](<#VaultCredentialService.ListAutoPaging>) + - [func \(r \*VaultCredentialService\) MCPOAuthValidate\(ctx context.Context, credentialID string, params VaultCredentialMCPOAuthValidateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsCredentialValidation, err error\)](<#VaultCredentialService.MCPOAuthValidate>) + - [func \(r \*VaultCredentialService\) New\(ctx context.Context, vaultID string, params VaultCredentialNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsCredential, err error\)](<#VaultCredentialService.New>) + - [func \(r \*VaultCredentialService\) Update\(ctx context.Context, credentialID string, params VaultCredentialUpdateParams, opts ...option.RequestOption\) \(res \*ManagedAgentsCredential, err error\)](<#VaultCredentialService.Update>) +- [type VaultCredentialUpdateParams](<#VaultCredentialUpdateParams>) + - [func \(r VaultCredentialUpdateParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#VaultCredentialUpdateParams.MarshalJSON>) + - [func \(r \*VaultCredentialUpdateParams\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialUpdateParams.UnmarshalJSON>) +- [type VaultCredentialUpdateParamsAuthUnion](<#VaultCredentialUpdateParamsAuthUnion>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetAccessToken\(\) \*string](<#VaultCredentialUpdateParamsAuthUnion.GetAccessToken>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetExpiresAt\(\) \*time.Time](<#VaultCredentialUpdateParamsAuthUnion.GetExpiresAt>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetInjectionLocation\(\) \*ManagedAgentsInjectionLocationUpdateParams](<#VaultCredentialUpdateParamsAuthUnion.GetInjectionLocation>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetNetworking\(\) \*ManagedAgentsCredentialNetworkingParamsUnion](<#VaultCredentialUpdateParamsAuthUnion.GetNetworking>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetRefresh\(\) \*ManagedAgentsMCPOAuthRefreshUpdateParams](<#VaultCredentialUpdateParamsAuthUnion.GetRefresh>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetSecretValue\(\) \*string](<#VaultCredentialUpdateParamsAuthUnion.GetSecretValue>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetToken\(\) \*string](<#VaultCredentialUpdateParamsAuthUnion.GetToken>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) GetType\(\) \*string](<#VaultCredentialUpdateParamsAuthUnion.GetType>) + - [func \(u VaultCredentialUpdateParamsAuthUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialUpdateParamsAuthUnion.MarshalJSON>) + - [func \(u \*VaultCredentialUpdateParamsAuthUnion\) UnmarshalJSON\(data \[\]byte\) error](<#VaultCredentialUpdateParamsAuthUnion.UnmarshalJSON>) +- [type VaultDeleteParams](<#VaultDeleteParams>) +- [type VaultGetParams](<#VaultGetParams>) +- [type VaultListParams](<#VaultListParams>) + - [func \(r VaultListParams\) URLQuery\(\) \(v url.Values, err error\)](<#VaultListParams.URLQuery>) +- [type VaultNewParams](<#VaultNewParams>) + - [func \(r VaultNewParams\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#VaultNewParams.MarshalJSON>) + - [func \(r \*VaultNewParams\) UnmarshalJSON\(data \[\]byte\) error](<#VaultNewParams.UnmarshalJSON>) +- [type VaultService](<#VaultService>) + - [func NewVaultService\(opts ...option.RequestOption\) \(r VaultService\)](<#NewVaultService>) + - [func \(r \*VaultService\) Archive\(ctx context.Context, vaultID string, body VaultArchiveParams, opts ...option.RequestOption\) \(res \*ManagedAgentsVault, err error\)](<#VaultService.Archive>) + - [func \(r \*VaultService\) Delete\(ctx context.Context, vaultID string, body VaultDeleteParams, opts ...option.RequestOption\) \(res \*ManagedAgentsDeletedVault, err error\)](<#VaultService.Delete>) + - [func \(r \*VaultService\) Get\(ctx context.Context, vaultID string, query VaultGetParams, opts ...option.RequestOption\) \(res \*ManagedAgentsVault, err error\)](<#VaultService.Get>) + - [func \(r \*VaultService\) List\(ctx context.Context, params VaultListParams, opts ...option.RequestOption\) \(res \*pagination.PageCursor\[ManagedAgentsVault\], err error\)](<#VaultService.List>) + - [func \(r \*VaultService\) ListAutoPaging\(ctx context.Context, params VaultListParams, opts ...option.RequestOption\) \*pagination.PageCursorAutoPager\[ManagedAgentsVault\]](<#VaultService.ListAutoPaging>) + - [func \(r \*VaultService\) New\(ctx context.Context, params VaultNewParams, opts ...option.RequestOption\) \(res \*ManagedAgentsVault, err error\)](<#VaultService.New>) +- [type WebFetchBlockParam](<#WebFetchBlockParam>) + - [func \(r WebFetchBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebFetchBlockParam.MarshalJSON>) + - [func \(r \*WebFetchBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebFetchBlockParam.UnmarshalJSON>) +- [type WebFetchToolResultBlockParam](<#WebFetchToolResultBlockParam>) + - [func \(r WebFetchToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebFetchToolResultBlockParam.MarshalJSON>) + - [func \(r \*WebFetchToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebFetchToolResultBlockParam.UnmarshalJSON>) +- [type WebFetchToolResultBlockParamCallerUnion](<#WebFetchToolResultBlockParamCallerUnion>) + - [func \(u WebFetchToolResultBlockParamCallerUnion\) GetToolID\(\) \*string](<#WebFetchToolResultBlockParamCallerUnion.GetToolID>) + - [func \(u WebFetchToolResultBlockParamCallerUnion\) GetType\(\) \*string](<#WebFetchToolResultBlockParamCallerUnion.GetType>) + - [func \(u WebFetchToolResultBlockParamCallerUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetchToolResultBlockParamCallerUnion.MarshalJSON>) + - [func \(u \*WebFetchToolResultBlockParamCallerUnion\) UnmarshalJSON\(data \[\]byte\) error](<#WebFetchToolResultBlockParamCallerUnion.UnmarshalJSON>) +- [type WebFetchToolResultBlockParamContentUnion](<#WebFetchToolResultBlockParamContentUnion>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) GetContent\(\) \*RequestDocumentBlockParam](<#WebFetchToolResultBlockParamContentUnion.GetContent>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) GetErrorCode\(\) \*string](<#WebFetchToolResultBlockParamContentUnion.GetErrorCode>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) GetRetrievedAt\(\) \*string](<#WebFetchToolResultBlockParamContentUnion.GetRetrievedAt>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) GetType\(\) \*string](<#WebFetchToolResultBlockParamContentUnion.GetType>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) GetURL\(\) \*string](<#WebFetchToolResultBlockParamContentUnion.GetURL>) + - [func \(u WebFetchToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetchToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*WebFetchToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#WebFetchToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type WebFetchToolResultErrorBlockParam](<#WebFetchToolResultErrorBlockParam>) + - [func \(r WebFetchToolResultErrorBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebFetchToolResultErrorBlockParam.MarshalJSON>) + - [func \(r \*WebFetchToolResultErrorBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebFetchToolResultErrorBlockParam.UnmarshalJSON>) +- [type WebFetchToolResultErrorCode](<#WebFetchToolResultErrorCode>) +- [type WebSearchResultBlockParam](<#WebSearchResultBlockParam>) + - [func \(r WebSearchResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebSearchResultBlockParam.MarshalJSON>) + - [func \(r \*WebSearchResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebSearchResultBlockParam.UnmarshalJSON>) +- [type WebSearchToolRequestErrorParam](<#WebSearchToolRequestErrorParam>) + - [func \(r WebSearchToolRequestErrorParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebSearchToolRequestErrorParam.MarshalJSON>) + - [func \(r \*WebSearchToolRequestErrorParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebSearchToolRequestErrorParam.UnmarshalJSON>) +- [type WebSearchToolResultBlockParam](<#WebSearchToolResultBlockParam>) + - [func \(r WebSearchToolResultBlockParam\) MarshalJSON\(\) \(data \[\]byte, err error\)](<#WebSearchToolResultBlockParam.MarshalJSON>) + - [func \(r \*WebSearchToolResultBlockParam\) UnmarshalJSON\(data \[\]byte\) error](<#WebSearchToolResultBlockParam.UnmarshalJSON>) +- [type WebSearchToolResultBlockParamCallerUnion](<#WebSearchToolResultBlockParamCallerUnion>) + - [func \(u WebSearchToolResultBlockParamCallerUnion\) GetToolID\(\) \*string](<#WebSearchToolResultBlockParamCallerUnion.GetToolID>) + - [func \(u WebSearchToolResultBlockParamCallerUnion\) GetType\(\) \*string](<#WebSearchToolResultBlockParamCallerUnion.GetType>) + - [func \(u WebSearchToolResultBlockParamCallerUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchToolResultBlockParamCallerUnion.MarshalJSON>) + - [func \(u \*WebSearchToolResultBlockParamCallerUnion\) UnmarshalJSON\(data \[\]byte\) error](<#WebSearchToolResultBlockParamCallerUnion.UnmarshalJSON>) +- [type WebSearchToolResultBlockParamContentUnion](<#WebSearchToolResultBlockParamContentUnion>) + - [func \(u WebSearchToolResultBlockParamContentUnion\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchToolResultBlockParamContentUnion.MarshalJSON>) + - [func \(u \*WebSearchToolResultBlockParamContentUnion\) UnmarshalJSON\(data \[\]byte\) error](<#WebSearchToolResultBlockParamContentUnion.UnmarshalJSON>) +- [type WebSearchToolResultErrorCode](<#WebSearchToolResultErrorCode>) + + +## Constants + + + +```go +const DefaultBaseURL = "https://api.qoder.com/api/v1/cloud/" +``` + + +## func [Bool]() + +```go +func Bool(v bool) param.Opt[bool] +``` + + + + +## func [Float]() + +```go +func Float(v float64) param.Opt[float64] +``` + + + + +## func [Int]() + +```go +func Int(v int64) param.Opt[int64] +``` + + + + +## func [String]() + +```go +func String(v string) param.Opt[string] +``` + + + + +## type [AdvisorRedactedResultBlockParam]() + +The properties EncryptedContent, Type are required. + +```go +type AdvisorRedactedResultBlockParam struct { + // Opaque blob produced by a prior response; must be round-tripped verbatim. + EncryptedContent string `json:"encrypted_content" api:"required"` + StopReason param.Opt[string] `json:"stop_reason,omitzero"` + // This field can be elided, and will marshal its zero value as + // "advisor_redacted_result". + Type constant.AdvisorRedactedResult `json:"type" default:"advisor_redacted_result"` + // contains filtered or unexported fields +} +``` + + +### func \(AdvisorRedactedResultBlockParam\) [MarshalJSON]() + +```go +func (r AdvisorRedactedResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AdvisorRedactedResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *AdvisorRedactedResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [AdvisorResultBlockParam]() + +The properties Text, Type are required. + +```go +type AdvisorResultBlockParam struct { + Text string `json:"text" api:"required"` + StopReason param.Opt[string] `json:"stop_reason,omitzero"` + // This field can be elided, and will marshal its zero value as "advisor_result". + Type constant.AdvisorResult `json:"type" default:"advisor_result"` + // contains filtered or unexported fields +} +``` + + +### func \(AdvisorResultBlockParam\) [MarshalJSON]() + +```go +func (r AdvisorResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AdvisorResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *AdvisorResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [AdvisorToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type AdvisorToolResultBlockParam struct { + Content AdvisorToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as + // "advisor_tool_result". + Type constant.AdvisorToolResult `json:"type" default:"advisor_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(AdvisorToolResultBlockParam\) [MarshalJSON]() + +```go +func (r AdvisorToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AdvisorToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *AdvisorToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [AdvisorToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type AdvisorToolResultBlockParamContentUnion struct { + OfRequestAdvisorToolResultError *AdvisorToolResultErrorParam `json:",omitzero,inline"` + OfRequestAdvisorResultBlock *AdvisorResultBlockParam `json:",omitzero,inline"` + OfRequestAdvisorRedactedResultBlock *AdvisorRedactedResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(AdvisorToolResultBlockParamContentUnion\) [GetEncryptedContent]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) GetEncryptedContent() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AdvisorToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AdvisorToolResultBlockParamContentUnion\) [GetStopReason]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) GetStopReason() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AdvisorToolResultBlockParamContentUnion\) [GetText]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AdvisorToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AdvisorToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u AdvisorToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*AdvisorToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *AdvisorToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [AdvisorToolResultErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type AdvisorToolResultErrorParam struct { + // Any of "max_uses_exceeded", "prompt_too_long", "too_many_requests", + // "overloaded", "unavailable", "execution_time_exceeded", "model_not_found". + ErrorCode AdvisorToolResultErrorParamErrorCode `json:"error_code,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "advisor_tool_result_error". + Type constant.AdvisorToolResultError `json:"type" default:"advisor_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(AdvisorToolResultErrorParam\) [MarshalJSON]() + +```go +func (r AdvisorToolResultErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AdvisorToolResultErrorParam\) [UnmarshalJSON]() + +```go +func (r *AdvisorToolResultErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [AdvisorToolResultErrorParamErrorCode]() + + + +```go +type AdvisorToolResultErrorParamErrorCode string +``` + + +## type [AgentArchiveParams]() + + + +```go +type AgentArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [AgentGetParams]() + + + +```go +type AgentGetParams struct { + // Agent version. Omit for the most recent version. Must be at least 1 if + // specified. + Version param.Opt[int64] `query:"version,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentGetParams\) [URLQuery]() + +```go +func (r AgentGetParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [AgentGetParams](<#AgentGetParams>)'s query parameters as \`url.Values\`. + + +## type [AgentListParams]() + + + +```go +type AgentListParams struct { + // Return agents created at or after this time (inclusive). + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return agents created at or before this time (inclusive). + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // Include archived agents in results. Defaults to false. + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum results per page. Default 20, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor from a previous response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentListParams\) [URLQuery]() + +```go +func (r AgentListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [AgentListParams](<#AgentListParams>)'s query parameters as \`url.Values\`. + + +## type [AgentNewParams]() + + + +```go +type AgentNewParams struct { + // Model identifier. Accepts the + // [model string](https://docs.qoder.com/cloud-agents/api/models/list) or a + // `model_config` object for additional configuration control + Model ManagedAgentsModelConfigParams `json:"model,omitzero" api:"required"` + // Human-readable name for the agent. + Name string `json:"name" api:"required"` + // Description of what the agent does. + Description param.Opt[string] `json:"description,omitzero"` + // System prompt for the agent. + System param.Opt[string] `json:"system,omitzero"` + // MCP servers this agent connects to. Maximum 20. Names must be unique within the + // array. Every server must be referenced by an `mcp_toolset` in `tools`; + // unreferenced servers are rejected. See the + // [MCP connector guide](https://docs.qoder.com/cloud-agents/api/agents/schemas). + MCPServers []ManagedAgentsURLMCPServerParams `json:"mcp_servers,omitzero"` + // Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up + // to 512 chars. + Metadata map[string]string `json:"metadata,omitzero"` + // A coordinator topology: the session's primary thread orchestrates work by + // spawning session threads, each running an agent drawn from the `agents` roster. + Multiagent ManagedAgentsMultiagentParams `json:"multiagent,omitzero"` + // Skills available to the agent. + Skills []ManagedAgentsSkillParamsUnion `json:"skills,omitzero"` + // Tool configurations available to the agent. Maximum of 128 tools across all + // toolsets allowed. + Tools []AgentNewParamsToolUnion `json:"tools,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentNewParams\) [MarshalJSON]() + +```go +func (r AgentNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AgentNewParams\) [UnmarshalJSON]() + +```go +func (r *AgentNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [AgentNewParamsToolUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type AgentNewParamsToolUnion struct { + OfAgentToolset20260401 *ManagedAgentsAgentToolset20260401Params `json:",omitzero,inline"` + OfMCPToolset *ManagedAgentsMCPToolsetParams `json:",omitzero,inline"` + OfCustom *ManagedAgentsCustomToolParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentNewParamsToolUnion\) [GetConfigs]() + +```go +func (u AgentNewParamsToolUnion) GetConfigs() (res agentNewParamsToolUnionConfigs) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(AgentNewParamsToolUnion\) [GetDefaultConfig]() + +```go +func (u AgentNewParamsToolUnion) GetDefaultConfig() (res agentNewParamsToolUnionDefaultConfig) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(AgentNewParamsToolUnion\) [GetDescription]() + +```go +func (u AgentNewParamsToolUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentNewParamsToolUnion\) [GetInputSchema]() + +```go +func (u AgentNewParamsToolUnion) GetInputSchema() *ManagedAgentsCustomToolInputSchemaParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentNewParamsToolUnion\) [GetMCPServerName]() + +```go +func (u AgentNewParamsToolUnion) GetMCPServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentNewParamsToolUnion\) [GetName]() + +```go +func (u AgentNewParamsToolUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentNewParamsToolUnion\) [GetType]() + +```go +func (u AgentNewParamsToolUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentNewParamsToolUnion\) [MarshalJSON]() + +```go +func (u AgentNewParamsToolUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*AgentNewParamsToolUnion\) [UnmarshalJSON]() + +```go +func (u *AgentNewParamsToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [AgentService]() + +AgentService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAgentService](<#NewAgentService>) method instead. + +```go +type AgentService struct { + Options []option.RequestOption + Versions AgentVersionService +} +``` + + +### func [NewAgentService]() + +```go +func NewAgentService(opts ...option.RequestOption) (r AgentService) +``` + +NewAgentService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*AgentService\) [Archive]() + +```go +func (r *AgentService) Archive(ctx context.Context, agentID string, body AgentArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsAgent, err error) +``` + +Archive Agent + + +### func \(\*AgentService\) [Get]() + +```go +func (r *AgentService) Get(ctx context.Context, agentID string, params AgentGetParams, opts ...option.RequestOption) (res *ManagedAgentsAgent, err error) +``` + +Get Agent + + +### func \(\*AgentService\) [List]() + +```go +func (r *AgentService) List(ctx context.Context, params AgentListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsAgent], err error) +``` + +List Agents + + +### func \(\*AgentService\) [ListAutoPaging]() + +```go +func (r *AgentService) ListAutoPaging(ctx context.Context, params AgentListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsAgent] +``` + +List Agents + + +### func \(\*AgentService\) [New]() + +```go +func (r *AgentService) New(ctx context.Context, params AgentNewParams, opts ...option.RequestOption) (res *ManagedAgentsAgent, err error) +``` + +Create Agent + + +### func \(\*AgentService\) [Update]() + +```go +func (r *AgentService) Update(ctx context.Context, agentID string, params AgentUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsAgent, err error) +``` + +Update Agent + + +## type [AgentUpdateParams]() + + + +```go +type AgentUpdateParams struct { + // Description. Omit to preserve; send empty string or null to clear. + Description param.Opt[string] `json:"description,omitzero"` + // System prompt. Omit to preserve; send empty string or null to clear. + System param.Opt[string] `json:"system,omitzero"` + // Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared. + Name param.Opt[string] `json:"name,omitzero"` + // The agent's current version, used to prevent concurrent overwrites. Obtain this + // value from a create or retrieve response. Must be at least 1 if specified. When + // supplied, the request fails if it does not match the server's current version; + // omit to apply the update unconditionally. + Version param.Opt[int64] `json:"version,omitzero"` + // MCP servers. Full replacement. Omit to preserve; send empty array or `null` to + // clear. Names must be unique. Maximum 20. Every server must be referenced by an + // `mcp_toolset` in the agent's resulting `tools`; unreferenced servers are + // rejected. See the + // [MCP connector guide](https://docs.qoder.com/cloud-agents/api/agents/schemas). + MCPServers []ManagedAgentsURLMCPServerParams `json:"mcp_servers,omitzero"` + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars + // each) with values up to 512 chars. + Metadata map[string]any `json:"metadata,omitzero"` + // Skills. Full replacement. Omit to preserve; send empty array or null to clear. + Skills []ManagedAgentsSkillParamsUnion `json:"skills,omitzero"` + // Tool configurations available to the agent. Full replacement. Omit to preserve; + // send empty array or null to clear. Maximum of 128 tools across all toolsets + // allowed. + Tools []AgentUpdateParamsToolUnion `json:"tools,omitzero"` + // Model identifier. Accepts the + // [model string](https://docs.qoder.com/cloud-agents/api/models/list) or a + // `model_config` object for additional configuration control. Omit to preserve. + // Cannot be cleared. + Model ManagedAgentsModelConfigParams `json:"model,omitzero"` + // A coordinator topology: the session's primary thread orchestrates work by + // spawning session threads, each running an agent drawn from the `agents` roster. + Multiagent ManagedAgentsMultiagentParams `json:"multiagent,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentUpdateParams\) [MarshalJSON]() + +```go +func (r AgentUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*AgentUpdateParams\) [UnmarshalJSON]() + +```go +func (r *AgentUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [AgentUpdateParamsToolUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type AgentUpdateParamsToolUnion struct { + OfAgentToolset20260401 *ManagedAgentsAgentToolset20260401Params `json:",omitzero,inline"` + OfMCPToolset *ManagedAgentsMCPToolsetParams `json:",omitzero,inline"` + OfCustom *ManagedAgentsCustomToolParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentUpdateParamsToolUnion\) [GetConfigs]() + +```go +func (u AgentUpdateParamsToolUnion) GetConfigs() (res agentUpdateParamsToolUnionConfigs) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(AgentUpdateParamsToolUnion\) [GetDefaultConfig]() + +```go +func (u AgentUpdateParamsToolUnion) GetDefaultConfig() (res agentUpdateParamsToolUnionDefaultConfig) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(AgentUpdateParamsToolUnion\) [GetDescription]() + +```go +func (u AgentUpdateParamsToolUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentUpdateParamsToolUnion\) [GetInputSchema]() + +```go +func (u AgentUpdateParamsToolUnion) GetInputSchema() *ManagedAgentsCustomToolInputSchemaParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentUpdateParamsToolUnion\) [GetMCPServerName]() + +```go +func (u AgentUpdateParamsToolUnion) GetMCPServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentUpdateParamsToolUnion\) [GetName]() + +```go +func (u AgentUpdateParamsToolUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentUpdateParamsToolUnion\) [GetType]() + +```go +func (u AgentUpdateParamsToolUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(AgentUpdateParamsToolUnion\) [MarshalJSON]() + +```go +func (u AgentUpdateParamsToolUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*AgentUpdateParamsToolUnion\) [UnmarshalJSON]() + +```go +func (u *AgentUpdateParamsToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [AgentVersionListParams]() + + + +```go +type AgentVersionListParams struct { + // Maximum results per page. Default 20, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(AgentVersionListParams\) [URLQuery]() + +```go +func (r AgentVersionListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [AgentVersionListParams](<#AgentVersionListParams>)'s query parameters as \`url.Values\`. + + +## type [AgentVersionService]() + +AgentVersionService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewAgentVersionService](<#NewAgentVersionService>) method instead. + +```go +type AgentVersionService struct { + Options []option.RequestOption +} +``` + + +### func [NewAgentVersionService]() + +```go +func NewAgentVersionService(opts ...option.RequestOption) (r AgentVersionService) +``` + +NewAgentVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*AgentVersionService\) [List]() + +```go +func (r *AgentVersionService) List(ctx context.Context, agentID string, params AgentVersionListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsAgent], err error) +``` + +List Agent Versions + + +### func \(\*AgentVersionService\) [ListAutoPaging]() + +```go +func (r *AgentVersionService) ListAutoPaging(ctx context.Context, agentID string, params AgentVersionListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsAgent] +``` + +List Agent Versions + + +## type [Base64ImageSourceMediaType]() + + + +```go +type Base64ImageSourceMediaType string +``` + + +## type [Base64ImageSourceParam]() + +The properties Data, MediaType, Type are required. + +```go +type Base64ImageSourceParam struct { + Data string `json:"data" api:"required" format:"byte"` + // Any of "image/jpeg", "image/png", "image/gif", "image/webp". + MediaType Base64ImageSourceMediaType `json:"media_type,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as "base64". + Type constant.Base64 `json:"type" default:"base64"` + // contains filtered or unexported fields +} +``` + + +### func \(Base64ImageSourceParam\) [MarshalJSON]() + +```go +func (r Base64ImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*Base64ImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *Base64ImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Base64PDFSourceParam]() + +The properties Data, MediaType, Type are required. + +```go +type Base64PDFSourceParam struct { + Data string `json:"data" api:"required" format:"byte"` + // This field can be elided, and will marshal its zero value as "application/pdf". + MediaType constant.ApplicationPDF `json:"media_type" default:"application/pdf"` + // This field can be elided, and will marshal its zero value as "base64". + Type constant.Base64 `json:"type" default:"base64"` + // contains filtered or unexported fields +} +``` + + +### func \(Base64PDFSourceParam\) [MarshalJSON]() + +```go +func (r Base64PDFSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*Base64PDFSourceParam\) [UnmarshalJSON]() + +```go +func (r *Base64PDFSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionOutputBlockParam]() + +The properties FileID, Type are required. + +```go +type BashCodeExecutionOutputBlockParam struct { + FileID string `json:"file_id" api:"required"` + // This field can be elided, and will marshal its zero value as + // "bash_code_execution_output". + Type constant.BashCodeExecutionOutput `json:"type" default:"bash_code_execution_output"` + // contains filtered or unexported fields +} +``` + + +### func \(BashCodeExecutionOutputBlockParam\) [MarshalJSON]() + +```go +func (r BashCodeExecutionOutputBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BashCodeExecutionOutputBlockParam\) [UnmarshalJSON]() + +```go +func (r *BashCodeExecutionOutputBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionResultBlockParam]() + +The properties Content, ReturnCode, Stderr, Stdout, Type are required. + +```go +type BashCodeExecutionResultBlockParam struct { + Content []BashCodeExecutionOutputBlockParam `json:"content,omitzero" api:"required"` + ReturnCode int64 `json:"return_code" api:"required"` + Stderr string `json:"stderr" api:"required"` + Stdout string `json:"stdout" api:"required"` + // This field can be elided, and will marshal its zero value as + // "bash_code_execution_result". + Type constant.BashCodeExecutionResult `json:"type" default:"bash_code_execution_result"` + // contains filtered or unexported fields +} +``` + + +### func \(BashCodeExecutionResultBlockParam\) [MarshalJSON]() + +```go +func (r BashCodeExecutionResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BashCodeExecutionResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *BashCodeExecutionResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type BashCodeExecutionToolResultBlockParam struct { + Content BashCodeExecutionToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as + // "bash_code_execution_tool_result". + Type constant.BashCodeExecutionToolResult `json:"type" default:"bash_code_execution_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(BashCodeExecutionToolResultBlockParam\) [MarshalJSON]() + +```go +func (r BashCodeExecutionToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BashCodeExecutionToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *BashCodeExecutionToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type BashCodeExecutionToolResultBlockParamContentUnion struct { + OfRequestBashCodeExecutionToolResultError *BashCodeExecutionToolResultErrorParam `json:",omitzero,inline"` + OfRequestBashCodeExecutionResultBlock *BashCodeExecutionResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetContent]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetContent() []BashCodeExecutionOutputBlockParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetReturnCode]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetReturnCode() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetStderr]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetStderr() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetStdout]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetStdout() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BashCodeExecutionToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u BashCodeExecutionToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*BashCodeExecutionToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *BashCodeExecutionToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionToolResultErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type BashCodeExecutionToolResultErrorParam struct { + // Any of "invalid_tool_input", "unavailable", "too_many_requests", + // "execution_time_exceeded", "output_file_too_large". + ErrorCode BashCodeExecutionToolResultErrorParamErrorCode `json:"error_code,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "bash_code_execution_tool_result_error". + Type constant.BashCodeExecutionToolResultError `json:"type" default:"bash_code_execution_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(BashCodeExecutionToolResultErrorParam\) [MarshalJSON]() + +```go +func (r BashCodeExecutionToolResultErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BashCodeExecutionToolResultErrorParam\) [UnmarshalJSON]() + +```go +func (r *BashCodeExecutionToolResultErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BashCodeExecutionToolResultErrorParamErrorCode]() + + + +```go +type BashCodeExecutionToolResultErrorParamErrorCode string +``` + + +## type [BrowserStateBlockParam]() + +The caller's browser state after a browser toolset member call — the full inventory of open tabs, which tab is active, and any side effects \(tabs opened, download state changes\) the call produced. + +At most one per \`tool\_result\`, only on a non\-error result answering a browser toolset member \`tool\_use\`. The server renders the model\-visible text from it; the model never sees the raw fields. + +The properties Tabs, Type are required. + +```go +type BrowserStateBlockParam struct { + // All tabs open in the browser after this call — the full inventory, not a delta. + // May be empty. Whenever non-empty, exactly one entry carries `active: true`. + Tabs []BrowserStateTabEntryParam `json:"tabs,omitzero" api:"required"` + // Tabs opened and download state changes during this call. "Nothing to report" is + // expressed by omitting the field, never by an empty list. + StateChanges []BrowserStateChangeUnionParam `json:"state_changes,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "browser_state". + Type constant.BrowserState `json:"type" default:"browser_state"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateBlockParam\) [MarshalJSON]() + +```go +func (r BrowserStateBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateBlockParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateChangeDownloadCompletedParam]() + +A file download that finished during this call, reported with the same \`download\_id\` as its \`download\_started\` — or without a prior \`download\_started\`, when the download finished during the call that started it \(at most one state change per \`download\_id\` per result\). + +The properties DownloadID, Type, URL are required. + +```go +type BrowserStateChangeDownloadCompletedParam struct { + // The caller-assigned identifier for this download, stable across the state + // changes reporting it. + DownloadID string `json:"download_id" api:"required"` + // The final post-redirect URL the download was served from. + URL string `json:"url" api:"required"` + // Where the executor saved the file, on the executor's filesystem. Only included + // when another tool in the same environment can read the file at that path. + Path param.Opt[string] `json:"path,omitzero"` + // The completed download's size. + SizeBytes param.Opt[int64] `json:"size_bytes,omitzero"` + // This field can be elided, and will marshal its zero value as + // "download_completed". + Type constant.DownloadCompleted `json:"type" default:"download_completed"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateChangeDownloadCompletedParam\) [MarshalJSON]() + +```go +func (r BrowserStateChangeDownloadCompletedParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateChangeDownloadCompletedParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateChangeDownloadCompletedParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateChangeDownloadFailedParam]() + +A file download that failed — or was cancelled — during this call. + +The properties DownloadID, Type, URL are required. + +```go +type BrowserStateChangeDownloadFailedParam struct { + // The caller-assigned identifier for this download, stable across the state + // changes reporting it. + DownloadID string `json:"download_id" api:"required"` + // The final post-redirect URL the download was served from. + URL string `json:"url" api:"required"` + // The failure or cancellation detail, when known. + Error param.Opt[string] `json:"error,omitzero"` + // This field can be elided, and will marshal its zero value as "download_failed". + Type constant.DownloadFailed `json:"type" default:"download_failed"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateChangeDownloadFailedParam\) [MarshalJSON]() + +```go +func (r BrowserStateChangeDownloadFailedParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateChangeDownloadFailedParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateChangeDownloadFailedParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateChangeDownloadStartedParam]() + +A file download that started during this call. + +The properties DownloadID, Type, URL are required. + +```go +type BrowserStateChangeDownloadStartedParam struct { + // The caller-assigned identifier for this download, stable across the state + // changes reporting it. + DownloadID string `json:"download_id" api:"required"` + // The final post-redirect URL the download was served from. + URL string `json:"url" api:"required"` + // This field can be elided, and will marshal its zero value as "download_started". + Type constant.DownloadStarted `json:"type" default:"download_started"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateChangeDownloadStartedParam\) [MarshalJSON]() + +```go +func (r BrowserStateChangeDownloadStartedParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateChangeDownloadStartedParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateChangeDownloadStartedParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateChangeTabOpenedParam]() + +A tab this call's execution opened that remains open at its end — the creation delta of the \`tabs\` inventory, not an event log. + +Carries only the \`tab\_id\`; the tab's \`title\` and \`url\` live on its \`tabs\` entry, which must include the same \`tab\_id\`. A tab opened during a failed call gets no deferred \`tab\_opened\`; it simply appears in the next result's \`tabs\` inventory. + +The properties TabID, Type are required. + +```go +type BrowserStateChangeTabOpenedParam struct { + // The `tab_id` of the opened tab, present in `tabs`. + TabID string `json:"tab_id" api:"required"` + // This field can be elided, and will marshal its zero value as "tab_opened". + Type constant.TabOpened `json:"type" default:"tab_opened"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateChangeTabOpenedParam\) [MarshalJSON]() + +```go +func (r BrowserStateChangeTabOpenedParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateChangeTabOpenedParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateChangeTabOpenedParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateChangeUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type BrowserStateChangeUnionParam struct { + OfTabOpened *BrowserStateChangeTabOpenedParam `json:",omitzero,inline"` + OfDownloadStarted *BrowserStateChangeDownloadStartedParam `json:",omitzero,inline"` + OfDownloadCompleted *BrowserStateChangeDownloadCompletedParam `json:",omitzero,inline"` + OfDownloadFailed *BrowserStateChangeDownloadFailedParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateChangeUnionParam\) [GetDownloadID]() + +```go +func (u BrowserStateChangeUnionParam) GetDownloadID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetError]() + +```go +func (u BrowserStateChangeUnionParam) GetError() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetPath]() + +```go +func (u BrowserStateChangeUnionParam) GetPath() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetSizeBytes]() + +```go +func (u BrowserStateChangeUnionParam) GetSizeBytes() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetTabID]() + +```go +func (u BrowserStateChangeUnionParam) GetTabID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetType]() + +```go +func (u BrowserStateChangeUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [GetURL]() + +```go +func (u BrowserStateChangeUnionParam) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(BrowserStateChangeUnionParam\) [MarshalJSON]() + +```go +func (u BrowserStateChangeUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*BrowserStateChangeUnionParam\) [UnmarshalJSON]() + +```go +func (u *BrowserStateChangeUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [BrowserStateTabEntryParam]() + +One open browser tab reported in a \`browser\_state\` block's \`tabs\` inventory. + +\`tab\_id\` is the caller\-assigned identifier for the tab; \`title\` and \`url\` describe the page the tab is currently showing and may be empty strings \(a blank tab legitimately has both empty\). \`active\` marks the tab that is active after this call; whenever \`tabs\` is non\-empty, exactly one entry is marked. + +The properties TabID, Title, URL are required. + +```go +type BrowserStateTabEntryParam struct { + // The caller-assigned identifier for this tab, unique within the inventory. + TabID string `json:"tab_id" api:"required"` + // The title of the page the tab is showing. May be empty. + Title string `json:"title" api:"required"` + // The URL of the page the tab is showing. May be empty. + URL string `json:"url" api:"required"` + // Whether this tab is the active tab after this call. Whenever `tabs` is + // non-empty, exactly one entry is marked `active: true`. + Active param.Opt[bool] `json:"active,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(BrowserStateTabEntryParam\) [MarshalJSON]() + +```go +func (r BrowserStateTabEntryParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*BrowserStateTabEntryParam\) [UnmarshalJSON]() + +```go +func (r *BrowserStateTabEntryParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CacheControlEphemeralParam]() + +This struct has a constant value, construct it with \[NewCacheControlEphemeralParam\]. + +```go +type CacheControlEphemeralParam struct { + // The time-to-live for the cache control breakpoint. + // + // This may be one the following values: + // + // - `5m`: 5 minutes + // - `1h`: 1 hour + // + // Defaults to `5m`. + // + // Any of "5m", "1h". + TTL CacheControlEphemeralTTL `json:"ttl,omitzero"` + Type constant.Ephemeral `json:"type" default:"ephemeral"` + // contains filtered or unexported fields +} +``` + + +### func \(CacheControlEphemeralParam\) [MarshalJSON]() + +```go +func (r CacheControlEphemeralParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CacheControlEphemeralParam\) [UnmarshalJSON]() + +```go +func (r *CacheControlEphemeralParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CacheControlEphemeralTTL]() + +The time\-to\-live for the cache control breakpoint. + +This may be one the following values: + +\- \`5m\`: 5 minutes \- \`1h\`: 1 hour + +Defaults to \`5m\`. + +```go +type CacheControlEphemeralTTL string +``` + + +## type [CapabilitySupport]() + +Indicates whether a capability is supported. + +```go +type CapabilitySupport struct { + // Whether this capability is supported by the model. + Supported bool `json:"supported" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Supported respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(CapabilitySupport\) [RawJSON]() + +```go +func (r CapabilitySupport) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*CapabilitySupport\) [UnmarshalJSON]() + +```go +func (r *CapabilitySupport) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationCharLocationParam]() + +The properties CitedText, DocumentIndex, DocumentTitle, EndCharIndex, StartCharIndex, Type are required. + +```go +type CitationCharLocationParam struct { + DocumentTitle param.Opt[string] `json:"document_title,omitzero" api:"required"` + CitedText string `json:"cited_text" api:"required"` + DocumentIndex int64 `json:"document_index" api:"required"` + EndCharIndex int64 `json:"end_char_index" api:"required"` + StartCharIndex int64 `json:"start_char_index" api:"required"` + // This field can be elided, and will marshal its zero value as "char_location". + Type constant.CharLocation `json:"type" default:"char_location"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationCharLocationParam\) [MarshalJSON]() + +```go +func (r CitationCharLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationCharLocationParam\) [UnmarshalJSON]() + +```go +func (r *CitationCharLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationContentBlockLocationParam]() + +The properties CitedText, DocumentIndex, DocumentTitle, EndBlockIndex, StartBlockIndex, Type are required. + +```go +type CitationContentBlockLocationParam struct { + DocumentTitle param.Opt[string] `json:"document_title,omitzero" api:"required"` + // The full text of the cited block range, concatenated. + // + // Always equals the contents of `content[start_block_index:end_block_index]` + // joined together. The text block is the minimal citable unit; this field is never + // a substring of a single block. Not counted toward output tokens, and not counted + // toward input tokens when sent back in subsequent turns. + CitedText string `json:"cited_text" api:"required"` + DocumentIndex int64 `json:"document_index" api:"required"` + // Exclusive 0-based end index of the cited block range in the source's `content` + // array. + // + // Always greater than `start_block_index`; a single-block citation has + // `end_block_index = start_block_index + 1`. + EndBlockIndex int64 `json:"end_block_index" api:"required"` + // 0-based index of the first cited block in the source's `content` array. + StartBlockIndex int64 `json:"start_block_index" api:"required"` + // This field can be elided, and will marshal its zero value as + // "content_block_location". + Type constant.ContentBlockLocation `json:"type" default:"content_block_location"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationContentBlockLocationParam\) [MarshalJSON]() + +```go +func (r CitationContentBlockLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationContentBlockLocationParam\) [UnmarshalJSON]() + +```go +func (r *CitationContentBlockLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationPageLocationParam]() + +The properties CitedText, DocumentIndex, DocumentTitle, EndPageNumber, StartPageNumber, Type are required. + +```go +type CitationPageLocationParam struct { + DocumentTitle param.Opt[string] `json:"document_title,omitzero" api:"required"` + CitedText string `json:"cited_text" api:"required"` + DocumentIndex int64 `json:"document_index" api:"required"` + EndPageNumber int64 `json:"end_page_number" api:"required"` + StartPageNumber int64 `json:"start_page_number" api:"required"` + // This field can be elided, and will marshal its zero value as "page_location". + Type constant.PageLocation `json:"type" default:"page_location"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationPageLocationParam\) [MarshalJSON]() + +```go +func (r CitationPageLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationPageLocationParam\) [UnmarshalJSON]() + +```go +func (r *CitationPageLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationSearchResultLocationParam]() + +The properties CitedText, EndBlockIndex, SearchResultIndex, Source, StartBlockIndex, Title, Type are required. + +```go +type CitationSearchResultLocationParam struct { + Title param.Opt[string] `json:"title,omitzero" api:"required"` + // The full text of the cited block range, concatenated. + // + // Always equals the contents of `content[start_block_index:end_block_index]` + // joined together. The text block is the minimal citable unit; this field is never + // a substring of a single block. Not counted toward output tokens, and not counted + // toward input tokens when sent back in subsequent turns. + CitedText string `json:"cited_text" api:"required"` + // Exclusive 0-based end index of the cited block range in the source's `content` + // array. + // + // Always greater than `start_block_index`; a single-block citation has + // `end_block_index = start_block_index + 1`. + EndBlockIndex int64 `json:"end_block_index" api:"required"` + // 0-based index of the cited search result among all `search_result` content + // blocks in the request, in the order they appear across messages and tool + // results. + // + // Counted separately from `document_index`; server-side web search results are not + // included in this count. + SearchResultIndex int64 `json:"search_result_index" api:"required"` + Source string `json:"source" api:"required"` + // 0-based index of the first cited block in the source's `content` array. + StartBlockIndex int64 `json:"start_block_index" api:"required"` + // This field can be elided, and will marshal its zero value as + // "search_result_location". + Type constant.SearchResultLocation `json:"type" default:"search_result_location"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationSearchResultLocationParam\) [MarshalJSON]() + +```go +func (r CitationSearchResultLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationSearchResultLocationParam\) [UnmarshalJSON]() + +```go +func (r *CitationSearchResultLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationWebSearchResultLocationParam]() + +The properties CitedText, EncryptedIndex, Title, Type, URL are required. + +```go +type CitationWebSearchResultLocationParam struct { + Title param.Opt[string] `json:"title,omitzero" api:"required"` + CitedText string `json:"cited_text" api:"required"` + EncryptedIndex string `json:"encrypted_index" api:"required"` + URL string `json:"url" api:"required"` + // This field can be elided, and will marshal its zero value as + // "web_search_result_location". + Type constant.WebSearchResultLocation `json:"type" default:"web_search_result_location"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationWebSearchResultLocationParam\) [MarshalJSON]() + +```go +func (r CitationWebSearchResultLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationWebSearchResultLocationParam\) [UnmarshalJSON]() + +```go +func (r *CitationWebSearchResultLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CitationsConfigParam]() + + + +```go +type CitationsConfigParam struct { + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(CitationsConfigParam\) [MarshalJSON]() + +```go +func (r CitationsConfigParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CitationsConfigParam\) [UnmarshalJSON]() + +```go +func (r *CitationsConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Client]() + +Client exposes concrete services; nested services follow the upstream hierarchy. A client can be shared between goroutines. Configure options before first use. + +```go +type Client struct { + Options []option.RequestOption + Agents AgentService + Sessions SessionService + Deployments DeploymentService + DeploymentRuns DeploymentRunService + Dreams DreamService + Environments EnvironmentService + Skills SkillService + Vaults VaultService + Files FileService + MemoryStores MemoryStoreService + Models ModelService +} +``` + + +### func [NewClient]() + +```go +func NewClient(opts ...option.RequestOption) Client +``` + +NewClient reads QODER\_PAT and QODER\_BASE\_URL. Explicit options win. + + +## type [CloudConfig]() + +\`cloud\` environment configuration. + +```go +type CloudConfig struct { + SetupScript string `json:"setup_script"` + // Network configuration policy. + Networking CloudConfigNetworkingUnion `json:"networking" api:"required"` + // Package manager configuration. + Packages Packages `json:"packages" api:"required"` + // Environment type + Type constant.Cloud `json:"type" default:"cloud"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + SetupScript respjson.Field + Networking respjson.Field + Packages respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(CloudConfig\) [RawJSON]() + +```go +func (r CloudConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*CloudConfig\) [UnmarshalJSON]() + +```go +func (r *CloudConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [CloudConfigNetworkingUnion]() + +CloudConfigNetworkingUnion contains all possible properties and values from [UnrestrictedNetwork](<#UnrestrictedNetwork>), [LimitedNetwork](<#LimitedNetwork>). + +Use the [CloudConfigNetworkingUnion.AsAny](<#CloudConfigNetworkingUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type CloudConfigNetworkingUnion struct { + // Any of "unrestricted", "limited". + Type string `json:"type"` + // This field is from variant [LimitedNetwork]. + AllowMCPServers bool `json:"allow_mcp_servers"` + // This field is from variant [LimitedNetwork]. + AllowPackageManagers bool `json:"allow_package_managers"` + // This field is from variant [LimitedNetwork]. + AllowedHosts []string `json:"allowed_hosts"` + JSON struct { + Type respjson.Field + AllowMCPServers respjson.Field + AllowPackageManagers respjson.Field + AllowedHosts respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(CloudConfigNetworkingUnion\) [AsAny]() + +```go +func (u CloudConfigNetworkingUnion) AsAny() anyCloudConfigNetworking +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := CloudConfigNetworkingUnion.AsAny().(type) { +case qoder.UnrestrictedNetwork: +case qoder.LimitedNetwork: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(CloudConfigNetworkingUnion\) [AsLimited]() + +```go +func (u CloudConfigNetworkingUnion) AsLimited() (v LimitedNetwork) +``` + + + + +### func \(CloudConfigNetworkingUnion\) [AsUnrestricted]() + +```go +func (u CloudConfigNetworkingUnion) AsUnrestricted() (v UnrestrictedNetwork) +``` + + + + +### func \(CloudConfigNetworkingUnion\) [RawJSON]() + +```go +func (u CloudConfigNetworkingUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*CloudConfigNetworkingUnion\) [UnmarshalJSON]() + +```go +func (r *CloudConfigNetworkingUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [CloudConfigParams]() + +Request params for \`cloud\` environment configuration. + +Fields default to null; on update, omitted fields preserve the existing value. + +The property Type is required. + +```go +type CloudConfigParams struct { + SetupScript param.Opt[string] `json:"setup_script,omitzero"` + // Network configuration policy. Omit on update to preserve the existing value. + Networking CloudConfigParamsNetworkingUnion `json:"networking,omitzero"` + // Specify packages (and optionally their versions) available in this environment. + // + // When versioning, use the version semantics relevant for the package manager, + // e.g. for `pip` use `package==1.0.0`. You are responsible for validating the + // package and version exist. Unversioned installs the latest. + // + // Under `limited` networking, requires `networking.allow_package_managers` to be + // `true`. + Packages PackagesParams `json:"packages,omitzero"` + // Environment type + // + // This field can be elided, and will marshal its zero value as "cloud". + Type constant.Cloud `json:"type" default:"cloud"` + // contains filtered or unexported fields +} +``` + + +### func \(CloudConfigParams\) [MarshalJSON]() + +```go +func (r CloudConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CloudConfigParams\) [UnmarshalJSON]() + +```go +func (r *CloudConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [CloudConfigParamsNetworkingUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type CloudConfigParamsNetworkingUnion struct { + OfUnrestricted *UnrestrictedNetworkParam `json:",omitzero,inline"` + OfLimited *LimitedNetworkParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(CloudConfigParamsNetworkingUnion\) [GetAllowMCPServers]() + +```go +func (u CloudConfigParamsNetworkingUnion) GetAllowMCPServers() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CloudConfigParamsNetworkingUnion\) [GetAllowPackageManagers]() + +```go +func (u CloudConfigParamsNetworkingUnion) GetAllowPackageManagers() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CloudConfigParamsNetworkingUnion\) [GetAllowedHosts]() + +```go +func (u CloudConfigParamsNetworkingUnion) GetAllowedHosts() []string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CloudConfigParamsNetworkingUnion\) [GetType]() + +```go +func (u CloudConfigParamsNetworkingUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CloudConfigParamsNetworkingUnion\) [MarshalJSON]() + +```go +func (u CloudConfigParamsNetworkingUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*CloudConfigParamsNetworkingUnion\) [UnmarshalJSON]() + +```go +func (u *CloudConfigParamsNetworkingUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [CodeExecutionOutputBlockParam]() + +The properties FileID, Type are required. + +```go +type CodeExecutionOutputBlockParam struct { + FileID string `json:"file_id" api:"required"` + // This field can be elided, and will marshal its zero value as + // "code_execution_output". + Type constant.CodeExecutionOutput `json:"type" default:"code_execution_output"` + // contains filtered or unexported fields +} +``` + + +### func \(CodeExecutionOutputBlockParam\) [MarshalJSON]() + +```go +func (r CodeExecutionOutputBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CodeExecutionOutputBlockParam\) [UnmarshalJSON]() + +```go +func (r *CodeExecutionOutputBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CodeExecutionResultBlockParam]() + +The properties Content, ReturnCode, Stderr, Stdout, Type are required. + +```go +type CodeExecutionResultBlockParam struct { + Content []CodeExecutionOutputBlockParam `json:"content,omitzero" api:"required"` + ReturnCode int64 `json:"return_code" api:"required"` + Stderr string `json:"stderr" api:"required"` + Stdout string `json:"stdout" api:"required"` + // This field can be elided, and will marshal its zero value as + // "code_execution_result". + Type constant.CodeExecutionResult `json:"type" default:"code_execution_result"` + // contains filtered or unexported fields +} +``` + + +### func \(CodeExecutionResultBlockParam\) [MarshalJSON]() + +```go +func (r CodeExecutionResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CodeExecutionResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *CodeExecutionResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CodeExecutionToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type CodeExecutionToolResultBlockParam struct { + // Code execution result with encrypted stdout for PFC + web_search results. + Content CodeExecutionToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as + // "code_execution_tool_result". + Type constant.CodeExecutionToolResult `json:"type" default:"code_execution_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(CodeExecutionToolResultBlockParam\) [MarshalJSON]() + +```go +func (r CodeExecutionToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CodeExecutionToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *CodeExecutionToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CodeExecutionToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type CodeExecutionToolResultBlockParamContentUnion struct { + OfError *CodeExecutionToolResultErrorParam `json:",omitzero,inline"` + OfResultBlock *CodeExecutionResultBlockParam `json:",omitzero,inline"` + OfRequestEncryptedCodeExecutionResultBlock *EncryptedCodeExecutionResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetContent]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetContent() []CodeExecutionOutputBlockParam +``` + +Returns a pointer to the underlying variant's Content property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetEncryptedStdout]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetEncryptedStdout() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetReturnCode]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetReturnCode() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetStderr]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetStderr() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetStdout]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetStdout() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(CodeExecutionToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u CodeExecutionToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*CodeExecutionToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *CodeExecutionToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [CodeExecutionToolResultErrorCode]() + + + +```go +type CodeExecutionToolResultErrorCode string +``` + + +## type [CodeExecutionToolResultErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type CodeExecutionToolResultErrorParam struct { + // Any of "invalid_tool_input", "unavailable", "too_many_requests", + // "execution_time_exceeded". + ErrorCode CodeExecutionToolResultErrorCode `json:"error_code,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "code_execution_tool_result_error". + Type constant.CodeExecutionToolResultError `json:"type" default:"code_execution_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(CodeExecutionToolResultErrorParam\) [MarshalJSON]() + +```go +func (r CodeExecutionToolResultErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CodeExecutionToolResultErrorParam\) [UnmarshalJSON]() + +```go +func (r *CodeExecutionToolResultErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [CompactionBlockParam]() + +A compaction block containing summary of previous context. + +Users should round\-trip these blocks from responses to subsequent requests to maintain context across compaction boundaries. + +When content is None, the block represents a failed compaction. The server treats these as no\-ops. Empty string content is not allowed. + +The property Type is required. + +```go +type CompactionBlockParam struct { + // Summary of previously compacted content, or null if compaction failed + Content param.Opt[string] `json:"content,omitzero"` + // Opaque metadata from prior compaction, to be round-tripped verbatim + EncryptedContent param.Opt[string] `json:"encrypted_content,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "compaction". + Type constant.Compaction `json:"type" default:"compaction"` + // contains filtered or unexported fields +} +``` + + +### func \(CompactionBlockParam\) [MarshalJSON]() + +```go +func (r CompactionBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*CompactionBlockParam\) [UnmarshalJSON]() + +```go +func (r *CompactionBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContainerUploadBlockParam]() + +A content block that represents a file to be uploaded to the container Files uploaded via this block will be available in the container's input directory. + +The properties FileID, Type are required. + +```go +type ContainerUploadBlockParam struct { + FileID string `json:"file_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "container_upload". + Type constant.ContainerUpload `json:"type" default:"container_upload"` + // contains filtered or unexported fields +} +``` + + +### func \(ContainerUploadBlockParam\) [MarshalJSON]() + +```go +func (r ContainerUploadBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ContainerUploadBlockParam\) [UnmarshalJSON]() + +```go +func (r *ContainerUploadBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContentBlockParamUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ContentBlockParamUnion struct { + OfText *TextBlockParam `json:",omitzero,inline"` + OfImage *ImageBlockParam `json:",omitzero,inline"` + OfDocument *RequestDocumentBlockParam `json:",omitzero,inline"` + OfSearchResult *SearchResultBlockParam `json:",omitzero,inline"` + OfThinking *ThinkingBlockParam `json:",omitzero,inline"` + OfRedactedThinking *RedactedThinkingBlockParam `json:",omitzero,inline"` + OfToolUse *ToolUseBlockParam `json:",omitzero,inline"` + OfToolResult *ToolResultBlockParam `json:",omitzero,inline"` + OfServerToolUse *ServerToolUseBlockParam `json:",omitzero,inline"` + OfWebSearchToolResult *WebSearchToolResultBlockParam `json:",omitzero,inline"` + OfWebFetchToolResult *WebFetchToolResultBlockParam `json:",omitzero,inline"` + OfAdvisorToolResult *AdvisorToolResultBlockParam `json:",omitzero,inline"` + OfCodeExecutionToolResult *CodeExecutionToolResultBlockParam `json:",omitzero,inline"` + OfBashCodeExecutionToolResult *BashCodeExecutionToolResultBlockParam `json:",omitzero,inline"` + OfTextEditorCodeExecutionToolResult *TextEditorCodeExecutionToolResultBlockParam `json:",omitzero,inline"` + OfToolSearchToolResult *ToolSearchToolResultBlockParam `json:",omitzero,inline"` + OfMCPToolUse *MCPToolUseBlockParam `json:",omitzero,inline"` + OfMCPToolResult *RequestMCPToolResultBlockParam `json:",omitzero,inline"` + OfContainerUpload *ContainerUploadBlockParam `json:",omitzero,inline"` + OfCompaction *CompactionBlockParam `json:",omitzero,inline"` + OfToolAddition *RequestToolAdditionBlockParam `json:",omitzero,inline"` + OfToolRemoval *RequestToolRemovalBlockParam `json:",omitzero,inline"` + OfFallback *FallbackBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ContentBlockParamUnion\) [GetCacheControl]() + +```go +func (u ContentBlockParamUnion) GetCacheControl() *CacheControlEphemeralParam +``` + +Returns a pointer to the underlying variant's CacheControl property, if present. + + +### func \(ContentBlockParamUnion\) [GetCaller]() + +```go +func (u ContentBlockParamUnion) GetCaller() (res contentBlockParamUnionCaller) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ContentBlockParamUnion\) [GetCitations]() + +```go +func (u ContentBlockParamUnion) GetCitations() (res contentBlockParamUnionCitations) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ContentBlockParamUnion\) [GetContent]() + +```go +func (u ContentBlockParamUnion) GetContent() (res contentBlockParamUnionContent) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ContentBlockParamUnion\) [GetContext]() + +```go +func (u ContentBlockParamUnion) GetContext() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetData]() + +```go +func (u ContentBlockParamUnion) GetData() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetEncryptedContent]() + +```go +func (u ContentBlockParamUnion) GetEncryptedContent() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetFileID]() + +```go +func (u ContentBlockParamUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetFrom]() + +```go +func (u ContentBlockParamUnion) GetFrom() *FallbackInfoParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetID]() + +```go +func (u ContentBlockParamUnion) GetID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetInput]() + +```go +func (u ContentBlockParamUnion) GetInput() *any +``` + +Returns a pointer to the underlying variant's Input property, if present. + + +### func \(ContentBlockParamUnion\) [GetIsError]() + +```go +func (u ContentBlockParamUnion) GetIsError() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetName]() + +```go +func (u ContentBlockParamUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetServerName]() + +```go +func (u ContentBlockParamUnion) GetServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetSignature]() + +```go +func (u ContentBlockParamUnion) GetSignature() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetSource]() + +```go +func (u ContentBlockParamUnion) GetSource() (res contentBlockParamUnionSource) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ContentBlockParamUnion\) [GetText]() + +```go +func (u ContentBlockParamUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetThinking]() + +```go +func (u ContentBlockParamUnion) GetThinking() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetTitle]() + +```go +func (u ContentBlockParamUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetTo]() + +```go +func (u ContentBlockParamUnion) GetTo() *FallbackInfoParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetTool]() + +```go +func (u ContentBlockParamUnion) GetTool() (res contentBlockParamUnionTool) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ContentBlockParamUnion\) [GetToolUseID]() + +```go +func (u ContentBlockParamUnion) GetToolUseID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetToolsetName]() + +```go +func (u ContentBlockParamUnion) GetToolsetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetTransformations]() + +```go +func (u ContentBlockParamUnion) GetTransformations() *ImageTransformationsParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetTrigger]() + +```go +func (u ContentBlockParamUnion) GetTrigger() *any +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [GetType]() + +```go +func (u ContentBlockParamUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ContentBlockParamUnion\) [MarshalJSON]() + +```go +func (u ContentBlockParamUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ContentBlockParamUnion\) [UnmarshalJSON]() + +```go +func (u *ContentBlockParamUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContentBlockSourceContentUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ContentBlockSourceContentUnionParam struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfContentBlockSourceContent []ContentBlockSourceContentUnionParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ContentBlockSourceContentUnionParam\) [MarshalJSON]() + +```go +func (u ContentBlockSourceContentUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ContentBlockSourceContentUnionParam\) [UnmarshalJSON]() + +```go +func (u *ContentBlockSourceContentUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContentBlockSourceParam]() + +The properties Content, Type are required. + +```go +type ContentBlockSourceParam struct { + Content ContentBlockSourceContentUnionParam `json:"content,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as "content". + Type constant.Content `json:"type" default:"content"` + // contains filtered or unexported fields +} +``` + + +### func \(ContentBlockSourceParam\) [MarshalJSON]() + +```go +func (r ContentBlockSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ContentBlockSourceParam\) [UnmarshalJSON]() + +```go +func (r *ContentBlockSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ContextManagementCapability]() + +Context management capability details. + +```go +type ContextManagementCapability struct { + // Indicates whether a capability is supported. + ClearThinking20251015 CapabilitySupport `json:"clear_thinking_20251015" api:"required"` + // Indicates whether a capability is supported. + ClearToolUses20250919 CapabilitySupport `json:"clear_tool_uses_20250919" api:"required"` + // Indicates whether a capability is supported. + Compact20260112 CapabilitySupport `json:"compact_20260112" api:"required"` + // Whether this capability is supported by the model. + Supported bool `json:"supported" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ClearThinking20251015 respjson.Field + ClearToolUses20250919 respjson.Field + Compact20260112 respjson.Field + Supported respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ContextManagementCapability\) [RawJSON]() + +```go +func (r ContextManagementCapability) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ContextManagementCapability\) [UnmarshalJSON]() + +```go +func (r *ContextManagementCapability) UnmarshalJSON(data []byte) error +``` + + + + +## type [Currency]() + + + +```go +type Currency string +``` + + + +```go +const CurrencyUSD Currency = "USD" +``` + + +## type [DeletedFile]() + + + +```go +type DeletedFile struct { + // ID of the deleted file. + ID string `json:"id" api:"required"` + // Deleted object type. + // + // For file deletion, this is always `"file_deleted"`. + // + // Any of "file_deleted". + Type DeletedFileType `json:"type"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedFile\) [RawJSON]() + +```go +func (r DeletedFile) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DeletedFile\) [UnmarshalJSON]() + +```go +func (r *DeletedFile) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedFileType]() + +Deleted object type. + +For file deletion, this is always \`"file\_deleted"\`. + +```go +type DeletedFileType string +``` + + + +```go +const ( + DeletedFileTypeFileDeleted DeletedFileType = "file_deleted" +) +``` + + +## type [DeletedSkill]() + + + +```go +type DeletedSkill struct { + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + ID string `json:"id" api:"required"` + // Deleted object type. + // + // For Skills, this is always `"skill_deleted"`. + Type constant.SkillDeleted `json:"type" default:"skill_deleted"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedSkill\) [RawJSON]() + +```go +func (r DeletedSkill) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DeletedSkill\) [UnmarshalJSON]() + +```go +func (r *DeletedSkill) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeletedSkillVersion]() + + + +```go +type DeletedSkillVersion struct { + // Unique identifier for this Skill Version. The id addresses the version in paths + // and pins it in references. + ID string `json:"id" api:"required"` + // Deleted object type. + // + // For Skill Versions, this is always `"skill_version_deleted"`. + Type constant.SkillVersionDeleted `json:"type" default:"skill_version_deleted"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DeletedSkillVersion\) [RawJSON]() + +```go +func (r DeletedSkillVersion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DeletedSkillVersion\) [UnmarshalJSON]() + +```go +func (r *DeletedSkillVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentArchiveParams]() + + + +```go +type DeploymentArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentGetParams]() + + + +```go +type DeploymentGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentListParams]() + + + +```go +type DeploymentListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Filter by agent ID. + AgentID param.Opt[string] `query:"agent_id,omitzero" json:"-"` + // Return deployments created at or after this time (inclusive). + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return deployments created at or before this time (inclusive). + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // When true, includes archived deployments. Default: false (exclude archived). + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum results per page. Default 20, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Filter by status: `active` or `paused`. Omit for both. To include archived + // deployments, use `include_archived` instead; the two cannot be combined. + // + // Any of "active", "paused". + Status ManagedAgentsDeploymentStatus `query:"status,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentListParams\) [URLQuery]() + +```go +func (r DeploymentListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [DeploymentListParams](<#DeploymentListParams>)'s query parameters as \`url.Values\`. + + +## type [DeploymentNewParams]() + + + +```go +type DeploymentNewParams struct { + EnvironmentVariables param.Opt[string] `json:"environment_variables,omitzero"` + + // Agent to deploy. Accepts the `agent` ID string, which pins the latest version, + // or an `agent` object with both id and version specified. The agent must exist + // and not be archived. + Agent DeploymentNewParamsAgentUnion `json:"agent,omitzero" api:"required"` + // ID of the `environment` defining the container configuration for sessions + // created from this deployment. + EnvironmentID string `json:"environment_id" api:"required"` + // Events to send to each session immediately after creation. At least 1, + // maximum 50. + InitialEvents []ManagedAgentsDeploymentInitialEventParamsUnion `json:"initial_events,omitzero" api:"required"` + // Human-readable name for the deployment. + Name string `json:"name" api:"required"` + // Description of what the deployment does. + Description param.Opt[string] `json:"description,omitzero"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimitParam `json:"budget,omitzero"` + // Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up + // to 512 chars. + Metadata map[string]string `json:"metadata,omitzero"` + // Resources (e.g. repositories, files) to mount into each session's container. + // Maximum 500. + Resources []DeploymentNewParamsResourceUnion `json:"resources,omitzero"` + // 5-field POSIX cron schedule. Literal wall-clock matching in the configured + // timezone. + Schedule ManagedAgentsScheduleParams `json:"schedule,omitzero"` + // Vault IDs for stored credentials the agent can use during sessions created from + // this deployment. Maximum 50. + VaultIDs []string `json:"vault_ids,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentNewParams\) [MarshalJSON]() + +```go +func (r DeploymentNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DeploymentNewParams\) [UnmarshalJSON]() + +```go +func (r *DeploymentNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentNewParamsAgentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DeploymentNewParamsAgentUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfManagedAgentsAgents *ManagedAgentsAgentParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentNewParamsAgentUnion\) [MarshalJSON]() + +```go +func (u DeploymentNewParamsAgentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DeploymentNewParamsAgentUnion\) [UnmarshalJSON]() + +```go +func (u *DeploymentNewParamsAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentNewParamsResourceUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DeploymentNewParamsResourceUnion struct { + OfGitHubRepository *ManagedAgentsGitHubRepositoryResourceParams `json:",omitzero,inline"` + OfFile *ManagedAgentsFileResourceParams `json:",omitzero,inline"` + OfMemoryStore *ManagedAgentsMemoryStoreResourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentNewParamsResourceUnion\) [GetAccess]() + +```go +func (u DeploymentNewParamsResourceUnion) GetAccess() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetAuthorizationToken]() + +```go +func (u DeploymentNewParamsResourceUnion) GetAuthorizationToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetCheckout]() + +```go +func (u DeploymentNewParamsResourceUnion) GetCheckout() *ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetFileID]() + +```go +func (u DeploymentNewParamsResourceUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetInstructions]() + +```go +func (u DeploymentNewParamsResourceUnion) GetInstructions() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetMemoryStoreID]() + +```go +func (u DeploymentNewParamsResourceUnion) GetMemoryStoreID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetMountPath]() + +```go +func (u DeploymentNewParamsResourceUnion) GetMountPath() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetType]() + +```go +func (u DeploymentNewParamsResourceUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [GetURL]() + +```go +func (u DeploymentNewParamsResourceUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentNewParamsResourceUnion\) [MarshalJSON]() + +```go +func (u DeploymentNewParamsResourceUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DeploymentNewParamsResourceUnion\) [UnmarshalJSON]() + +```go +func (u *DeploymentNewParamsResourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentPauseParams]() + + + +```go +type DeploymentPauseParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentRunGetParams]() + + + +```go +type DeploymentRunGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentRunListParams]() + + + +```go +type DeploymentRunListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Return runs created strictly after this time (exclusive). + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" format:"date-time" json:"-"` + // Return runs created at or after this time (inclusive). + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return runs created strictly before this time (exclusive). + CreatedAtLt param.Opt[time.Time] `query:"created_at[lt],omitzero" format:"date-time" json:"-"` + // Return runs created at or before this time (inclusive). + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // Filter to a specific deployment. Omit to list across all deployments in the + // workspace. Filtering by a non-existent `deployment_id` returns 200 with empty + // data. + DeploymentID param.Opt[string] `query:"deployment_id,omitzero" json:"-"` + // Filter: true for runs with non-null `error`, false for runs with non-null + // `session_id`. Omit for all. + HasError param.Opt[bool] `query:"has_error,omitzero" json:"-"` + // Maximum results per page. Default 20, maximum 1000. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor. Pass `next_page` from the previous response. Invalid + // or expired cursors return 400. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Filter runs by what triggered them. Omit to return all runs. + // + // Any of "schedule", "manual". + TriggerType ManagedAgentsTriggerType `query:"trigger_type,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentRunListParams\) [URLQuery]() + +```go +func (r DeploymentRunListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [DeploymentRunListParams](<#DeploymentRunListParams>)'s query parameters as \`url.Values\`. + + +## type [DeploymentRunParams]() + + + +```go +type DeploymentRunParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentRunService]() + +DeploymentRunService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewDeploymentRunService](<#NewDeploymentRunService>) method instead. + +```go +type DeploymentRunService struct { + Options []option.RequestOption +} +``` + + +### func [NewDeploymentRunService]() + +```go +func NewDeploymentRunService(opts ...option.RequestOption) (r DeploymentRunService) +``` + +NewDeploymentRunService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*DeploymentRunService\) [Get]() + +```go +func (r *DeploymentRunService) Get(ctx context.Context, deploymentRunID string, query DeploymentRunGetParams, opts ...option.RequestOption) (res *ManagedAgentsDeploymentRun, err error) +``` + +Get Deployment Run + + +### func \(\*DeploymentRunService\) [List]() + +```go +func (r *DeploymentRunService) List(ctx context.Context, params DeploymentRunListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsDeploymentRun], err error) +``` + +List Deployment Runs + + +### func \(\*DeploymentRunService\) [ListAutoPaging]() + +```go +func (r *DeploymentRunService) ListAutoPaging(ctx context.Context, params DeploymentRunListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsDeploymentRun] +``` + +List Deployment Runs + + +## type [DeploymentService]() + +DeploymentService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewDeploymentService](<#NewDeploymentService>) method instead. + +```go +type DeploymentService struct { + Options []option.RequestOption +} +``` + + +### func [NewDeploymentService]() + +```go +func NewDeploymentService(opts ...option.RequestOption) (r DeploymentService) +``` + +NewDeploymentService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*DeploymentService\) [Archive]() + +```go +func (r *DeploymentService) Archive(ctx context.Context, deploymentID string, body DeploymentArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Archive Deployment + + +### func \(\*DeploymentService\) [Get]() + +```go +func (r *DeploymentService) Get(ctx context.Context, deploymentID string, query DeploymentGetParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Get Deployment + + +### func \(\*DeploymentService\) [List]() + +```go +func (r *DeploymentService) List(ctx context.Context, params DeploymentListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsDeployment], err error) +``` + +List Deployments + + +### func \(\*DeploymentService\) [ListAutoPaging]() + +```go +func (r *DeploymentService) ListAutoPaging(ctx context.Context, params DeploymentListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsDeployment] +``` + +List Deployments + + +### func \(\*DeploymentService\) [New]() + +```go +func (r *DeploymentService) New(ctx context.Context, params DeploymentNewParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Create Deployment + + +### func \(\*DeploymentService\) [Pause]() + +```go +func (r *DeploymentService) Pause(ctx context.Context, deploymentID string, body DeploymentPauseParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Pause Deployment + + +### func \(\*DeploymentService\) [Run]() + +```go +func (r *DeploymentService) Run(ctx context.Context, deploymentID string, body DeploymentRunParams, opts ...option.RequestOption) (res *ManagedAgentsDeploymentRun, err error) +``` + +Run Deployment Now + + +### func \(\*DeploymentService\) [Unpause]() + +```go +func (r *DeploymentService) Unpause(ctx context.Context, deploymentID string, body DeploymentUnpauseParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Unpause Deployment + + +### func \(\*DeploymentService\) [Update]() + +```go +func (r *DeploymentService) Update(ctx context.Context, deploymentID string, params DeploymentUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsDeployment, err error) +``` + +Update Deployment + + +## type [DeploymentUnpauseParams]() + + + +```go +type DeploymentUnpauseParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DeploymentUpdateParams]() + + + +```go +type DeploymentUpdateParams struct { + EnvironmentVariables param.Opt[string] `json:"environment_variables,omitzero"` + + // Description. Omit to preserve; send empty string or null to clear. + Description param.Opt[string] `json:"description,omitzero"` + // ID of the `environment` where sessions run. Omit to preserve. Cannot be cleared. + EnvironmentID param.Opt[string] `json:"environment_id,omitzero"` + // Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared. + Name param.Opt[string] `json:"name,omitzero"` + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars + // each) with values up to 512 chars. + Metadata map[string]any `json:"metadata,omitzero"` + // Session resources. Full replacement. Omit to preserve; send empty array or null + // to clear. Maximum 500. + Resources []DeploymentUpdateParamsResourceUnion `json:"resources,omitzero"` + // Vault IDs. Full replacement. Omit to preserve; send empty array or null to + // clear. Maximum 50. + VaultIDs []string `json:"vault_ids,omitzero"` + // Agent to deploy. Accepts the `agent` ID string, which re-pins to the latest + // version, or an `agent` object with both id and version specified. Omit to + // preserve. Cannot be cleared. + Agent DeploymentUpdateParamsAgentUnion `json:"agent,omitzero"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimitParam `json:"budget,omitzero"` + // Initial events. Full replacement. Omit to preserve. Cannot be cleared. At least + // 1, maximum 50. + InitialEvents []ManagedAgentsDeploymentInitialEventParamsUnion `json:"initial_events,omitzero"` + // 5-field POSIX cron schedule. Literal wall-clock matching in the configured + // timezone. + Schedule ManagedAgentsScheduleParams `json:"schedule,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentUpdateParams\) [MarshalJSON]() + +```go +func (r DeploymentUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DeploymentUpdateParams\) [UnmarshalJSON]() + +```go +func (r *DeploymentUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentUpdateParamsAgentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DeploymentUpdateParamsAgentUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfManagedAgentsAgents *ManagedAgentsAgentParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentUpdateParamsAgentUnion\) [MarshalJSON]() + +```go +func (u DeploymentUpdateParamsAgentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DeploymentUpdateParamsAgentUnion\) [UnmarshalJSON]() + +```go +func (u *DeploymentUpdateParamsAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DeploymentUpdateParamsResourceUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DeploymentUpdateParamsResourceUnion struct { + OfGitHubRepository *ManagedAgentsGitHubRepositoryResourceParams `json:",omitzero,inline"` + OfFile *ManagedAgentsFileResourceParams `json:",omitzero,inline"` + OfMemoryStore *ManagedAgentsMemoryStoreResourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetAccess]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetAccess() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetAuthorizationToken]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetAuthorizationToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetCheckout]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetCheckout() *ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetFileID]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetInstructions]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetInstructions() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetMemoryStoreID]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetMemoryStoreID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetMountPath]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetMountPath() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetType]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [GetURL]() + +```go +func (u DeploymentUpdateParamsResourceUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DeploymentUpdateParamsResourceUnion\) [MarshalJSON]() + +```go +func (u DeploymentUpdateParamsResourceUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DeploymentUpdateParamsResourceUnion\) [UnmarshalJSON]() + +```go +func (u *DeploymentUpdateParamsResourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DirectCallerParam]() + +Tool invocation directly from the model. + +This struct has a constant value, construct it with \[NewDirectCallerParam\]. + +```go +type DirectCallerParam struct { + Type constant.Direct `json:"type" default:"direct"` + // contains filtered or unexported fields +} +``` + + +### func \(DirectCallerParam\) [MarshalJSON]() + +```go +func (r DirectCallerParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DirectCallerParam\) [UnmarshalJSON]() + +```go +func (r *DirectCallerParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Dream]() + +An asynchronous memory\-consolidation job that reads a memory store plus a set of session transcripts and writes consolidated memories into an output memory store — a new store by default, or an existing store chosen via output\_behavior. The Dreams API is in research preview: the request and response shapes are volatile and may change without the deprecation period that applies to generally\-available endpoints. + +```go +type Dream struct { + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + EndedAt time.Time `json:"ended_at" api:"required" format:"date-time"` + // Failure detail for a Dream whose `status` is `failed`. + Error DreamError `json:"error" api:"required"` + Inputs []DreamInputUnion `json:"inputs" api:"required"` + Instructions string `json:"instructions" api:"required"` + // Model identifier and configuration applied to every pipeline stage. Same wire + // shape as the Agents API ModelConfig. + Model DreamModelConfig `json:"model" api:"required"` + // The default destination: the job creates a new output memory store as a clone of + // the memory_store input and writes the consolidated memories into it. The input + // store is never mutated. + OutputBehavior OutputBehaviorUnion `json:"output_behavior" api:"required"` + Outputs []DreamOutput `json:"outputs" api:"required"` + SessionID string `json:"session_id" api:"required"` + // Lifecycle status of a Dream. + // + // Any of "pending", "running", "completed", "failed", "canceled". + Status DreamStatus `json:"status" api:"required"` + // Any of "dream". + Type DreamType `json:"type" api:"required"` + // Cumulative token usage for the dream across every pipeline stage. + Usage DreamUsage `json:"usage" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + EndedAt respjson.Field + Error respjson.Field + Inputs respjson.Field + Instructions respjson.Field + Model respjson.Field + OutputBehavior respjson.Field + Outputs respjson.Field + SessionID respjson.Field + Status respjson.Field + Type respjson.Field + Usage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Dream\) [RawJSON]() + +```go +func (r Dream) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*Dream\) [UnmarshalJSON]() + +```go +func (r *Dream) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamArchiveParams]() + + + +```go +type DreamArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DreamCancelParams]() + + + +```go +type DreamCancelParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DreamError]() + +Failure detail for a Dream whose \`status\` is \`failed\`. + +```go +type DreamError struct { + Message string `json:"message" api:"required"` + Type string `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamError\) [RawJSON]() + +```go +func (r DreamError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DreamError\) [UnmarshalJSON]() + +```go +func (r *DreamError) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamGetParams]() + + + +```go +type DreamGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [DreamInputUnion]() + +DreamInputUnion contains all possible properties and values from [DreamMemoryStoreInput](<#DreamMemoryStoreInput>), [DreamSessionsInput](<#DreamSessionsInput>). + +Use the [DreamInputUnion.AsAny](<#DreamInputUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type DreamInputUnion struct { + // This field is from variant [DreamMemoryStoreInput]. + MemoryStoreID string `json:"memory_store_id"` + // Any of "memory_store", "sessions". + Type string `json:"type"` + // This field is from variant [DreamSessionsInput]. + SessionIDs []string `json:"session_ids"` + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + SessionIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamInputUnion\) [AsAny]() + +```go +func (u DreamInputUnion) AsAny() anyDreamInput +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := DreamInputUnion.AsAny().(type) { +case qoder.DreamMemoryStoreInput: +case qoder.DreamSessionsInput: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(DreamInputUnion\) [AsMemoryStore]() + +```go +func (u DreamInputUnion) AsMemoryStore() (v DreamMemoryStoreInput) +``` + + + + +### func \(DreamInputUnion\) [AsSessions]() + +```go +func (u DreamInputUnion) AsSessions() (v DreamSessionsInput) +``` + + + + +### func \(DreamInputUnion\) [RawJSON]() + +```go +func (u DreamInputUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(DreamInputUnion\) [ToParam]() + +```go +func (r DreamInputUnion) ToParam() DreamInputUnionParam +``` + +ToParam converts this DreamInputUnion to a DreamInputUnionParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with DreamInputUnionParam.Overrides\(\) + + +### func \(\*DreamInputUnion\) [UnmarshalJSON]() + +```go +func (r *DreamInputUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamInputUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DreamInputUnionParam struct { + OfMemoryStore *DreamMemoryStoreInputParam `json:",omitzero,inline"` + OfSessions *DreamSessionsInputParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [DreamInputParamOfMemoryStore]() + +```go +func DreamInputParamOfMemoryStore(memoryStoreID string) DreamInputUnionParam +``` + + + + +### func [DreamInputParamOfSessions]() + +```go +func DreamInputParamOfSessions(sessionIDs []string) DreamInputUnionParam +``` + + + + +### func \(DreamInputUnionParam\) [GetMemoryStoreID]() + +```go +func (u DreamInputUnionParam) GetMemoryStoreID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DreamInputUnionParam\) [GetSessionIDs]() + +```go +func (u DreamInputUnionParam) GetSessionIDs() []string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DreamInputUnionParam\) [GetType]() + +```go +func (u DreamInputUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(DreamInputUnionParam\) [MarshalJSON]() + +```go +func (u DreamInputUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DreamInputUnionParam\) [UnmarshalJSON]() + +```go +func (u *DreamInputUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamListParams]() + + + +```go +type DreamListParams struct { + // Return dreams with `created_at` strictly after this timestamp (exclusive lower + // bound, RFC 3339). Unset applies no lower bound. + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" format:"date-time" json:"-"` + // Return dreams with `created_at` strictly before this timestamp (exclusive upper + // bound, RFC 3339). Unset applies no upper bound. + CreatedAtLt param.Opt[time.Time] `query:"created_at[lt],omitzero" format:"date-time" json:"-"` + // Query parameter for include_archived + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Query parameter for limit + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Query parameter for page + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Filter by lifecycle status. Repeat the parameter to match any of multiple + // statuses. Empty applies no status filter. + Statuses []DreamStatus `query:"statuses,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamListParams\) [URLQuery]() + +```go +func (r DreamListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [DreamListParams](<#DreamListParams>)'s query parameters as \`url.Values\`. + + +## type [DreamMemoryStoreInput]() + +An input memory store the dream reads from. The dream never mutates this store unless it is also the destination: with output\_behavior \{type: "update\_existing"\} the job consolidates this store in place. + +```go +type DreamMemoryStoreInput struct { + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type DreamMemoryStoreInputType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamMemoryStoreInput\) [RawJSON]() + +```go +func (r DreamMemoryStoreInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(DreamMemoryStoreInput\) [ToParam]() + +```go +func (r DreamMemoryStoreInput) ToParam() DreamMemoryStoreInputParam +``` + +ToParam converts this DreamMemoryStoreInput to a DreamMemoryStoreInputParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with DreamMemoryStoreInputParam.Overrides\(\) + + +### func \(\*DreamMemoryStoreInput\) [UnmarshalJSON]() + +```go +func (r *DreamMemoryStoreInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamMemoryStoreInputParam]() + +An input memory store the dream reads from. The dream never mutates this store unless it is also the destination: with output\_behavior \{type: "update\_existing"\} the job consolidates this store in place. + +The properties MemoryStoreID, Type are required. + +```go +type DreamMemoryStoreInputParam struct { + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type DreamMemoryStoreInputType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamMemoryStoreInputParam\) [MarshalJSON]() + +```go +func (r DreamMemoryStoreInputParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DreamMemoryStoreInputParam\) [UnmarshalJSON]() + +```go +func (r *DreamMemoryStoreInputParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamMemoryStoreInputType]() + + + +```go +type DreamMemoryStoreInputType string +``` + + + +```go +const ( + DreamMemoryStoreInputTypeMemoryStore DreamMemoryStoreInputType = "memory_store" +) +``` + + +## type [DreamModelConfig]() + +Model identifier and configuration applied to every pipeline stage. Same wire shape as the Agents API ModelConfig. + +```go +type DreamModelConfig struct { + // Model identifier. 1-256 characters. + ID string `json:"id" api:"required"` + // Inference speed mode. `fast` provides significantly faster output token + // generation at premium pricing. Not all models support `fast`; invalid + // combinations are rejected at create time. + // + // Any of "standard", "fast". + Speed DreamModelConfigSpeed `json:"speed"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Speed respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamModelConfig\) [RawJSON]() + +```go +func (r DreamModelConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DreamModelConfig\) [UnmarshalJSON]() + +```go +func (r *DreamModelConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamModelConfigParam]() + +Model identifier and configuration applied to every pipeline stage. + +The property ID is required. + +```go +type DreamModelConfigParam struct { + // Model identifier. 1-256 characters. + ID string `json:"id" api:"required"` + // Inference speed mode. `fast` provides significantly faster output token + // generation at premium pricing. Not all models support `fast`; invalid + // combinations are rejected at create time. + // + // Any of "standard", "fast". + Speed DreamModelConfigParamSpeed `json:"speed,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamModelConfigParam\) [MarshalJSON]() + +```go +func (r DreamModelConfigParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DreamModelConfigParam\) [UnmarshalJSON]() + +```go +func (r *DreamModelConfigParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamModelConfigParamSpeed]() + +Inference speed mode. \`fast\` provides significantly faster output token generation at premium pricing. Not all models support \`fast\`; invalid combinations are rejected at create time. + +```go +type DreamModelConfigParamSpeed string +``` + + + +```go +const ( + DreamModelConfigParamSpeedStandard DreamModelConfigParamSpeed = "standard" + DreamModelConfigParamSpeedFast DreamModelConfigParamSpeed = "fast" +) +``` + + +## type [DreamModelConfigSpeed]() + +Inference speed mode. \`fast\` provides significantly faster output token generation at premium pricing. Not all models support \`fast\`; invalid combinations are rejected at create time. + +```go +type DreamModelConfigSpeed string +``` + + + +```go +const ( + DreamModelConfigSpeedStandard DreamModelConfigSpeed = "standard" + DreamModelConfigSpeedFast DreamModelConfigSpeed = "fast" +) +``` + + +## type [DreamNewParams]() + + + +```go +type DreamNewParams struct { + Inputs []DreamInputUnionParam `json:"inputs,omitzero" api:"required"` + // Model identifier and configuration applied to every pipeline stage. + Model DreamNewParamsModelUnion `json:"model,omitzero" api:"required"` + Instructions param.Opt[string] `json:"instructions,omitzero"` + // The default destination: the job creates a new output memory store as a clone of + // the memory_store input and writes the consolidated memories into it. The input + // store is never mutated. + OutputBehavior OutputBehaviorUnionParam `json:"output_behavior,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamNewParams\) [MarshalJSON]() + +```go +func (r DreamNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DreamNewParams\) [UnmarshalJSON]() + +```go +func (r *DreamNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamNewParamsModelUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type DreamNewParamsModelUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfDreamModelConfig *DreamModelConfigParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamNewParamsModelUnion\) [MarshalJSON]() + +```go +func (u DreamNewParamsModelUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*DreamNewParamsModelUnion\) [UnmarshalJSON]() + +```go +func (u *DreamNewParamsModelUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamOutput]() + +An output memory store the dream writes consolidated memories into. + +```go +type DreamOutput struct { + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type DreamOutputType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamOutput\) [RawJSON]() + +```go +func (r DreamOutput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DreamOutput\) [UnmarshalJSON]() + +```go +func (r *DreamOutput) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamOutputType]() + + + +```go +type DreamOutputType string +``` + + + +```go +const ( + DreamOutputTypeMemoryStore DreamOutputType = "memory_store" +) +``` + + +## type [DreamService]() + +DreamService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewDreamService](<#NewDreamService>) method instead. + +```go +type DreamService struct { + Options []option.RequestOption +} +``` + + +### func [NewDreamService]() + +```go +func NewDreamService(opts ...option.RequestOption) (r DreamService) +``` + +NewDreamService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*DreamService\) [Archive]() + +```go +func (r *DreamService) Archive(ctx context.Context, dreamID string, body DreamArchiveParams, opts ...option.RequestOption) (res *Dream, err error) +``` + +Archive a Dream + + +### func \(\*DreamService\) [Cancel]() + +```go +func (r *DreamService) Cancel(ctx context.Context, dreamID string, body DreamCancelParams, opts ...option.RequestOption) (res *Dream, err error) +``` + +Cancel a Dream + + +### func \(\*DreamService\) [Get]() + +```go +func (r *DreamService) Get(ctx context.Context, dreamID string, query DreamGetParams, opts ...option.RequestOption) (res *Dream, err error) +``` + +Get a Dream + + +### func \(\*DreamService\) [List]() + +```go +func (r *DreamService) List(ctx context.Context, params DreamListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Dream], err error) +``` + +List Dreams + + +### func \(\*DreamService\) [ListAutoPaging]() + +```go +func (r *DreamService) ListAutoPaging(ctx context.Context, params DreamListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Dream] +``` + +List Dreams + + +### func \(\*DreamService\) [New]() + +```go +func (r *DreamService) New(ctx context.Context, params DreamNewParams, opts ...option.RequestOption) (res *Dream, err error) +``` + +Create a Dream + + +## type [DreamSessionsInput]() + +Input session transcripts the dream reads. + +```go +type DreamSessionsInput struct { + SessionIDs []string `json:"session_ids" api:"required"` + // Any of "sessions". + Type DreamSessionsInputType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + SessionIDs respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamSessionsInput\) [RawJSON]() + +```go +func (r DreamSessionsInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(DreamSessionsInput\) [ToParam]() + +```go +func (r DreamSessionsInput) ToParam() DreamSessionsInputParam +``` + +ToParam converts this DreamSessionsInput to a DreamSessionsInputParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with DreamSessionsInputParam.Overrides\(\) + + +### func \(\*DreamSessionsInput\) [UnmarshalJSON]() + +```go +func (r *DreamSessionsInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamSessionsInputParam]() + +Input session transcripts the dream reads. + +The properties SessionIDs, Type are required. + +```go +type DreamSessionsInputParam struct { + SessionIDs []string `json:"session_ids,omitzero" api:"required"` + // Any of "sessions". + Type DreamSessionsInputType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(DreamSessionsInputParam\) [MarshalJSON]() + +```go +func (r DreamSessionsInputParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*DreamSessionsInputParam\) [UnmarshalJSON]() + +```go +func (r *DreamSessionsInputParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [DreamSessionsInputType]() + + + +```go +type DreamSessionsInputType string +``` + + + +```go +const ( + DreamSessionsInputTypeSessions DreamSessionsInputType = "sessions" +) +``` + + +## type [DreamStatus]() + +Lifecycle status of a Dream. + +```go +type DreamStatus string +``` + + + +```go +const ( + DreamStatusPending DreamStatus = "pending" + DreamStatusRunning DreamStatus = "running" + DreamStatusCompleted DreamStatus = "completed" + DreamStatusFailed DreamStatus = "failed" + DreamStatusCanceled DreamStatus = "canceled" +) +``` + + +## type [DreamType]() + + + +```go +type DreamType string +``` + + + +```go +const ( + DreamTypeDream DreamType = "dream" +) +``` + + +## type [DreamUsage]() + +Cumulative token usage for the dream across every pipeline stage. + +```go +type DreamUsage struct { + // Total tokens used to create prompt-cache entries (sum of all TTL tiers). + CacheCreationInputTokens int64 `json:"cache_creation_input_tokens" api:"required"` + // Total tokens read from prompt cache. + CacheReadInputTokens int64 `json:"cache_read_input_tokens" api:"required"` + // Total uncached input tokens consumed across every pipeline stage. + InputTokens int64 `json:"input_tokens" api:"required"` + // Total output tokens generated across every pipeline stage. + OutputTokens int64 `json:"output_tokens" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + CacheCreationInputTokens respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + OutputTokens respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(DreamUsage\) [RawJSON]() + +```go +func (r DreamUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*DreamUsage\) [UnmarshalJSON]() + +```go +func (r *DreamUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [EffortCapability]() + +Effort \(reasoning\_effort\) capability details. + +```go +type EffortCapability struct { + // Whether the model supports high effort level. + High CapabilitySupport `json:"high" api:"required"` + // Whether the model supports low effort level. + Low CapabilitySupport `json:"low" api:"required"` + // Whether the model supports max effort level. + Max CapabilitySupport `json:"max" api:"required"` + // Whether the model supports medium effort level. + Medium CapabilitySupport `json:"medium" api:"required"` + // Whether this capability is supported by the model. + Supported bool `json:"supported" api:"required"` + // Indicates whether a capability is supported. + Xhigh CapabilitySupport `json:"xhigh" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + High respjson.Field + Low respjson.Field + Max respjson.Field + Medium respjson.Field + Supported respjson.Field + Xhigh respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EffortCapability\) [RawJSON]() + +```go +func (r EffortCapability) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*EffortCapability\) [UnmarshalJSON]() + +```go +func (r *EffortCapability) UnmarshalJSON(data []byte) error +``` + + + + +## type [EncryptedCodeExecutionResultBlockParam]() + +Code execution result with encrypted stdout for PFC \+ web\_search results. + +The properties Content, EncryptedStdout, ReturnCode, Stderr, Type are required. + +```go +type EncryptedCodeExecutionResultBlockParam struct { + Content []CodeExecutionOutputBlockParam `json:"content,omitzero" api:"required"` + EncryptedStdout string `json:"encrypted_stdout" api:"required"` + ReturnCode int64 `json:"return_code" api:"required"` + Stderr string `json:"stderr" api:"required"` + // This field can be elided, and will marshal its zero value as + // "encrypted_code_execution_result". + Type constant.EncryptedCodeExecutionResult `json:"type" default:"encrypted_code_execution_result"` + // contains filtered or unexported fields +} +``` + + +### func \(EncryptedCodeExecutionResultBlockParam\) [MarshalJSON]() + +```go +func (r EncryptedCodeExecutionResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*EncryptedCodeExecutionResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *EncryptedCodeExecutionResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [Environment]() + +Unified Environment resource for both cloud and self\-hosted environments. + +```go +type Environment struct { + // Environment identifier (e.g., 'env\_...') + ID string `json:"id" api:"required"` + // RFC 3339 timestamp when environment was archived, or null if not archived + ArchivedAt string `json:"archived_at" api:"required"` + // Environment configuration (either Qoder Cloud or self-hosted) + Config EnvironmentConfigUnion `json:"config" api:"required"` + // RFC 3339 timestamp when environment was created + CreatedAt string `json:"created_at" api:"required"` + // User-provided description for the environment; null when unset + Description string `json:"description" api:"required"` + // User-provided metadata key-value pairs + Metadata map[string]string `json:"metadata" api:"required"` + // Human-readable name for the environment + Name string `json:"name" api:"required"` + // The type of object (always 'environment') + Type constant.Environment `json:"type" default:"environment"` + // RFC 3339 timestamp when environment was last updated + UpdatedAt string `json:"updated_at" api:"required"` + // The visibility scope for this environment. 'organization' means visible to all + // accounts. 'account' means visible only to the owning account. + // + // Any of "organization", "account". + Scope EnvironmentScope `json:"scope"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ArchivedAt respjson.Field + Config respjson.Field + CreatedAt respjson.Field + Description respjson.Field + Metadata respjson.Field + Name respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Scope respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Environment\) [RawJSON]() + +```go +func (r Environment) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*Environment\) [UnmarshalJSON]() + +```go +func (r *Environment) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentArchiveParams]() + + + +```go +type EnvironmentArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentConfigUnion]() + +EnvironmentConfigUnion contains all possible properties and values from [CloudConfig](<#CloudConfig>), [SelfHostedConfig](<#SelfHostedConfig>). + +Use the [EnvironmentConfigUnion.AsAny](<#EnvironmentConfigUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type EnvironmentConfigUnion struct { + // This field is from variant [CloudConfig]. + Networking CloudConfigNetworkingUnion `json:"networking"` + // This field is from variant [CloudConfig]. + Packages Packages `json:"packages"` + // Any of "cloud", "self_hosted". + Type string `json:"type"` + JSON struct { + Networking respjson.Field + Packages respjson.Field + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EnvironmentConfigUnion\) [AsAny]() + +```go +func (u EnvironmentConfigUnion) AsAny() anyEnvironmentConfig +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := EnvironmentConfigUnion.AsAny().(type) { +case qoder.CloudConfig: +case qoder.SelfHostedConfig: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(EnvironmentConfigUnion\) [AsCloud]() + +```go +func (u EnvironmentConfigUnion) AsCloud() (v CloudConfig) +``` + + + + +### func \(EnvironmentConfigUnion\) [AsSelfHosted]() + +```go +func (u EnvironmentConfigUnion) AsSelfHosted() (v SelfHostedConfig) +``` + + + + +### func \(EnvironmentConfigUnion\) [RawJSON]() + +```go +func (u EnvironmentConfigUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*EnvironmentConfigUnion\) [UnmarshalJSON]() + +```go +func (r *EnvironmentConfigUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentDeleteParams]() + + + +```go +type EnvironmentDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentDeleteResponse]() + +Response after deleting an environment. + +```go +type EnvironmentDeleteResponse struct { + // Environment identifier + ID string `json:"id" api:"required"` + // The type of response + // + // Any of "environment_deleted". + Type EnvironmentDeleteResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(EnvironmentDeleteResponse\) [RawJSON]() + +```go +func (r EnvironmentDeleteResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*EnvironmentDeleteResponse\) [UnmarshalJSON]() + +```go +func (r *EnvironmentDeleteResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentDeleteResponseType]() + +The type of response + +```go +type EnvironmentDeleteResponseType string +``` + + + +```go +const ( + EnvironmentDeleteResponseTypeEnvironmentDeleted EnvironmentDeleteResponseType = "environment_deleted" +) +``` + + +## type [EnvironmentGetParams]() + + + +```go +type EnvironmentGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentListParams]() + + + +```go +type EnvironmentListParams struct { + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + + // Opaque cursor from previous response for pagination. Pass the `next_page` value + // from the previous response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Include archived environments in the response + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum number of environments to return + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentListParams\) [URLQuery]() + +```go +func (r EnvironmentListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [EnvironmentListParams](<#EnvironmentListParams>)'s query parameters as \`url.Values\`. + + +## type [EnvironmentNewParams]() + + + +```go +type EnvironmentNewParams struct { + // Human-readable name for the environment + Name string `json:"name" api:"required"` + // Optional description of the environment + Description param.Opt[string] `json:"description,omitzero"` + // Environment configuration + Config EnvironmentNewParamsConfigUnion `json:"config,omitzero"` + // The visibility scope for this environment. 'organization' makes the environment + // visible to all accounts. 'account' restricts visibility to the owning account + // only. Only applicable for self-hosted environments. If not specified, defaults + // based on organization type. + // + // Any of "organization", "account". + Scope EnvironmentNewParamsScope `json:"scope,omitzero"` + // User-provided metadata key-value pairs + Metadata map[string]string `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentNewParams\) [MarshalJSON]() + +```go +func (r EnvironmentNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*EnvironmentNewParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentNewParamsConfigUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type EnvironmentNewParamsConfigUnion struct { + OfCloud *CloudConfigParams `json:",omitzero,inline"` + OfSelfHosted *SelfHostedConfigParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentNewParamsConfigUnion\) [GetNetworking]() + +```go +func (u EnvironmentNewParamsConfigUnion) GetNetworking() *CloudConfigParamsNetworkingUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentNewParamsConfigUnion\) [GetPackages]() + +```go +func (u EnvironmentNewParamsConfigUnion) GetPackages() *PackagesParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentNewParamsConfigUnion\) [GetType]() + +```go +func (u EnvironmentNewParamsConfigUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentNewParamsConfigUnion\) [MarshalJSON]() + +```go +func (u EnvironmentNewParamsConfigUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentNewParamsConfigUnion\) [UnmarshalJSON]() + +```go +func (u *EnvironmentNewParamsConfigUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentNewParamsScope]() + +The visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only. Only applicable for self\-hosted environments. If not specified, defaults based on organization type. + +```go +type EnvironmentNewParamsScope string +``` + + + +```go +const ( + EnvironmentNewParamsScopeOrganization EnvironmentNewParamsScope = "organization" + EnvironmentNewParamsScopeAccount EnvironmentNewParamsScope = "account" +) +``` + + +## type [EnvironmentScope]() + +The visibility scope for this environment. 'organization' means visible to all accounts. 'account' means visible only to the owning account. + +```go +type EnvironmentScope string +``` + + + +```go +const ( + EnvironmentScopeOrganization EnvironmentScope = "organization" + EnvironmentScopeAccount EnvironmentScope = "account" +) +``` + + +## type [EnvironmentService]() + +EnvironmentService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewEnvironmentService](<#NewEnvironmentService>) method instead. + +```go +type EnvironmentService struct { + Options []option.RequestOption + Work EnvironmentWorkService +} +``` + + +### func [NewEnvironmentService]() + +```go +func NewEnvironmentService(opts ...option.RequestOption) (r EnvironmentService) +``` + +NewEnvironmentService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*EnvironmentService\) [Archive]() + +```go +func (r *EnvironmentService) Archive(ctx context.Context, environmentID string, body EnvironmentArchiveParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Archive an environment by ID. Archived environments cannot be used to create new sessions. + + +### func \(\*EnvironmentService\) [Delete]() + +```go +func (r *EnvironmentService) Delete(ctx context.Context, environmentID string, body EnvironmentDeleteParams, opts ...option.RequestOption) (res *EnvironmentDeleteResponse, err error) +``` + +Delete an environment by ID. Returns a confirmation of the deletion. + + +### func \(\*EnvironmentService\) [Get]() + +```go +func (r *EnvironmentService) Get(ctx context.Context, environmentID string, query EnvironmentGetParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Retrieve a specific environment by ID. + + +### func \(\*EnvironmentService\) [List]() + +```go +func (r *EnvironmentService) List(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Environment], err error) +``` + +List environments with pagination support. + + +### func \(\*EnvironmentService\) [ListAutoPaging]() + +```go +func (r *EnvironmentService) ListAutoPaging(ctx context.Context, params EnvironmentListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Environment] +``` + +List environments with pagination support. + + +### func \(\*EnvironmentService\) [New]() + +```go +func (r *EnvironmentService) New(ctx context.Context, params EnvironmentNewParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Create a new environment with the specified configuration. + + +### func \(\*EnvironmentService\) [Update]() + +```go +func (r *EnvironmentService) Update(ctx context.Context, environmentID string, params EnvironmentUpdateParams, opts ...option.RequestOption) (res *Environment, err error) +``` + +Update an existing environment's configuration. + + +## type [EnvironmentUpdateParams]() + + + +```go +type EnvironmentUpdateParams struct { + // Updated description of the environment. Omit to preserve; null clears to null; + // an empty string is stored as an empty string. + Description param.Opt[string] `json:"description,omitzero"` + // Updated name for the environment + Name param.Opt[string] `json:"name,omitzero"` + // Updated environment configuration + Config EnvironmentUpdateParamsConfigUnion `json:"config,omitzero"` + // The visibility scope for this environment. 'organization' makes the environment + // visible to all accounts. 'account' restricts visibility to the owning account + // only. + // + // Any of "organization", "account". + Scope EnvironmentUpdateParamsScope `json:"scope,omitzero"` + // User-provided metadata key-value pairs. Set a value to null or empty string to + // delete the key. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentUpdateParams\) [MarshalJSON]() + +```go +func (r EnvironmentUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*EnvironmentUpdateParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentUpdateParamsConfigUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type EnvironmentUpdateParamsConfigUnion struct { + OfCloud *CloudConfigParams `json:",omitzero,inline"` + OfSelfHosted *SelfHostedConfigParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentUpdateParamsConfigUnion\) [GetNetworking]() + +```go +func (u EnvironmentUpdateParamsConfigUnion) GetNetworking() *CloudConfigParamsNetworkingUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentUpdateParamsConfigUnion\) [GetPackages]() + +```go +func (u EnvironmentUpdateParamsConfigUnion) GetPackages() *PackagesParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentUpdateParamsConfigUnion\) [GetType]() + +```go +func (u EnvironmentUpdateParamsConfigUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(EnvironmentUpdateParamsConfigUnion\) [MarshalJSON]() + +```go +func (u EnvironmentUpdateParamsConfigUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*EnvironmentUpdateParamsConfigUnion\) [UnmarshalJSON]() + +```go +func (u *EnvironmentUpdateParamsConfigUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentUpdateParamsScope]() + +The visibility scope for this environment. 'organization' makes the environment visible to all accounts. 'account' restricts visibility to the owning account only. + +```go +type EnvironmentUpdateParamsScope string +``` + + + +```go +const ( + EnvironmentUpdateParamsScopeOrganization EnvironmentUpdateParamsScope = "organization" + EnvironmentUpdateParamsScopeAccount EnvironmentUpdateParamsScope = "account" +) +``` + + +## type [EnvironmentWorkAckParams]() + + + +```go +type EnvironmentWorkAckParams struct { + EnvironmentID string `path:"environment_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentWorkGetParams]() + + + +```go +type EnvironmentWorkGetParams struct { + EnvironmentID string `path:"environment_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentWorkHeartbeatParams]() + + + +```go +type EnvironmentWorkHeartbeatParams struct { + EnvironmentID string `path:"environment_id" api:"required" json:"-"` + // Desired TTL in seconds + DesiredTTLSeconds param.Opt[int64] `query:"desired_ttl_seconds,omitzero" json:"-"` + // Expected last_heartbeat for conditional update (optimistic concurrency). Use + // literal 'NO_HEARTBEAT' to claim an unclaimed lease (first heartbeat). For + // subsequent heartbeats, echo the server's previous last_heartbeat value exactly. + // Returns 412 Precondition Failed if the actual value doesn't match. + ExpectedLastHeartbeat param.Opt[string] `query:"expected_last_heartbeat,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentWorkHeartbeatParams\) [URLQuery]() + +```go +func (r EnvironmentWorkHeartbeatParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [EnvironmentWorkHeartbeatParams](<#EnvironmentWorkHeartbeatParams>)'s query parameters as \`url.Values\`. + + +## type [EnvironmentWorkListParams]() + + + +```go +type EnvironmentWorkListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Opaque cursor from previous response for pagination + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Maximum number of work items to return + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentWorkListParams\) [URLQuery]() + +```go +func (r EnvironmentWorkListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [EnvironmentWorkListParams](<#EnvironmentWorkListParams>)'s query parameters as \`url.Values\`. + + +## type [EnvironmentWorkPollParams]() + + + +```go +type EnvironmentWorkPollParams struct { + // How long to wait for work to arrive before returning. Must be 1-999 in + // milliseconds. Defaults to non-blocking (returns immediately if no work is + // available). + BlockMs param.Opt[int64] `query:"block_ms,omitzero" json:"-"` + // Reclaim unacknowledged work items older than this many milliseconds. If omitted, + // uses the default (5000ms). + ReclaimOlderThanMs param.Opt[int64] `query:"reclaim_older_than_ms,omitzero" json:"-"` + // Unique identifier for the specific worker polling, used to track aggregated + // environment-level work metrics in Console + QoderWorkerID param.Opt[string] `header:"Worker-ID,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentWorkPollParams\) [URLQuery]() + +```go +func (r EnvironmentWorkPollParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [EnvironmentWorkPollParams](<#EnvironmentWorkPollParams>)'s query parameters as \`url.Values\`. + + +## type [EnvironmentWorkService]() + +EnvironmentWorkService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewEnvironmentWorkService](<#NewEnvironmentWorkService>) method instead. + +```go +type EnvironmentWorkService struct { + Options []option.RequestOption +} +``` + + +### func [NewEnvironmentWorkService]() + +```go +func NewEnvironmentWorkService(opts ...option.RequestOption) (r EnvironmentWorkService) +``` + +NewEnvironmentWorkService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*EnvironmentWorkService\) [Ack]() + +```go +func (r *EnvironmentWorkService) Ack(ctx context.Context, workID string, params EnvironmentWorkAckParams, opts ...option.RequestOption) (res *SelfHostedWork, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Acknowledge receipt of a work item, transitioning it from 'queued' to 'starting' and removing it from the queue. + + +### func \(\*EnvironmentWorkService\) [Get]() + +```go +func (r *EnvironmentWorkService) Get(ctx context.Context, workID string, params EnvironmentWorkGetParams, opts ...option.RequestOption) (res *SelfHostedWork, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Retrieve detailed information about a specific work item. + + +### func \(\*EnvironmentWorkService\) [Heartbeat]() + +```go +func (r *EnvironmentWorkService) Heartbeat(ctx context.Context, workID string, params EnvironmentWorkHeartbeatParams, opts ...option.RequestOption) (res *SelfHostedWorkHeartbeatResponse, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Record a heartbeat for a work item to maintain the lease. + + +### func \(\*EnvironmentWorkService\) [List]() + +```go +func (r *EnvironmentWorkService) List(ctx context.Context, environmentID string, params EnvironmentWorkListParams, opts ...option.RequestOption) (res *pagination.PageCursor[SelfHostedWork], err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +List work items in an environment. + + +### func \(\*EnvironmentWorkService\) [ListAutoPaging]() + +```go +func (r *EnvironmentWorkService) ListAutoPaging(ctx context.Context, environmentID string, params EnvironmentWorkListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[SelfHostedWork] +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +List work items in an environment. + + +### func \(\*EnvironmentWorkService\) [Poll]() + +```go +func (r *EnvironmentWorkService) Poll(ctx context.Context, environmentID string, params EnvironmentWorkPollParams, opts ...option.RequestOption) (res *SelfHostedWork, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Long poll for work items in the queue. + + +### func \(\*EnvironmentWorkService\) [Stats]() + +```go +func (r *EnvironmentWorkService) Stats(ctx context.Context, environmentID string, query EnvironmentWorkStatsParams, opts ...option.RequestOption) (res *SelfHostedWorkQueueStats, err error) +``` + +Get statistics about the work queue for an environment. + + +### func \(\*EnvironmentWorkService\) [Stop]() + +```go +func (r *EnvironmentWorkService) Stop(ctx context.Context, workID string, params EnvironmentWorkStopParams, opts ...option.RequestOption) (res *SelfHostedWork, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Stop a work item, initiating graceful or forced shutdown. + + +### func \(\*EnvironmentWorkService\) [Update]() + +```go +func (r *EnvironmentWorkService) Update(ctx context.Context, workID string, params EnvironmentWorkUpdateParams, opts ...option.RequestOption) (res *SelfHostedWork, err error) +``` + +Note: these endpoints are called automatically by the pre\-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self\-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly. + +Update work item metadata with merge semantics. + + +## type [EnvironmentWorkStatsParams]() + + + +```go +type EnvironmentWorkStatsParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [EnvironmentWorkStopParams]() + + + +```go +type EnvironmentWorkStopParams struct { + EnvironmentID string `path:"environment_id" api:"required" json:"-"` + // Request to stop a work item. + SelfHostedWorkStopRequest SelfHostedWorkStopRequestParam + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentWorkStopParams\) [MarshalJSON]() + +```go +func (r EnvironmentWorkStopParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*EnvironmentWorkStopParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentWorkStopParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [EnvironmentWorkUpdateParams]() + + + +```go +type EnvironmentWorkUpdateParams struct { + EnvironmentID string `path:"environment_id" api:"required" json:"-"` + // Request to update work item metadata. + SelfHostedWorkUpdateRequest SelfHostedWorkUpdateRequestParam + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(EnvironmentWorkUpdateParams\) [MarshalJSON]() + +```go +func (r EnvironmentWorkUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*EnvironmentWorkUpdateParams\) [UnmarshalJSON]() + +```go +func (r *EnvironmentWorkUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [Error]() + +Error is the standard Qoder HTTP error. + +```go +type Error = convention.Error +``` + + +## type [FallbackBlockParam]() + +A \`fallback\` block echoed back from a prior response. + +Accepted in \`messages\[\].content\` and not rendered into the prompt; not validated against the request's \`fallbacks\` chain or top\-level \`model\`. + +Echo the assistant turn back verbatim, including this block in its original position. The block marks the boundary between content produced before and after a fallback hop, and the server relies on that boundary to validate the turn: when thinking runs flank the boundary, omitting the block merges them into one span the server cannot validate \(the request is rejected\), and moving it into the middle of a single run is likewise rejected; between non\-thinking blocks the block's placement has no validation effect. + +The properties From, To, Type are required. + +```go +type FallbackBlockParam struct { + // Identifies one hop of a fallback transition. + From FallbackInfoParam `json:"from,omitzero" api:"required"` + // Identifies one hop of a fallback transition. + To FallbackInfoParam `json:"to,omitzero" api:"required"` + // The response block's `trigger`, echoed verbatim. Accepted and ignored by the + // server; any object or `null` is allowed. + Trigger any `json:"trigger,omitzero"` + // This field can be elided, and will marshal its zero value as "fallback". + Type constant.Fallback `json:"type" default:"fallback"` + // contains filtered or unexported fields +} +``` + + +### func \(FallbackBlockParam\) [MarshalJSON]() + +```go +func (r FallbackBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*FallbackBlockParam\) [UnmarshalJSON]() + +```go +func (r *FallbackBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [FallbackInfoParam]() + +Identifies one hop of a fallback transition. + +The property Model is required. + +```go +type FallbackInfoParam struct { + // The model that will complete your prompt. + // + // See [models](https://docs.qoder.com/cloud-agents/api/models/list) for additional + // details and options. + Model Model `json:"model,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(FallbackInfoParam\) [MarshalJSON]() + +```go +func (r FallbackInfoParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*FallbackInfoParam\) [UnmarshalJSON]() + +```go +func (r *FallbackInfoParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileDeleteParams]() + + + +```go +type FileDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [FileDocumentSourceParam]() + +The properties FileID, Type are required. + +```go +type FileDocumentSourceParam struct { + FileID string `json:"file_id" api:"required"` + // This field can be elided, and will marshal its zero value as "file". + Type constant.File `json:"type" default:"file"` + // contains filtered or unexported fields +} +``` + + +### func \(FileDocumentSourceParam\) [MarshalJSON]() + +```go +func (r FileDocumentSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*FileDocumentSourceParam\) [UnmarshalJSON]() + +```go +func (r *FileDocumentSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileDownloadParams]() + + + +```go +type FileDownloadParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [FileGetMetadataParams]() + + + +```go +type FileGetMetadataParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [FileImageSourceParam]() + +The properties FileID, Type are required. + +```go +type FileImageSourceParam struct { + FileID string `json:"file_id" api:"required"` + // This field can be elided, and will marshal its zero value as "file". + Type constant.File `json:"type" default:"file"` + // contains filtered or unexported fields +} +``` + + +### func \(FileImageSourceParam\) [MarshalJSON]() + +```go +func (r FileImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*FileImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *FileImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileListParams]() + + + +```go +type FileListParams struct { + Name param.Opt[string] `query:"name,omitzero" json:"-"` + + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Opaque page cursor returned in a prior list response's `next_page`. Prefixed + // `page_`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Number of items to return per page. + // + // Defaults to `20`. Ranges from `1` to `1000`. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Filter by scope ID. Only returns files associated with the specified scope + // (e.g., a session ID). + ScopeID param.Opt[string] `query:"scope_id,omitzero" json:"-"` + // Restrict the result set to Files whose `id` is in this list. At most 100 entries + // (after de-duplication). Mutually exclusive with `page` and `limit`. When + // supplied, the response is always a single page (`next_page` is null). IDs that + // do not resolve to a visible File — including deleted Files — are silently + // omitted. + IDs []string `query:"ids,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(FileListParams\) [URLQuery]() + +```go +func (r FileListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [FileListParams](<#FileListParams>)'s query parameters as \`url.Values\`. + + +## type [FileMetadata]() + + + +```go +type FileMetadata struct { + Metadata map[string]string `json:"metadata"` + Status string `json:"status"` + + // Unique object identifier. + // + // The format and length of IDs may change over time. + ID string `json:"id" api:"required"` + // RFC 3339 datetime string representing when the file was created. + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Original filename of the uploaded file. + Filename string `json:"filename" api:"required"` + // MIME type of the file. + MimeType string `json:"mime_type" api:"required"` + // Size of the file in bytes. + SizeBytes int64 `json:"size_bytes" api:"required"` + // Object type. + // + // For files, this is always `"file"`. + Type constant.File `json:"type" default:"file"` + // Whether the file can be downloaded. + Downloadable bool `json:"downloadable"` + // RFC 3339 datetime string representing when the file will expire and become + // unavailable for download. Null if the file does not expire. For files uploaded + // with `expires_in_seconds`, this is the upload time plus that value. + ExpiresAt time.Time `json:"expires_at" api:"nullable" format:"date-time"` + // The scope of this file, indicating the context in which it was created (e.g., a + // session). + Scope FileScope `json:"scope" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Metadata respjson.Field + Status respjson.Field + + ID respjson.Field + CreatedAt respjson.Field + Filename respjson.Field + MimeType respjson.Field + SizeBytes respjson.Field + Type respjson.Field + Downloadable respjson.Field + ExpiresAt respjson.Field + Scope respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(FileMetadata\) [RawJSON]() + +```go +func (r FileMetadata) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*FileMetadata\) [UnmarshalJSON]() + +```go +func (r *FileMetadata) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileScope]() + + + +```go +type FileScope struct { + // The ID of the scoping resource (e.g., the session ID). + ID string `json:"id" api:"required"` + // The type of scope (e.g., `"session"`). + Type constant.Session `json:"type" default:"session"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(FileScope\) [RawJSON]() + +```go +func (r FileScope) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*FileScope\) [UnmarshalJSON]() + +```go +func (r *FileScope) UnmarshalJSON(data []byte) error +``` + + + + +## type [FileService]() + +FileService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewFileService](<#NewFileService>) method instead. + +```go +type FileService struct { + Options []option.RequestOption +} +``` + + +### func [NewFileService]() + +```go +func NewFileService(opts ...option.RequestOption) (r FileService) +``` + +NewFileService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*FileService\) [Delete]() + +```go +func (r *FileService) Delete(ctx context.Context, fileID string, body FileDeleteParams, opts ...option.RequestOption) (res *DeletedFile, err error) +``` + +Delete File + + +### func \(\*FileService\) [Download]() + +```go +func (r *FileService) Download(ctx context.Context, fileID string, query FileDownloadParams, opts ...option.RequestOption) (res *http.Response, err error) +``` + +Download File + + +### func \(\*FileService\) [GetMetadata]() + +```go +func (r *FileService) GetMetadata(ctx context.Context, fileID string, query FileGetMetadataParams, opts ...option.RequestOption) (res *FileMetadata, err error) +``` + +Get File Metadata + + +### func \(\*FileService\) [List]() + +```go +func (r *FileService) List(ctx context.Context, params FileListParams, opts ...option.RequestOption) (res *pagination.PageCursor[FileMetadata], err error) +``` + +List Files + + +### func \(\*FileService\) [ListAutoPaging]() + +```go +func (r *FileService) ListAutoPaging(ctx context.Context, params FileListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[FileMetadata] +``` + +List Files + + +### func \(\*FileService\) [Upload]() + +```go +func (r *FileService) Upload(ctx context.Context, params FileUploadParams, opts ...option.RequestOption) (res *FileMetadata, err error) +``` + +Upload File + + +## type [FileUploadParams]() + + + +```go +type FileUploadParams struct { + Name param.Opt[string] `json:"name,omitzero"` + + Metadata map[string]string `json:"metadata,omitzero" api:"metadata"` + + // The file to upload. Only the final path component of the part's `filename` is + // kept; an absent or empty `filename` is replaced with `unnamed` plus the + // extension for the file's stored `mime_type`, when known. + File io.Reader `json:"file,omitzero" api:"required" format:"binary"` + // Seconds from upload until the file expires and its bytes become permanently + // unavailable. Must be between 3600 (one hour) and 7776000 (ninety days). + ExpiresInSeconds param.Opt[int64] `json:"expires_in_seconds,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(FileUploadParams\) [MarshalMultipart]() + +```go +func (r FileUploadParams) MarshalMultipart() (data []byte, contentType string, err error) +``` + + + + +## type [HealthCheckWorkData]() + +Work data for environment health checks. + +This resource type is used for assessing the health of containers where work occurs. The data is opaque to users; the runner handles the health check by probing connectivity to required services. + +```go +type HealthCheckWorkData struct { + // Health check identifier + ID string `json:"id" api:"required"` + // Type of work data + // + // Any of "healthcheck". + Type HealthCheckWorkDataType `json:"type"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(HealthCheckWorkData\) [RawJSON]() + +```go +func (r HealthCheckWorkData) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*HealthCheckWorkData\) [UnmarshalJSON]() + +```go +func (r *HealthCheckWorkData) UnmarshalJSON(data []byte) error +``` + + + + +## type [HealthCheckWorkDataType]() + +Type of work data + +```go +type HealthCheckWorkDataType string +``` + + + +```go +const ( + HealthCheckWorkDataTypeHealthcheck HealthCheckWorkDataType = "healthcheck" +) +``` + + +## type [ImageBlockParam]() + +The properties Source, Type are required. + +```go +type ImageBlockParam struct { + Source ImageBlockParamSourceUnion `json:"source,omitzero" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // Configures the transformations the server applies to this image before the model + // observes it. Each key names a condition the server transforms images for; its + // value selects the transformation applied. Omitted keys keep their default + // behavior, and an empty object is equivalent to omitting the field. + Transformations ImageTransformationsParam `json:"transformations,omitzero"` + // This field can be elided, and will marshal its zero value as "image". + Type constant.Image `json:"type" default:"image"` + // contains filtered or unexported fields +} +``` + + +### func \(ImageBlockParam\) [MarshalJSON]() + +```go +func (r ImageBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ImageBlockParam\) [UnmarshalJSON]() + +```go +func (r *ImageBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ImageBlockParamSourceUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ImageBlockParamSourceUnion struct { + OfBase64 *Base64ImageSourceParam `json:",omitzero,inline"` + OfURL *URLImageSourceParam `json:",omitzero,inline"` + OfFile *FileImageSourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ImageBlockParamSourceUnion\) [GetData]() + +```go +func (u ImageBlockParamSourceUnion) GetData() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ImageBlockParamSourceUnion\) [GetFileID]() + +```go +func (u ImageBlockParamSourceUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ImageBlockParamSourceUnion\) [GetMediaType]() + +```go +func (u ImageBlockParamSourceUnion) GetMediaType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ImageBlockParamSourceUnion\) [GetType]() + +```go +func (u ImageBlockParamSourceUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ImageBlockParamSourceUnion\) [GetURL]() + +```go +func (u ImageBlockParamSourceUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ImageBlockParamSourceUnion\) [MarshalJSON]() + +```go +func (u ImageBlockParamSourceUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ImageBlockParamSourceUnion\) [UnmarshalJSON]() + +```go +func (u *ImageBlockParamSourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ImageTransformationsParam]() + +Configures the transformations the server applies to this image before the model observes it. Each key names a condition the server transforms images for; its value selects the transformation applied. Omitted keys keep their default behavior, and an empty object is equivalent to omitting the field. + +```go +type ImageTransformationsParam struct { + // What the server does when this image exceeds the model's maximum image size. + // `"downsize"` (the default) scales the image down to fit, which changes the + // dimensions the model observes without telling you. `"error"` instead rejects the + // request with a 400 error naming the image's dimensions and the largest + // dimensions that fit, so you can scale the image deliberately — your image is + // never silently scaled down. + // + // Any of "downsize", "error". + OversizedImage ImageTransformationsParamOversizedImage `json:"oversized_image,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ImageTransformationsParam\) [MarshalJSON]() + +```go +func (r ImageTransformationsParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ImageTransformationsParam\) [UnmarshalJSON]() + +```go +func (r *ImageTransformationsParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ImageTransformationsParamOversizedImage]() + +What the server does when this image exceeds the model's maximum image size. \`"downsize"\` \(the default\) scales the image down to fit, which changes the dimensions the model observes without telling you. \`"error"\` instead rejects the request with a 400 error naming the image's dimensions and the largest dimensions that fit, so you can scale the image deliberately — your image is never silently scaled down. + +```go +type ImageTransformationsParamOversizedImage string +``` + + +## type [LimitedNetwork]() + +Limited network access. + +```go +type LimitedNetwork struct { + // Permits outbound access to MCP server endpoints configured on the agent, beyond + // those listed in the `allowed_hosts` array. + AllowMCPServers bool `json:"allow_mcp_servers" api:"required"` + // Permits outbound access to public package registries (PyPI, npm, etc.) beyond + // those listed in the `allowed_hosts` array. + AllowPackageManagers bool `json:"allow_package_managers" api:"required"` + // Specifies domains the container can reach. + AllowedHosts []string `json:"allowed_hosts" api:"required"` + // Network policy type + Type constant.Limited `json:"type" default:"limited"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + AllowMCPServers respjson.Field + AllowPackageManagers respjson.Field + AllowedHosts respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(LimitedNetwork\) [RawJSON]() + +```go +func (r LimitedNetwork) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*LimitedNetwork\) [UnmarshalJSON]() + +```go +func (r *LimitedNetwork) UnmarshalJSON(data []byte) error +``` + + + + +## type [LimitedNetworkParams]() + +Limited network request params. + +Fields default to null; on update, omitted fields preserve the existing value. + +The property Type is required. + +```go +type LimitedNetworkParams struct { + // Permits outbound access to MCP server endpoints configured on the agent, beyond + // those listed in the `allowed_hosts` array. Defaults to `false`. + AllowMCPServers param.Opt[bool] `json:"allow_mcp_servers,omitzero"` + // Permits outbound access to public package registries (PyPI, npm, etc.) beyond + // those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must + // be `true` when `packages` are specified. + AllowPackageManagers param.Opt[bool] `json:"allow_package_managers,omitzero"` + // Specifies domains the container can reach. + AllowedHosts []string `json:"allowed_hosts,omitzero"` + // Network policy type + // + // This field can be elided, and will marshal its zero value as "limited". + Type constant.Limited `json:"type" default:"limited"` + // contains filtered or unexported fields +} +``` + + +### func \(LimitedNetworkParams\) [MarshalJSON]() + +```go +func (r LimitedNetworkParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*LimitedNetworkParams\) [UnmarshalJSON]() + +```go +func (r *LimitedNetworkParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MCPToolUseBlockParam]() + +The properties ID, Input, Name, ServerName, Type are required. + +```go +type MCPToolUseBlockParam struct { + ID string `json:"id" api:"required"` + Input any `json:"input,omitzero" api:"required"` + Name string `json:"name" api:"required"` + // The name of the MCP server + ServerName string `json:"server_name" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "mcp_tool_use". + Type constant.MCPToolUse `json:"type" default:"mcp_tool_use"` + // contains filtered or unexported fields +} +``` + + +### func \(MCPToolUseBlockParam\) [MarshalJSON]() + +```go +func (r MCPToolUseBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*MCPToolUseBlockParam\) [UnmarshalJSON]() + +```go +func (r *MCPToolUseBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAPIActor]() + +Attribution for a write made directly via the public API \(outside of any session\). + +```go +type ManagedAgentsAPIActor struct { + // ID of the API key that performed the write. This identifies the key, not the + // secret. + APIKeyID string `json:"api_key_id" api:"required"` + // Any of "api_actor". + Type ManagedAgentsAPIActorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + APIKeyID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAPIActor\) [RawJSON]() + +```go +func (r ManagedAgentsAPIActor) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAPIActor\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAPIActor) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAPIActorType]() + + + +```go +type ManagedAgentsAPIActorType string +``` + + + +```go +const ( + ManagedAgentsAPIActorTypeAPIActor ManagedAgentsAPIActorType = "api_actor" +) +``` + + +## type [ManagedAgentsActorUnion]() + +ManagedAgentsActorUnion contains all possible properties and values from [ManagedAgentsSessionActor](<#ManagedAgentsSessionActor>), [ManagedAgentsAPIActor](<#ManagedAgentsAPIActor>), [ManagedAgentsUserActor](<#ManagedAgentsUserActor>), [ManagedAgentsServiceAccountActor](<#ManagedAgentsServiceAccountActor>). + +Use the [ManagedAgentsActorUnion.AsAny](<#ManagedAgentsActorUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsActorUnion struct { + // This field is from variant [ManagedAgentsSessionActor]. + SessionID string `json:"session_id"` + // Any of "session_actor", "api_actor", "user_actor", "service_account_actor". + Type string `json:"type"` + // This field is from variant [ManagedAgentsAPIActor]. + APIKeyID string `json:"api_key_id"` + // This field is from variant [ManagedAgentsUserActor]. + UserID string `json:"user_id"` + // This field is from variant [ManagedAgentsServiceAccountActor]. + ServiceAccountID string `json:"service_account_id"` + JSON struct { + SessionID respjson.Field + Type respjson.Field + APIKeyID respjson.Field + UserID respjson.Field + ServiceAccountID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsActorUnion\) [AsAPIActor]() + +```go +func (u ManagedAgentsActorUnion) AsAPIActor() (v ManagedAgentsAPIActor) +``` + + + + +### func \(ManagedAgentsActorUnion\) [AsAny]() + +```go +func (u ManagedAgentsActorUnion) AsAny() anyManagedAgentsActor +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsActorUnion.AsAny().(type) { +case qoder.ManagedAgentsSessionActor: +case qoder.ManagedAgentsAPIActor: +case qoder.ManagedAgentsUserActor: +case qoder.ManagedAgentsServiceAccountActor: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsActorUnion\) [AsServiceAccountActor]() + +```go +func (u ManagedAgentsActorUnion) AsServiceAccountActor() (v ManagedAgentsServiceAccountActor) +``` + + + + +### func \(ManagedAgentsActorUnion\) [AsSessionActor]() + +```go +func (u ManagedAgentsActorUnion) AsSessionActor() (v ManagedAgentsSessionActor) +``` + + + + +### func \(ManagedAgentsActorUnion\) [AsUserActor]() + +```go +func (u ManagedAgentsActorUnion) AsUserActor() (v ManagedAgentsUserActor) +``` + + + + +### func \(ManagedAgentsActorUnion\) [RawJSON]() + +```go +func (u ManagedAgentsActorUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsActorUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsActorUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAdvisor]() + +Platform advisor roster entry: a model the session's primary thread may consult mid\-turn. + +```go +type ManagedAgentsAdvisor struct { + // The advisor model id. + Model string `json:"model" api:"required"` + // Any of "advisor". + Type ManagedAgentsAdvisorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Model respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAdvisor\) [RawJSON]() + +```go +func (r ManagedAgentsAdvisor) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAdvisor\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAdvisor) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAdvisorParams]() + +Platform advisor roster entry: a model the session's primary thread may consult mid\-turn. At most one per roster; the entry occupies the roster name \`qoder.advisor\`. + +The properties Model, Type are required. + +```go +type ManagedAgentsAdvisorParams struct { + // A model id. The model must be permitted as an advisor for this agent's model + // — see the sessions/threads/advisor spec. + Model string `json:"model" api:"required"` + // Any of "advisor". + Type ManagedAgentsAdvisorParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAdvisorParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsAdvisorParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAdvisorParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAdvisorParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAdvisorParamsType]() + + + +```go +type ManagedAgentsAdvisorParamsType string +``` + + + +```go +const ( + ManagedAgentsAdvisorParamsTypeAdvisor ManagedAgentsAdvisorParamsType = "advisor" +) +``` + + +## type [ManagedAgentsAdvisorType]() + + + +```go +type ManagedAgentsAdvisorType string +``` + + + +```go +const ( + ManagedAgentsAdvisorTypeAdvisor ManagedAgentsAdvisorType = "advisor" +) +``` + + +## type [ManagedAgentsAgent]() + +A Managed Agents \`agent\`. + +```go +type ManagedAgentsAgent struct { + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + Description string `json:"description" api:"required"` + MCPServers []ManagedAgentsMCPServerURLDefinition `json:"mcp_servers" api:"required"` + Metadata map[string]string `json:"metadata" api:"required"` + // Model identifier and configuration. + Model ManagedAgentsModelConfig `json:"model" api:"required"` + // Resolved coordinator topology with a concrete agent roster. + Multiagent ManagedAgentsMultiagent `json:"multiagent" api:"required"` + Name string `json:"name" api:"required"` + Skills []ManagedAgentsAgentSkillUnion `json:"skills" api:"required"` + System string `json:"system" api:"required"` + Tools []ManagedAgentsAgentToolUnion `json:"tools" api:"required"` + // Any of "agent". + Type ManagedAgentsAgentType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // The agent's current version. Starts at 1 and increments when the agent is + // modified. + Version int64 `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + Description respjson.Field + MCPServers respjson.Field + Metadata respjson.Field + Model respjson.Field + Multiagent respjson.Field + Name respjson.Field + Skills respjson.Field + System respjson.Field + Tools respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgent\) [RawJSON]() + +```go +func (r ManagedAgentsAgent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentArchivedDeploymentPausedReasonError]() + +The deployment's agent was archived. + +```go +type ManagedAgentsAgentArchivedDeploymentPausedReasonError struct { + // Any of "agent_archived_error". + Type ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentArchivedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsAgentArchivedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentArchivedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentArchivedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsAgentArchivedDeploymentPausedReasonErrorTypeAgentArchivedError ManagedAgentsAgentArchivedDeploymentPausedReasonErrorType = "agent_archived_error" +) +``` + + +## type [ManagedAgentsAgentArchivedRunError]() + +The deployment's agent was archived. + +```go +type ManagedAgentsAgentArchivedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "agent_archived_error". + Type ManagedAgentsAgentArchivedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentArchivedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsAgentArchivedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentArchivedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentArchivedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentArchivedRunErrorType]() + + + +```go +type ManagedAgentsAgentArchivedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsAgentArchivedRunErrorTypeAgentArchivedError ManagedAgentsAgentArchivedRunErrorType = "agent_archived_error" +) +``` + + +## type [ManagedAgentsAgentCustomToolUseEvent]() + +Event emitted when the agent calls a custom tool. The session goes idle until the client sends a \`user.custom\_tool\_result\` event with the result. + +```go +type ManagedAgentsAgentCustomToolUseEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Input parameters for the tool call. + Input map[string]any `json:"input" api:"required"` + // Name of the custom tool being called. + Name string `json:"name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.custom_tool_use". + Type ManagedAgentsAgentCustomToolUseEventType `json:"type" api:"required"` + // When set, this event was cross-posted from a subagent's thread to surface its + // custom tool use on the primary thread's stream. Empty on the thread's own + // events. Echo this on a `user.custom_tool_result` event to route the result back. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Input respjson.Field + Name respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentCustomToolUseEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentCustomToolUseEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentCustomToolUseEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentCustomToolUseEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentCustomToolUseEventType]() + + + +```go +type ManagedAgentsAgentCustomToolUseEventType string +``` + + + +```go +const ( + ManagedAgentsAgentCustomToolUseEventTypeAgentCustomToolUse ManagedAgentsAgentCustomToolUseEventType = "agent.custom_tool_use" +) +``` + + +## type [ManagedAgentsAgentMCPToolResultEvent]() + +Event representing the result of an MCP tool execution. + +```go +type ManagedAgentsAgentMCPToolResultEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // The id of the `agent.mcp_tool_use` event this result corresponds to. + MCPToolUseID string `json:"mcp_tool_use_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.mcp_tool_result". + Type ManagedAgentsAgentMCPToolResultEventType `json:"type" api:"required"` + // The result content returned by the tool. + Content []ManagedAgentsAgentMCPToolResultEventContentUnion `json:"content"` + // Whether the tool execution resulted in an error. + IsError bool `json:"is_error" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + MCPToolUseID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + Content respjson.Field + IsError respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMCPToolResultEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentMCPToolResultEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMCPToolResultEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMCPToolResultEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMCPToolResultEventContentUnion]() + +ManagedAgentsAgentMCPToolResultEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsSearchResultBlock](<#ManagedAgentsSearchResultBlock>). + +Use the [ManagedAgentsAgentMCPToolResultEventContentUnion.AsAny](<#ManagedAgentsAgentMCPToolResultEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentMCPToolResultEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "search_result". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion], [string] + Source ManagedAgentsAgentMCPToolResultEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + Title string `json:"title"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Citations ManagedAgentsSearchResultCitations `json:"citations"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Content []ManagedAgentsSearchResultContent `json:"content"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + Citations respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) AsAny() anyManagedAgentsAgentMCPToolResultEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentMCPToolResultEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsSearchResultBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [AsSearchResult]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) AsSearchResult() (v ManagedAgentsSearchResultBlock) +``` + + + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsAgentMCPToolResultEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentMCPToolResultEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMCPToolResultEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMCPToolResultEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMCPToolResultEventContentUnionSource]() + +ManagedAgentsAgentMCPToolResultEventContentUnionSource is an implicit subunion of [ManagedAgentsAgentMCPToolResultEventContentUnion](<#ManagedAgentsAgentMCPToolResultEventContentUnion>). ManagedAgentsAgentMCPToolResultEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentMCPToolResultEventContentUnion](<#ManagedAgentsAgentMCPToolResultEventContentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsAgentMCPToolResultEventContentUnionSource struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + OfString respjson.Field + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentMCPToolResultEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMCPToolResultEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMCPToolResultEventType]() + + + +```go +type ManagedAgentsAgentMCPToolResultEventType string +``` + + + +```go +const ( + ManagedAgentsAgentMCPToolResultEventTypeAgentMCPToolResult ManagedAgentsAgentMCPToolResultEventType = "agent.mcp_tool_result" +) +``` + + +## type [ManagedAgentsAgentMCPToolUseEvent]() + +Event emitted when the agent invokes a tool provided by an MCP server. + +```go +type ManagedAgentsAgentMCPToolUseEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Input parameters for the tool call. + Input map[string]any `json:"input" api:"required"` + // Name of the MCP server providing the tool. + MCPServerName string `json:"mcp_server_name" api:"required"` + // Name of the MCP tool being used. + Name string `json:"name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.mcp_tool_use". + Type ManagedAgentsAgentMCPToolUseEventType `json:"type" api:"required"` + // AgentEvaluatedPermission enum + // + // Any of "allow", "ask", "deny". + EvaluatedPermission ManagedAgentsAgentMCPToolUseEventEvaluatedPermission `json:"evaluated_permission"` + // When set, this event was cross-posted from a subagent's thread to surface its + // permission request on the primary thread's stream. Empty on the thread's own + // events. Echo this on a `user.tool_confirmation` event to route the approval + // back. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Input respjson.Field + MCPServerName respjson.Field + Name respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + EvaluatedPermission respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMCPToolUseEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentMCPToolUseEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMCPToolUseEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMCPToolUseEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMCPToolUseEventEvaluatedPermission]() + +AgentEvaluatedPermission enum + +```go +type ManagedAgentsAgentMCPToolUseEventEvaluatedPermission string +``` + + + +```go +const ( + ManagedAgentsAgentMCPToolUseEventEvaluatedPermissionAllow ManagedAgentsAgentMCPToolUseEventEvaluatedPermission = "allow" + ManagedAgentsAgentMCPToolUseEventEvaluatedPermissionAsk ManagedAgentsAgentMCPToolUseEventEvaluatedPermission = "ask" + ManagedAgentsAgentMCPToolUseEventEvaluatedPermissionDeny ManagedAgentsAgentMCPToolUseEventEvaluatedPermission = "deny" +) +``` + + +## type [ManagedAgentsAgentMCPToolUseEventType]() + + + +```go +type ManagedAgentsAgentMCPToolUseEventType string +``` + + + +```go +const ( + ManagedAgentsAgentMCPToolUseEventTypeAgentMCPToolUse ManagedAgentsAgentMCPToolUseEventType = "agent.mcp_tool_use" +) +``` + + +## type [ManagedAgentsAgentMessageEvent]() + +An agent response event in the session conversation. + +```go +type ManagedAgentsAgentMessageEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Array of text blocks comprising the agent response. + Content []ManagedAgentsAgentMessageEventContentUnion `json:"content" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.message". + Type ManagedAgentsAgentMessageEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Content respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMessageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentMessageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMessageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMessageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMessageEventContentUnion]() + +ManagedAgentsAgentMessageEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>). + +Use the [ManagedAgentsAgentMessageEventContentUnion.AsAny](<#ManagedAgentsAgentMessageEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentMessageEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "redacted". + Type string `json:"type"` + JSON struct { + Text respjson.Field + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMessageEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentMessageEventContentUnion) AsAny() anyManagedAgentsAgentMessageEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentMessageEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsRedactedBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentMessageEventContentUnion\) [AsRedacted]() + +```go +func (u ManagedAgentsAgentMessageEventContentUnion) AsRedacted() (v ManagedAgentsRedactedBlock) +``` + + + + +### func \(ManagedAgentsAgentMessageEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsAgentMessageEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsAgentMessageEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentMessageEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMessageEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMessageEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMessageEventType]() + + + +```go +type ManagedAgentsAgentMessageEventType string +``` + + + +```go +const ( + ManagedAgentsAgentMessageEventTypeAgentMessage ManagedAgentsAgentMessageEventType = "agent.message" +) +``` + + +## type [ManagedAgentsAgentMessagePreview]() + + + +```go +type ManagedAgentsAgentMessagePreview struct { + // The id the buffered agent.message will carry if it is emitted. Matches the + // event_id on this preview's event_delta events. + ID string `json:"id" api:"required"` + // Any of "agent.message". + Type ManagedAgentsAgentMessagePreviewType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentMessagePreview\) [RawJSON]() + +```go +func (r ManagedAgentsAgentMessagePreview) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentMessagePreview\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentMessagePreview) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentMessagePreviewType]() + + + +```go +type ManagedAgentsAgentMessagePreviewType string +``` + + + +```go +const ( + ManagedAgentsAgentMessagePreviewTypeAgentMessage ManagedAgentsAgentMessagePreviewType = "agent.message" +) +``` + + +## type [ManagedAgentsAgentParams]() + +Specification for an Agent. Provide a specific \`version\` or use the short\-form \`agent="agent\_id"\` for the most recent version + +The properties ID, Type are required. + +```go +type ManagedAgentsAgentParams struct { + // The `agent` ID. + ID string `json:"id" api:"required"` + // Any of "agent". + Type ManagedAgentsAgentParamsType `json:"type,omitzero" api:"required"` + // The specific `agent` version to use. Omit to use the latest version. Must be at + // least 1 if specified. + Version param.Opt[int64] `json:"version,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsAgentParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAgentParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentParamsType]() + + + +```go +type ManagedAgentsAgentParamsType string +``` + + + +```go +const ( + ManagedAgentsAgentParamsTypeAgent ManagedAgentsAgentParamsType = "agent" +) +``` + + +## type [ManagedAgentsAgentReference]() + +A resolved agent reference with a concrete version. + +```go +type ManagedAgentsAgentReference struct { + ID string `json:"id" api:"required"` + // Any of "agent". + Type ManagedAgentsAgentReferenceType `json:"type" api:"required"` + Version int64 `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentReference\) [RawJSON]() + +```go +func (r ManagedAgentsAgentReference) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentReference\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentReference) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentReferenceType]() + + + +```go +type ManagedAgentsAgentReferenceType string +``` + + + +```go +const ( + ManagedAgentsAgentReferenceTypeAgent ManagedAgentsAgentReferenceType = "agent" +) +``` + + +## type [ManagedAgentsAgentSkillUnion]() + +ManagedAgentsAgentSkillUnion contains all possible properties and values from [ManagedAgentsQoderSkill](<#ManagedAgentsQoderSkill>), [ManagedAgentsCustomSkill](<#ManagedAgentsCustomSkill>). + +Use the [ManagedAgentsAgentSkillUnion.AsAny](<#ManagedAgentsAgentSkillUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentSkillUnion struct { + SkillID string `json:"skill_id"` + // Any of "qoder", "custom". + Type string `json:"type"` + Version string `json:"version"` + JSON struct { + SkillID respjson.Field + Type respjson.Field + Version respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentSkillUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentSkillUnion) AsAny() anyManagedAgentsAgentSkill +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentSkillUnion.AsAny().(type) { +case qoder.ManagedAgentsQoderSkill: +case qoder.ManagedAgentsCustomSkill: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentSkillUnion\) [AsCustom]() + +```go +func (u ManagedAgentsAgentSkillUnion) AsCustom() (v ManagedAgentsCustomSkill) +``` + + + + +### func \(ManagedAgentsAgentSkillUnion\) [AsQoder]() + +```go +func (u ManagedAgentsAgentSkillUnion) AsQoder() (v ManagedAgentsQoderSkill) +``` + + + + +### func \(ManagedAgentsAgentSkillUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentSkillUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentSkillUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentSkillUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThinkingEvent]() + +Indicates the agent is making forward progress via extended thinking. A progress signal, not a content carrier. + +```go +type ManagedAgentsAgentThinkingEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.thinking". + Type ManagedAgentsAgentThinkingEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThinkingEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentThinkingEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThinkingEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThinkingEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThinkingEventType]() + + + +```go +type ManagedAgentsAgentThinkingEventType string +``` + + + +```go +const ( + ManagedAgentsAgentThinkingEventTypeAgentThinking ManagedAgentsAgentThinkingEventType = "agent.thinking" +) +``` + + +## type [ManagedAgentsAgentThinkingPreview]() + + + +```go +type ManagedAgentsAgentThinkingPreview struct { + // The id the buffered agent.thinking will carry if it is emitted. Start-only — no + // event_delta events follow. + ID string `json:"id" api:"required"` + // Any of "agent.thinking". + Type ManagedAgentsAgentThinkingPreviewType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThinkingPreview\) [RawJSON]() + +```go +func (r ManagedAgentsAgentThinkingPreview) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThinkingPreview\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThinkingPreview) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThinkingPreviewType]() + + + +```go +type ManagedAgentsAgentThinkingPreviewType string +``` + + + +```go +const ( + ManagedAgentsAgentThinkingPreviewTypeAgentThinking ManagedAgentsAgentThinkingPreviewType = "agent.thinking" +) +``` + + +## type [ManagedAgentsAgentThreadContextCompactedEvent]() + +Indicates that context compaction \(summarization\) occurred during the session. + +```go +type ManagedAgentsAgentThreadContextCompactedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.thread_context_compacted". + Type ManagedAgentsAgentThreadContextCompactedEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThreadContextCompactedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentThreadContextCompactedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThreadContextCompactedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadContextCompactedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadContextCompactedEventType]() + + + +```go +type ManagedAgentsAgentThreadContextCompactedEventType string +``` + + + +```go +const ( + ManagedAgentsAgentThreadContextCompactedEventTypeAgentThreadContextCompacted ManagedAgentsAgentThreadContextCompactedEventType = "agent.thread_context_compacted" +) +``` + + +## type [ManagedAgentsAgentThreadMessageReceivedEvent]() + +Delivery event written to the target thread's input stream when an agent\-to\-agent message arrives. + +```go +type ManagedAgentsAgentThreadMessageReceivedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Message content blocks. + Content []ManagedAgentsAgentThreadMessageReceivedEventContentUnion `json:"content" api:"required"` + // Public `sthr_` ID of the thread that sent the message. + FromSessionThreadID string `json:"from_session_thread_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.thread_message_received". + Type ManagedAgentsAgentThreadMessageReceivedEventType `json:"type" api:"required"` + // Name of the callable agent this message came from. Absent when received from the + // primary agent. + FromAgentName string `json:"from_agent_name" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Content respjson.Field + FromSessionThreadID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + FromAgentName respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThreadMessageReceivedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentThreadMessageReceivedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThreadMessageReceivedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageReceivedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageReceivedEventContentUnion]() + +ManagedAgentsAgentThreadMessageReceivedEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>). + +Use the [ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsAny](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentThreadMessageReceivedEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "redacted". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion] + Source ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Title string `json:"title"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) AsAny() anyManagedAgentsAgentThreadMessageReceivedEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentThreadMessageReceivedEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsRedactedBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [AsRedacted]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) AsRedacted() (v ManagedAgentsRedactedBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentThreadMessageReceivedEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThreadMessageReceivedEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageReceivedEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource]() + +ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource is an implicit subunion of [ManagedAgentsAgentThreadMessageReceivedEventContentUnion](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion>). ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentThreadMessageReceivedEventContentUnion](<#ManagedAgentsAgentThreadMessageReceivedEventContentUnion>). + +```go +type ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageReceivedEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageReceivedEventType]() + + + +```go +type ManagedAgentsAgentThreadMessageReceivedEventType string +``` + + + +```go +const ( + ManagedAgentsAgentThreadMessageReceivedEventTypeAgentThreadMessageReceived ManagedAgentsAgentThreadMessageReceivedEventType = "agent.thread_message_received" +) +``` + + +## type [ManagedAgentsAgentThreadMessageSentEvent]() + +Observability event emitted to the sender's output stream when an agent\-to\-agent message is sent. + +```go +type ManagedAgentsAgentThreadMessageSentEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Message content blocks. + Content []ManagedAgentsAgentThreadMessageSentEventContentUnion `json:"content" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public `sthr_` ID of the thread the message was sent to. + ToSessionThreadID string `json:"to_session_thread_id" api:"required"` + // Any of "agent.thread_message_sent". + Type ManagedAgentsAgentThreadMessageSentEventType `json:"type" api:"required"` + // Name of the callable agent this message was sent to. Absent when sent to the + // primary agent. + ToAgentName string `json:"to_agent_name" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Content respjson.Field + ProcessedAt respjson.Field + ToSessionThreadID respjson.Field + Type respjson.Field + ToAgentName respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThreadMessageSentEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentThreadMessageSentEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThreadMessageSentEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageSentEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageSentEventContentUnion]() + +ManagedAgentsAgentThreadMessageSentEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>). + +Use the [ManagedAgentsAgentThreadMessageSentEventContentUnion.AsAny](<#ManagedAgentsAgentThreadMessageSentEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentThreadMessageSentEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "redacted". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion] + Source ManagedAgentsAgentThreadMessageSentEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Title string `json:"title"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) AsAny() anyManagedAgentsAgentThreadMessageSentEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentThreadMessageSentEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsRedactedBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [AsRedacted]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) AsRedacted() (v ManagedAgentsRedactedBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsAgentThreadMessageSentEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentThreadMessageSentEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentThreadMessageSentEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageSentEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageSentEventContentUnionSource]() + +ManagedAgentsAgentThreadMessageSentEventContentUnionSource is an implicit subunion of [ManagedAgentsAgentThreadMessageSentEventContentUnion](<#ManagedAgentsAgentThreadMessageSentEventContentUnion>). ManagedAgentsAgentThreadMessageSentEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentThreadMessageSentEventContentUnion](<#ManagedAgentsAgentThreadMessageSentEventContentUnion>). + +```go +type ManagedAgentsAgentThreadMessageSentEventContentUnionSource struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentThreadMessageSentEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentThreadMessageSentEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentThreadMessageSentEventType]() + + + +```go +type ManagedAgentsAgentThreadMessageSentEventType string +``` + + + +```go +const ( + ManagedAgentsAgentThreadMessageSentEventTypeAgentThreadMessageSent ManagedAgentsAgentThreadMessageSentEventType = "agent.thread_message_sent" +) +``` + + +## type [ManagedAgentsAgentToolConfigParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsAgentToolConfigParamsUnion struct { + OfBash *ManagedAgentsBashToolConfigParams `json:",omitzero,inline"` + OfEdit *ManagedAgentsEditToolConfigParams `json:",omitzero,inline"` + OfRead *ManagedAgentsReadToolConfigParams `json:",omitzero,inline"` + OfWrite *ManagedAgentsWriteToolConfigParams `json:",omitzero,inline"` + OfGlob *ManagedAgentsGlobToolConfigParams `json:",omitzero,inline"` + OfGrep *ManagedAgentsGrepToolConfigParams `json:",omitzero,inline"` + OfWebFetch *ManagedAgentsWebFetchToolConfigParams `json:",omitzero,inline"` + OfWebSearch *ManagedAgentsWebSearchToolConfigParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetAllowedDomains]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetAllowedDomains() []string +``` + +Returns a pointer to the underlying variant's AllowedDomains property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetBlockedDomains]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetBlockedDomains() []string +``` + +Returns a pointer to the underlying variant's BlockedDomains property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetEnabled]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetEnabled() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetMaxContentTokens]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetMaxContentTokens() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetName]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetPermissionPolicy]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetPermissionPolicy() (res managedAgentsAgentToolConfigParamsUnionPermissionPolicy) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [GetUserLocation]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) GetUserLocation() *ManagedAgentsUserLocationParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolConfigParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsAgentToolConfigParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsAgentToolConfigParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsAgentToolConfigParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolConfigUnion]() + +ManagedAgentsAgentToolConfigUnion contains all possible properties and values from [ManagedAgentsBashToolConfig](<#ManagedAgentsBashToolConfig>), [ManagedAgentsEditToolConfig](<#ManagedAgentsEditToolConfig>), [ManagedAgentsReadToolConfig](<#ManagedAgentsReadToolConfig>), [ManagedAgentsWriteToolConfig](<#ManagedAgentsWriteToolConfig>), [ManagedAgentsGlobToolConfig](<#ManagedAgentsGlobToolConfig>), [ManagedAgentsGrepToolConfig](<#ManagedAgentsGrepToolConfig>), [ManagedAgentsWebFetchToolConfig](<#ManagedAgentsWebFetchToolConfig>), [ManagedAgentsWebSearchToolConfig](<#ManagedAgentsWebSearchToolConfig>). + +Use the [ManagedAgentsAgentToolConfigUnion.AsAny](<#ManagedAgentsAgentToolConfigUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentToolConfigUnion struct { + Enabled bool `json:"enabled"` + Name string `json:"name"` + // This field is a union of [ManagedAgentsBashToolConfigPermissionPolicyUnion], + // [ManagedAgentsEditToolConfigPermissionPolicyUnion], + // [ManagedAgentsReadToolConfigPermissionPolicyUnion], + // [ManagedAgentsWriteToolConfigPermissionPolicyUnion], + // [ManagedAgentsGlobToolConfigPermissionPolicyUnion], + // [ManagedAgentsGrepToolConfigPermissionPolicyUnion], + // [ManagedAgentsWebFetchToolConfigPermissionPolicyUnion], + // [ManagedAgentsWebSearchToolConfigPermissionPolicyUnion] + PermissionPolicy ManagedAgentsAgentToolConfigUnionPermissionPolicy `json:"permission_policy"` + // Any of "bash", "edit", "read", "write", "glob", "grep", "web_fetch", + // "web_search". + Type string `json:"type"` + AllowedDomains []string `json:"allowed_domains"` + BlockedDomains []string `json:"blocked_domains"` + // This field is from variant [ManagedAgentsWebFetchToolConfig]. + MaxContentTokens int64 `json:"max_content_tokens"` + // This field is from variant [ManagedAgentsWebSearchToolConfig]. + UserLocation ManagedAgentsUserLocation `json:"user_location"` + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + AllowedDomains respjson.Field + BlockedDomains respjson.Field + MaxContentTokens respjson.Field + UserLocation respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsAny() anyManagedAgentsAgentToolConfig +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentToolConfigUnion.AsAny().(type) { +case qoder.ManagedAgentsBashToolConfig: +case qoder.ManagedAgentsEditToolConfig: +case qoder.ManagedAgentsReadToolConfig: +case qoder.ManagedAgentsWriteToolConfig: +case qoder.ManagedAgentsGlobToolConfig: +case qoder.ManagedAgentsGrepToolConfig: +case qoder.ManagedAgentsWebFetchToolConfig: +case qoder.ManagedAgentsWebSearchToolConfig: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsBash]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsBash() (v ManagedAgentsBashToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsEdit]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsEdit() (v ManagedAgentsEditToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsGlob]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsGlob() (v ManagedAgentsGlobToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsGrep]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsGrep() (v ManagedAgentsGrepToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsRead]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsRead() (v ManagedAgentsReadToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsWebFetch]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsWebFetch() (v ManagedAgentsWebFetchToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsWebSearch]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsWebSearch() (v ManagedAgentsWebSearchToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [AsWrite]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) AsWrite() (v ManagedAgentsWriteToolConfig) +``` + + + + +### func \(ManagedAgentsAgentToolConfigUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentToolConfigUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolConfigUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolConfigUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolConfigUnionPermissionPolicy]() + +ManagedAgentsAgentToolConfigUnionPermissionPolicy is an implicit subunion of [ManagedAgentsAgentToolConfigUnion](<#ManagedAgentsAgentToolConfigUnion>). ManagedAgentsAgentToolConfigUnionPermissionPolicy provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentToolConfigUnion](<#ManagedAgentsAgentToolConfigUnion>). + +```go +type ManagedAgentsAgentToolConfigUnionPermissionPolicy struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentToolConfigUnionPermissionPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolConfigUnionPermissionPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolResultEvent]() + +Event representing the result of an agent tool execution. + +```go +type ManagedAgentsAgentToolResultEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // The id of the `agent.tool_use` event this result corresponds to. + ToolUseID string `json:"tool_use_id" api:"required"` + // Any of "agent.tool_result". + Type ManagedAgentsAgentToolResultEventType `json:"type" api:"required"` + // The result content returned by the tool. + Content []ManagedAgentsAgentToolResultEventContentUnion `json:"content"` + // Whether the tool execution resulted in an error. + IsError bool `json:"is_error" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + ToolUseID respjson.Field + Type respjson.Field + Content respjson.Field + IsError respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolResultEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolResultEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolResultEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolResultEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolResultEventContentUnion]() + +ManagedAgentsAgentToolResultEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsSearchResultBlock](<#ManagedAgentsSearchResultBlock>). + +Use the [ManagedAgentsAgentToolResultEventContentUnion.AsAny](<#ManagedAgentsAgentToolResultEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentToolResultEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "search_result". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion], [string] + Source ManagedAgentsAgentToolResultEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + Title string `json:"title"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Citations ManagedAgentsSearchResultCitations `json:"citations"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Content []ManagedAgentsSearchResultContent `json:"content"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + Citations respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) AsAny() anyManagedAgentsAgentToolResultEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentToolResultEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsSearchResultBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [AsSearchResult]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) AsSearchResult() (v ManagedAgentsSearchResultBlock) +``` + + + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsAgentToolResultEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentToolResultEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolResultEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolResultEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolResultEventContentUnionSource]() + +ManagedAgentsAgentToolResultEventContentUnionSource is an implicit subunion of [ManagedAgentsAgentToolResultEventContentUnion](<#ManagedAgentsAgentToolResultEventContentUnion>). ManagedAgentsAgentToolResultEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentToolResultEventContentUnion](<#ManagedAgentsAgentToolResultEventContentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsAgentToolResultEventContentUnionSource struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + OfString respjson.Field + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentToolResultEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolResultEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolResultEventType]() + + + +```go +type ManagedAgentsAgentToolResultEventType string +``` + + + +```go +const ( + ManagedAgentsAgentToolResultEventTypeAgentToolResult ManagedAgentsAgentToolResultEventType = "agent.tool_result" +) +``` + + +## type [ManagedAgentsAgentToolUnion]() + +ManagedAgentsAgentToolUnion contains all possible properties and values from [ManagedAgentsAgentToolset20260401](<#ManagedAgentsAgentToolset20260401>), [ManagedAgentsMCPToolset](<#ManagedAgentsMCPToolset>), [ManagedAgentsCustomTool](<#ManagedAgentsCustomTool>). + +Use the [ManagedAgentsAgentToolUnion.AsAny](<#ManagedAgentsAgentToolUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentToolUnion struct { + EnabledTools []string `json:"enabled_tools"` + DisallowedTools []string `json:"disallowed_tools"` + // This field is a union of [[]ManagedAgentsAgentToolConfigUnion], + // [[]ManagedAgentsMCPToolConfig] + Configs ManagedAgentsAgentToolUnionConfigs `json:"configs"` + // This field is a union of [ManagedAgentsAgentToolsetDefaultConfig], + // [ManagedAgentsMCPToolsetDefaultConfig] + DefaultConfig ManagedAgentsAgentToolUnionDefaultConfig `json:"default_config"` + // Any of "agent_toolset_20260401", "mcp_toolset", "custom". + Type string `json:"type"` + // This field is from variant [ManagedAgentsMCPToolset]. + MCPServerName string `json:"mcp_server_name"` + // This field is from variant [ManagedAgentsCustomTool]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsCustomTool]. + InputSchema ManagedAgentsCustomToolInputSchema `json:"input_schema"` + // This field is from variant [ManagedAgentsCustomTool]. + Name string `json:"name"` + JSON struct { + EnabledTools respjson.Field + DisallowedTools respjson.Field + Configs respjson.Field + DefaultConfig respjson.Field + Type respjson.Field + MCPServerName respjson.Field + Description respjson.Field + InputSchema respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolUnion\) [AsAgentToolset20260401]() + +```go +func (u ManagedAgentsAgentToolUnion) AsAgentToolset20260401() (v ManagedAgentsAgentToolset20260401) +``` + + + + +### func \(ManagedAgentsAgentToolUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentToolUnion) AsAny() anyManagedAgentsAgentTool +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentToolUnion.AsAny().(type) { +case qoder.ManagedAgentsAgentToolset20260401: +case qoder.ManagedAgentsMCPToolset: +case qoder.ManagedAgentsCustomTool: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentToolUnion\) [AsCustom]() + +```go +func (u ManagedAgentsAgentToolUnion) AsCustom() (v ManagedAgentsCustomTool) +``` + + + + +### func \(ManagedAgentsAgentToolUnion\) [AsMCPToolset]() + +```go +func (u ManagedAgentsAgentToolUnion) AsMCPToolset() (v ManagedAgentsMCPToolset) +``` + + + + +### func \(ManagedAgentsAgentToolUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentToolUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolUnionConfigs]() + +ManagedAgentsAgentToolUnionConfigs is an implicit subunion of [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). ManagedAgentsAgentToolUnionConfigs provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsAgentToolConfigArray OfManagedAgentsMCPToolConfigArray\] + +```go +type ManagedAgentsAgentToolUnionConfigs struct { + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolConfigUnion] instead of an object. + OfManagedAgentsAgentToolConfigArray []ManagedAgentsAgentToolConfigUnion `json:",inline"` + // This field will be present if the value is a [[]ManagedAgentsMCPToolConfig] + // instead of an object. + OfManagedAgentsMCPToolConfigArray []ManagedAgentsMCPToolConfig `json:",inline"` + JSON struct { + OfManagedAgentsAgentToolConfigArray respjson.Field + OfManagedAgentsMCPToolConfigArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentToolUnionConfigs\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolUnionConfigs) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolUnionDefaultConfig]() + +ManagedAgentsAgentToolUnionDefaultConfig is an implicit subunion of [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). ManagedAgentsAgentToolUnionDefaultConfig provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). + +```go +type ManagedAgentsAgentToolUnionDefaultConfig struct { + Enabled bool `json:"enabled"` + // This field is a union of + // [ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion], + // [ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion] + PermissionPolicy ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy `json:"permission_policy"` + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentToolUnionDefaultConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolUnionDefaultConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy]() + +ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy is an implicit subunion of [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsAgentToolUnion](<#ManagedAgentsAgentToolUnion>). + +```go +type ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolUnionDefaultConfigPermissionPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolUseEvent]() + +Event emitted when the agent invokes a built\-in agent tool. + +```go +type ManagedAgentsAgentToolUseEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Input parameters for the tool call. + Input map[string]any `json:"input" api:"required"` + // Name of the agent tool being used. + Name string `json:"name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "agent.tool_use". + Type ManagedAgentsAgentToolUseEventType `json:"type" api:"required"` + // AgentEvaluatedPermission enum + // + // Any of "allow", "ask", "deny". + EvaluatedPermission ManagedAgentsAgentToolUseEventEvaluatedPermission `json:"evaluated_permission"` + // When set, this event was cross-posted from a subagent's thread to surface its + // permission request on the primary thread's stream. Empty on the thread's own + // events. Echo this on a `user.tool_confirmation` event to route the approval + // back. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Input respjson.Field + Name respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + EvaluatedPermission respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolUseEvent\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolUseEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolUseEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolUseEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolUseEventEvaluatedPermission]() + +AgentEvaluatedPermission enum + +```go +type ManagedAgentsAgentToolUseEventEvaluatedPermission string +``` + + + +```go +const ( + ManagedAgentsAgentToolUseEventEvaluatedPermissionAllow ManagedAgentsAgentToolUseEventEvaluatedPermission = "allow" + ManagedAgentsAgentToolUseEventEvaluatedPermissionAsk ManagedAgentsAgentToolUseEventEvaluatedPermission = "ask" + ManagedAgentsAgentToolUseEventEvaluatedPermissionDeny ManagedAgentsAgentToolUseEventEvaluatedPermission = "deny" +) +``` + + +## type [ManagedAgentsAgentToolUseEventType]() + + + +```go +type ManagedAgentsAgentToolUseEventType string +``` + + + +```go +const ( + ManagedAgentsAgentToolUseEventTypeAgentToolUse ManagedAgentsAgentToolUseEventType = "agent.tool_use" +) +``` + + +## type [ManagedAgentsAgentToolset20260401]() + + + +```go +type ManagedAgentsAgentToolset20260401 struct { + EnabledTools []string `json:"enabled_tools"` + DisallowedTools []string `json:"disallowed_tools"` + Configs []ManagedAgentsAgentToolConfigUnion `json:"configs" api:"required"` + // Resolved default configuration for agent tools. + DefaultConfig ManagedAgentsAgentToolsetDefaultConfig `json:"default_config" api:"required"` + // Any of "agent_toolset_20260401". + Type ManagedAgentsAgentToolset20260401Type `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + EnabledTools respjson.Field + DisallowedTools respjson.Field + Configs respjson.Field + DefaultConfig respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401BashInput]() + +Input payload for the \`bash\` tool of the \`agent\_toolset\_20260401\` toolset. All fields are optional; a normal invocation supplies \`command\`, while \`restart=true\` \(with no \`command\`\) reboots the runner\-side bash session. + +```go +type ManagedAgentsAgentToolset20260401BashInput struct { + // Shell command to execute. Omit only when `restart` is true. + Command string `json:"command"` + // When true, restart the persistent bash session instead of running a command. + // Subsequent calls without `restart` will run against the fresh session. + Restart bool `json:"restart"` + // Per-call timeout in milliseconds. Defaults to the runner-wide tool timeout when + // omitted or zero. + TimeoutMs int64 `json:"timeout_ms"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Command respjson.Field + Restart respjson.Field + TimeoutMs respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401BashInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401BashInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401BashInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401BashInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401EditInput]() + +Input payload for the \`edit\` tool. Performs a string replacement in the named file; by default \`old\_string\` must occur exactly once. + +```go +type ManagedAgentsAgentToolset20260401EditInput struct { + // Path of the file to edit. + FilePath string `json:"file_path" api:"required"` + // Replacement text. + NewString string `json:"new_string" api:"required"` + // Substring to find and replace. + OldString string `json:"old_string" api:"required"` + // When true, replace every occurrence of `old_string` instead of requiring a + // unique match. + ReplaceAll bool `json:"replace_all"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FilePath respjson.Field + NewString respjson.Field + OldString respjson.Field + ReplaceAll respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401EditInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401EditInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401EditInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401EditInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401GlobInput]() + +Input payload for the \`glob\` tool. Returns paths matching a doublestar glob pattern, newest first. + +```go +type ManagedAgentsAgentToolset20260401GlobInput struct { + // Doublestar glob pattern (e.g. `**/*.go`). Absolute patterns are only permitted + // when the runner is configured to allow them. + Pattern string `json:"pattern" api:"required"` + // Optional directory root to search under. Defaults to the runner's working + // directory. + Path string `json:"path"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Pattern respjson.Field + Path respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401GlobInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401GlobInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401GlobInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401GlobInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401GrepInput]() + +Input payload for the \`grep\` tool. Searches file contents for a regular expression, returning matching lines. + +```go +type ManagedAgentsAgentToolset20260401GrepInput struct { + // Regular expression to search for. + Pattern string `json:"pattern" api:"required"` + // Optional directory root to search under. Defaults to the runner's working + // directory. + Path string `json:"path"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Pattern respjson.Field + Path respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401GrepInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401GrepInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401GrepInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401GrepInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401Params]() + +Configuration for built\-in agent tools. Use this to enable or disable groups of tools available to the agent. + +The property Type is required. + +```go +type ManagedAgentsAgentToolset20260401Params struct { + DisallowedTools []string `json:"disallowed_tools,omitzero"` + EnabledTools []string `json:"enabled_tools,omitzero"` + // Any of "agent_toolset_20260401". + Type ManagedAgentsAgentToolset20260401ParamsType `json:"type,omitzero" api:"required"` + // Per-tool configuration overrides. + Configs []ManagedAgentsAgentToolConfigParamsUnion `json:"configs,omitzero"` + // Default configuration for all tools in a toolset. + DefaultConfig ManagedAgentsAgentToolsetDefaultConfigParams `json:"default_config,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentToolset20260401Params\) [MarshalJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401Params) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAgentToolset20260401Params\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401Params) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401ParamsType]() + + + +```go +type ManagedAgentsAgentToolset20260401ParamsType string +``` + + + +```go +const ( + ManagedAgentsAgentToolset20260401ParamsTypeAgentToolset20260401 ManagedAgentsAgentToolset20260401ParamsType = "agent_toolset_20260401" +) +``` + + +## type [ManagedAgentsAgentToolset20260401ReadInput]() + +Input payload for the \`read\` tool. Reads file contents relative to the runner's working directory \(or absolute when the runner permits\). + +```go +type ManagedAgentsAgentToolset20260401ReadInput struct { + // Path of the file to read. + FilePath string `json:"file_path" api:"required"` + // Optional `[start_line, end_line]` 1-indexed inclusive range. When omitted the + // entire file is returned. `end_line` of 0 or negative means "to end of file". + ViewRange []int64 `json:"view_range"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FilePath respjson.Field + ViewRange respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401ReadInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401ReadInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401ReadInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401ReadInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolset20260401Type]() + + + +```go +type ManagedAgentsAgentToolset20260401Type string +``` + + + +```go +const ( + ManagedAgentsAgentToolset20260401TypeAgentToolset20260401 ManagedAgentsAgentToolset20260401Type = "agent_toolset_20260401" +) +``` + + +## type [ManagedAgentsAgentToolset20260401WriteInput]() + +Input payload for the \`write\` tool. Writes \(overwriting\) the entire file contents. + +```go +type ManagedAgentsAgentToolset20260401WriteInput struct { + // Full file contents to write. + Content string `json:"content" api:"required"` + // Path of the file to write. + FilePath string `json:"file_path" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Content respjson.Field + FilePath respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolset20260401WriteInput\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolset20260401WriteInput) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolset20260401WriteInput\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolset20260401WriteInput) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolsetDefaultConfig]() + +Resolved default configuration for agent tools. + +```go +type ManagedAgentsAgentToolsetDefaultConfig struct { + Enabled bool `json:"enabled" api:"required"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolsetDefaultConfig\) [RawJSON]() + +```go +func (r ManagedAgentsAgentToolsetDefaultConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolsetDefaultConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolsetDefaultConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolsetDefaultConfigParams]() + +Default configuration for all tools in a toolset. + +```go +type ManagedAgentsAgentToolsetDefaultConfigParams struct { + // Whether tools are enabled and available to the model by default. Defaults to + // true if not specified. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentToolsetDefaultConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsAgentToolsetDefaultConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAgentToolsetDefaultConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolsetDefaultConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsAgentToolsetDefaultConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion]() + +ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion) AsAny() anyManagedAgentsAgentToolsetDefaultConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentType]() + + + +```go +type ManagedAgentsAgentType string +``` + + + +```go +const ( + ManagedAgentsAgentTypeAgent ManagedAgentsAgentType = "agent" +) +``` + + +## type [ManagedAgentsAgentWithOverridesParams]() + +Reference to an \`agent\` plus optional configuration overrides. Each provided field replaces the agent's value for the caller's use; the agent resource is unchanged. + +The properties ID, Type are required. + +```go +type ManagedAgentsAgentWithOverridesParams struct { + // The `agent` ID. + ID string `json:"id" api:"required"` + // Any of "agent_with_overrides". + Type ManagedAgentsAgentWithOverridesParamsType `json:"type,omitzero" api:"required"` + // Replacement system prompt. Up to 100,000 characters. Set to null to clear the + // agent's system prompt; omit to preserve it. + System param.Opt[string] `json:"system,omitzero"` + // The specific `agent` version to use. Omit to use the latest version. + Version param.Opt[int64] `json:"version,omitzero"` + // Replacement MCP server list. Full replacement: the provided array becomes the + // MCP servers. Send an empty array to clear; omit to preserve the agent's servers. + MCPServers []ManagedAgentsURLMCPServerParams `json:"mcp_servers,omitzero"` + // Replacement model. Accepts the model string or a `model_config` object. Omit to + // use the agent's model. + Model ManagedAgentsModelConfigParams `json:"model,omitzero"` + // Replacement skill list. Full replacement: the provided array becomes the skills. + // Send an empty array to clear; omit to preserve the agent's skills. + Skills []ManagedAgentsSkillParamsUnion `json:"skills,omitzero"` + // Replacement tool list. Full replacement: the provided array becomes the tool + // configuration. Send an empty array to clear; omit to preserve the agent's tools. + Tools []ManagedAgentsAgentWithOverridesParamsToolUnion `json:"tools,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentWithOverridesParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsAgentWithOverridesParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAgentWithOverridesParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAgentWithOverridesParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentWithOverridesParamsToolUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsAgentWithOverridesParamsToolUnion struct { + OfAgentToolset20260401 *ManagedAgentsAgentToolset20260401Params `json:",omitzero,inline"` + OfMCPToolset *ManagedAgentsMCPToolsetParams `json:",omitzero,inline"` + OfCustom *ManagedAgentsCustomToolParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetConfigs]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetConfigs() (res managedAgentsAgentWithOverridesParamsToolUnionConfigs) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetDefaultConfig]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetDefaultConfig() (res managedAgentsAgentWithOverridesParamsToolUnionDefaultConfig) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetDescription]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetInputSchema]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetInputSchema() *ManagedAgentsCustomToolInputSchemaParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetMCPServerName]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetMCPServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetName]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [GetType]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsAgentWithOverridesParamsToolUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsAgentWithOverridesParamsToolUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsAgentWithOverridesParamsToolUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsAgentWithOverridesParamsToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAgentWithOverridesParamsType]() + + + +```go +type ManagedAgentsAgentWithOverridesParamsType string +``` + + + +```go +const ( + ManagedAgentsAgentWithOverridesParamsTypeAgentWithOverrides ManagedAgentsAgentWithOverridesParamsType = "agent_with_overrides" +) +``` + + +## type [ManagedAgentsAlwaysAllowPolicy]() + +Tool calls are automatically approved without user confirmation. + +```go +type ManagedAgentsAlwaysAllowPolicy struct { + // Any of "always_allow". + Type ManagedAgentsAlwaysAllowPolicyType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAlwaysAllowPolicy\) [RawJSON]() + +```go +func (r ManagedAgentsAlwaysAllowPolicy) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsAlwaysAllowPolicy\) [ToParam]() + +```go +func (r ManagedAgentsAlwaysAllowPolicy) ToParam() ManagedAgentsAlwaysAllowPolicyParam +``` + +ToParam converts this ManagedAgentsAlwaysAllowPolicy to a ManagedAgentsAlwaysAllowPolicyParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsAlwaysAllowPolicyParam.Overrides\(\) + + +### func \(\*ManagedAgentsAlwaysAllowPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAlwaysAllowPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAlwaysAllowPolicyParam]() + +Tool calls are automatically approved without user confirmation. + +The property Type is required. + +```go +type ManagedAgentsAlwaysAllowPolicyParam struct { + // Any of "always_allow". + Type ManagedAgentsAlwaysAllowPolicyType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAlwaysAllowPolicyParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsAlwaysAllowPolicyParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAlwaysAllowPolicyParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAlwaysAllowPolicyParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAlwaysAllowPolicyType]() + + + +```go +type ManagedAgentsAlwaysAllowPolicyType string +``` + + + +```go +const ( + ManagedAgentsAlwaysAllowPolicyTypeAlwaysAllow ManagedAgentsAlwaysAllowPolicyType = "always_allow" +) +``` + + +## type [ManagedAgentsAlwaysAskPolicy]() + +Tool calls require user confirmation before execution. + +```go +type ManagedAgentsAlwaysAskPolicy struct { + // Any of "always_ask". + Type ManagedAgentsAlwaysAskPolicyType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsAlwaysAskPolicy\) [RawJSON]() + +```go +func (r ManagedAgentsAlwaysAskPolicy) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsAlwaysAskPolicy\) [ToParam]() + +```go +func (r ManagedAgentsAlwaysAskPolicy) ToParam() ManagedAgentsAlwaysAskPolicyParam +``` + +ToParam converts this ManagedAgentsAlwaysAskPolicy to a ManagedAgentsAlwaysAskPolicyParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsAlwaysAskPolicyParam.Overrides\(\) + + +### func \(\*ManagedAgentsAlwaysAskPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAlwaysAskPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAlwaysAskPolicyParam]() + +Tool calls require user confirmation before execution. + +The property Type is required. + +```go +type ManagedAgentsAlwaysAskPolicyParam struct { + // Any of "always_ask". + Type ManagedAgentsAlwaysAskPolicyType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsAlwaysAskPolicyParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsAlwaysAskPolicyParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsAlwaysAskPolicyParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsAlwaysAskPolicyParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsAlwaysAskPolicyType]() + + + +```go +type ManagedAgentsAlwaysAskPolicyType string +``` + + + +```go +const ( + ManagedAgentsAlwaysAskPolicyTypeAlwaysAsk ManagedAgentsAlwaysAskPolicyType = "always_ask" +) +``` + + +## type [ManagedAgentsBase64DocumentSource]() + +Base64\-encoded document data. + +```go +type ManagedAgentsBase64DocumentSource struct { + // Base64-encoded document data. + Data string `json:"data" api:"required"` + // MIME type of the document (e.g., "application/pdf"). + MediaType string `json:"media_type" api:"required"` + // Any of "base64". + Type ManagedAgentsBase64DocumentSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBase64DocumentSource\) [RawJSON]() + +```go +func (r ManagedAgentsBase64DocumentSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsBase64DocumentSource\) [ToParam]() + +```go +func (r ManagedAgentsBase64DocumentSource) ToParam() ManagedAgentsBase64DocumentSourceParam +``` + +ToParam converts this ManagedAgentsBase64DocumentSource to a ManagedAgentsBase64DocumentSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsBase64DocumentSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsBase64DocumentSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBase64DocumentSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBase64DocumentSourceParam]() + +Base64\-encoded document data. + +The properties Data, MediaType, Type are required. + +```go +type ManagedAgentsBase64DocumentSourceParam struct { + // Base64-encoded document data. + Data string `json:"data" api:"required"` + // MIME type of the document (e.g., "application/pdf"). + MediaType string `json:"media_type" api:"required"` + // Any of "base64". + Type ManagedAgentsBase64DocumentSourceType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBase64DocumentSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsBase64DocumentSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsBase64DocumentSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBase64DocumentSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBase64DocumentSourceType]() + + + +```go +type ManagedAgentsBase64DocumentSourceType string +``` + + + +```go +const ( + ManagedAgentsBase64DocumentSourceTypeBase64 ManagedAgentsBase64DocumentSourceType = "base64" +) +``` + + +## type [ManagedAgentsBase64ImageSource]() + +Base64\-encoded image data. + +```go +type ManagedAgentsBase64ImageSource struct { + // Base64-encoded image data. + Data string `json:"data" api:"required"` + // MIME type of the image (e.g., "image/png", "image/jpeg", "image/gif", + // "image/webp"). + MediaType string `json:"media_type" api:"required"` + // Any of "base64". + Type ManagedAgentsBase64ImageSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBase64ImageSource\) [RawJSON]() + +```go +func (r ManagedAgentsBase64ImageSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsBase64ImageSource\) [ToParam]() + +```go +func (r ManagedAgentsBase64ImageSource) ToParam() ManagedAgentsBase64ImageSourceParam +``` + +ToParam converts this ManagedAgentsBase64ImageSource to a ManagedAgentsBase64ImageSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsBase64ImageSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsBase64ImageSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBase64ImageSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBase64ImageSourceParam]() + +Base64\-encoded image data. + +The properties Data, MediaType, Type are required. + +```go +type ManagedAgentsBase64ImageSourceParam struct { + // Base64-encoded image data. + Data string `json:"data" api:"required"` + // MIME type of the image (e.g., "image/png", "image/jpeg", "image/gif", + // "image/webp"). + MediaType string `json:"media_type" api:"required"` + // Any of "base64". + Type ManagedAgentsBase64ImageSourceType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBase64ImageSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsBase64ImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsBase64ImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBase64ImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBase64ImageSourceType]() + + + +```go +type ManagedAgentsBase64ImageSourceType string +``` + + + +```go +const ( + ManagedAgentsBase64ImageSourceTypeBase64 ManagedAgentsBase64ImageSourceType = "base64" +) +``` + + +## type [ManagedAgentsBashToolConfig]() + +Configuration for the bash tool. + +```go +type ManagedAgentsBashToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Bash `json:"name" default:"bash"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsBashToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Bash `json:"type" default:"bash"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBashToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsBashToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsBashToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBashToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBashToolConfigParams]() + +Configuration override for the bash tool. + +The property Name is required. + +```go +type ManagedAgentsBashToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsBashToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "bash". + Type ManagedAgentsBashToolConfigParamsType `json:"type,omitzero"` + // Must be "bash". + // + // This field can be elided, and will marshal its zero value as "bash". + Name constant.Bash `json:"name" default:"bash"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBashToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsBashToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsBashToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBashToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBashToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsBashToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsBashToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsBashToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsBashToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsBashToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBashToolConfigParamsType]() + + + +```go +type ManagedAgentsBashToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsBashToolConfigParamsTypeBash ManagedAgentsBashToolConfigParamsType = "bash" +) +``` + + +## type [ManagedAgentsBashToolConfigPermissionPolicyUnion]() + +ManagedAgentsBashToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsBashToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBashToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsBashToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsBashToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsBashToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsBashToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsBashToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsBashToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsBashToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsBashToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsBashToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsBashToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBashToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBillingError]() + +The caller's organization or workspace cannot make model requests — out of credits or spend limit reached. Retrying with the same credentials will not succeed; the caller must resolve the billing state. + +```go +type ManagedAgentsBillingError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsBillingErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "billing_error". + Type ManagedAgentsBillingErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBillingError\) [RawJSON]() + +```go +func (r ManagedAgentsBillingError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsBillingError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBillingError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBillingErrorRetryStatusUnion]() + +ManagedAgentsBillingErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsBillingErrorRetryStatusUnion.AsAny](<#ManagedAgentsBillingErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsBillingErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBillingErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsBillingErrorRetryStatusUnion) AsAny() anyManagedAgentsBillingErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsBillingErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsBillingErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsBillingErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsBillingErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsBillingErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsBillingErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsBillingErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsBillingErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsBillingErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsBillingErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBillingErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBillingErrorType]() + + + +```go +type ManagedAgentsBillingErrorType string +``` + + + +```go +const ( + ManagedAgentsBillingErrorTypeBillingError ManagedAgentsBillingErrorType = "billing_error" +) +``` + + +## type [ManagedAgentsBranchCheckout]() + + + +```go +type ManagedAgentsBranchCheckout struct { + // Branch name to check out. + Name string `json:"name" api:"required"` + // Any of "branch". + Type ManagedAgentsBranchCheckoutType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Name respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBranchCheckout\) [RawJSON]() + +```go +func (r ManagedAgentsBranchCheckout) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsBranchCheckout\) [ToParam]() + +```go +func (r ManagedAgentsBranchCheckout) ToParam() ManagedAgentsBranchCheckoutParam +``` + +ToParam converts this ManagedAgentsBranchCheckout to a ManagedAgentsBranchCheckoutParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsBranchCheckoutParam.Overrides\(\) + + +### func \(\*ManagedAgentsBranchCheckout\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBranchCheckout) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBranchCheckoutParam]() + +The properties Name, Type are required. + +```go +type ManagedAgentsBranchCheckoutParam struct { + // Branch name to check out. + Name string `json:"name" api:"required"` + // Any of "branch". + Type ManagedAgentsBranchCheckoutType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBranchCheckoutParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsBranchCheckoutParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsBranchCheckoutParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBranchCheckoutParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBranchCheckoutType]() + + + +```go +type ManagedAgentsBranchCheckoutType string +``` + + + +```go +const ( + ManagedAgentsBranchCheckoutTypeBranch ManagedAgentsBranchCheckoutType = "branch" +) +``` + + +## type [ManagedAgentsBudgetLimit]() + +A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches \`max\_list\_cost\`. + +```go +type ManagedAgentsBudgetLimit struct { + // A monetary amount in a specific currency. + MaxListCost MonetaryAmount `json:"max_list_cost" api:"required"` + // Any of "limit". + Type ManagedAgentsBudgetLimitType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MaxListCost respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsBudgetLimit\) [RawJSON]() + +```go +func (r ManagedAgentsBudgetLimit) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsBudgetLimit\) [ToParam]() + +```go +func (r ManagedAgentsBudgetLimit) ToParam() ManagedAgentsBudgetLimitParam +``` + +ToParam converts this ManagedAgentsBudgetLimit to a ManagedAgentsBudgetLimitParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsBudgetLimitParam.Overrides\(\) + + +### func \(\*ManagedAgentsBudgetLimit\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBudgetLimit) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBudgetLimitParam]() + +A hard spend ceiling. The session stops issuing new model requests once the tracked list cost reaches \`max\_list\_cost\`. + +The properties MaxListCost, Type are required. + +```go +type ManagedAgentsBudgetLimitParam struct { + // A monetary amount in a specific currency. + MaxListCost MonetaryAmountParam `json:"max_list_cost,omitzero" api:"required"` + // Any of "limit". + Type ManagedAgentsBudgetLimitType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsBudgetLimitParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsBudgetLimitParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsBudgetLimitParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsBudgetLimitParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsBudgetLimitType]() + + + +```go +type ManagedAgentsBudgetLimitType string +``` + + + +```go +const ( + ManagedAgentsBudgetLimitTypeLimit ManagedAgentsBudgetLimitType = "limit" +) +``` + + +## type [ManagedAgentsCacheCreationUsage]() + +Prompt\-cache creation token usage broken down by cache lifetime. + +```go +type ManagedAgentsCacheCreationUsage struct { + // Tokens used to create 1-hour ephemeral cache entries. + Ephemeral1hInputTokens int64 `json:"ephemeral_1h_input_tokens"` + // Tokens used to create 5-minute ephemeral cache entries. + Ephemeral5mInputTokens int64 `json:"ephemeral_5m_input_tokens"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Ephemeral1hInputTokens respjson.Field + Ephemeral5mInputTokens respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCacheCreationUsage\) [RawJSON]() + +```go +func (r ManagedAgentsCacheCreationUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCacheCreationUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCacheCreationUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCommitCheckout]() + + + +```go +type ManagedAgentsCommitCheckout struct { + // Full commit SHA to check out. + Sha string `json:"sha" api:"required"` + // Any of "commit". + Type ManagedAgentsCommitCheckoutType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Sha respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCommitCheckout\) [RawJSON]() + +```go +func (r ManagedAgentsCommitCheckout) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsCommitCheckout\) [ToParam]() + +```go +func (r ManagedAgentsCommitCheckout) ToParam() ManagedAgentsCommitCheckoutParam +``` + +ToParam converts this ManagedAgentsCommitCheckout to a ManagedAgentsCommitCheckoutParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsCommitCheckoutParam.Overrides\(\) + + +### func \(\*ManagedAgentsCommitCheckout\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCommitCheckout) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCommitCheckoutParam]() + +The properties Sha, Type are required. + +```go +type ManagedAgentsCommitCheckoutParam struct { + // Full commit SHA to check out. + Sha string `json:"sha" api:"required"` + // Any of "commit". + Type ManagedAgentsCommitCheckoutType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsCommitCheckoutParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsCommitCheckoutParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsCommitCheckoutParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCommitCheckoutParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCommitCheckoutType]() + + + +```go +type ManagedAgentsCommitCheckoutType string +``` + + + +```go +const ( + ManagedAgentsCommitCheckoutTypeCommit ManagedAgentsCommitCheckoutType = "commit" +) +``` + + +## type [ManagedAgentsCredential]() + +A credential stored in a vault. Sensitive fields are never returned in responses. + +```go +type ManagedAgentsCredential struct { + // Unique identifier for the credential. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // Authentication details for a credential. + Auth ManagedAgentsCredentialAuthUnion `json:"auth" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Arbitrary key-value metadata attached to the credential. + Metadata map[string]string `json:"metadata" api:"required"` + // Any of "vault_credential". + Type ManagedAgentsCredentialType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // Identifier of the vault this credential belongs to. + VaultID string `json:"vault_id" api:"required"` + // Human-readable name for the credential. + DisplayName string `json:"display_name" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ArchivedAt respjson.Field + Auth respjson.Field + CreatedAt respjson.Field + Metadata respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + VaultID respjson.Field + DisplayName respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCredential\) [RawJSON]() + +```go +func (r ManagedAgentsCredential) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCredential\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCredential) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialAuthUnion]() + +ManagedAgentsCredentialAuthUnion contains all possible properties and values from [ManagedAgentsMCPOAuthAuthResponse](<#ManagedAgentsMCPOAuthAuthResponse>), [ManagedAgentsStaticBearerAuthResponse](<#ManagedAgentsStaticBearerAuthResponse>), [ManagedAgentsEnvironmentVariableAuthResponse](<#ManagedAgentsEnvironmentVariableAuthResponse>). + +Use the [ManagedAgentsCredentialAuthUnion.AsAny](<#ManagedAgentsCredentialAuthUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsCredentialAuthUnion struct { + MCPServerURL string `json:"mcp_server_url"` + // Any of "mcp_oauth", "static_bearer", "environment_variable". + Type string `json:"type"` + // This field is from variant [ManagedAgentsMCPOAuthAuthResponse]. + ExpiresAt time.Time `json:"expires_at"` + // This field is from variant [ManagedAgentsMCPOAuthAuthResponse]. + Refresh ManagedAgentsMCPOAuthRefreshResponse `json:"refresh"` + // This field is from variant [ManagedAgentsEnvironmentVariableAuthResponse]. + InjectionLocation ManagedAgentsInjectionLocationResponse `json:"injection_location"` + // This field is from variant [ManagedAgentsEnvironmentVariableAuthResponse]. + Networking ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion `json:"networking"` + // This field is from variant [ManagedAgentsEnvironmentVariableAuthResponse]. + SecretName string `json:"secret_name"` + JSON struct { + MCPServerURL respjson.Field + Type respjson.Field + ExpiresAt respjson.Field + Refresh respjson.Field + InjectionLocation respjson.Field + Networking respjson.Field + SecretName respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCredentialAuthUnion\) [AsAny]() + +```go +func (u ManagedAgentsCredentialAuthUnion) AsAny() anyManagedAgentsCredentialAuth +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsCredentialAuthUnion.AsAny().(type) { +case qoder.ManagedAgentsMCPOAuthAuthResponse: +case qoder.ManagedAgentsStaticBearerAuthResponse: +case qoder.ManagedAgentsEnvironmentVariableAuthResponse: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsCredentialAuthUnion\) [AsEnvironmentVariable]() + +```go +func (u ManagedAgentsCredentialAuthUnion) AsEnvironmentVariable() (v ManagedAgentsEnvironmentVariableAuthResponse) +``` + + + + +### func \(ManagedAgentsCredentialAuthUnion\) [AsMCPOAuth]() + +```go +func (u ManagedAgentsCredentialAuthUnion) AsMCPOAuth() (v ManagedAgentsMCPOAuthAuthResponse) +``` + + + + +### func \(ManagedAgentsCredentialAuthUnion\) [AsStaticBearer]() + +```go +func (u ManagedAgentsCredentialAuthUnion) AsStaticBearer() (v ManagedAgentsStaticBearerAuthResponse) +``` + + + + +### func \(ManagedAgentsCredentialAuthUnion\) [RawJSON]() + +```go +func (u ManagedAgentsCredentialAuthUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCredentialAuthUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCredentialAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialHostUnreachableError]() + +An \`environment\_variable\` credential's \`auth.networking.allowed\_hosts\` includes a host the environment's network policy does not permit. + +```go +type ManagedAgentsCredentialHostUnreachableError struct { + // ID of the affected credential. + CredentialID string `json:"credential_id" api:"required"` + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "credential_host_unreachable_error". + Type ManagedAgentsCredentialHostUnreachableErrorType `json:"type" api:"required"` + // ID of the vault containing the affected credential. + VaultID string `json:"vault_id" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + CredentialID respjson.Field + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + VaultID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCredentialHostUnreachableError\) [RawJSON]() + +```go +func (r ManagedAgentsCredentialHostUnreachableError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCredentialHostUnreachableError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCredentialHostUnreachableError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion]() + +ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsAny](<#ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) AsAny() anyManagedAgentsCredentialHostUnreachableErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialHostUnreachableErrorType]() + + + +```go +type ManagedAgentsCredentialHostUnreachableErrorType string +``` + + + +```go +const ( + ManagedAgentsCredentialHostUnreachableErrorTypeCredentialHostUnreachableError ManagedAgentsCredentialHostUnreachableErrorType = "credential_host_unreachable_error" +) +``` + + +## type [ManagedAgentsCredentialNetworkingParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsCredentialNetworkingParamsUnion struct { + OfUnrestricted *ManagedAgentsUnrestrictedCredentialNetworkingParams `json:",omitzero,inline"` + OfLimited *ManagedAgentsLimitedCredentialNetworkingParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [ManagedAgentsCredentialNetworkingParamsOfLimited]() + +```go +func ManagedAgentsCredentialNetworkingParamsOfLimited(allowedHosts []string) ManagedAgentsCredentialNetworkingParamsUnion +``` + + + + +### func [ManagedAgentsCredentialNetworkingParamsOfUnrestricted]() + +```go +func ManagedAgentsCredentialNetworkingParamsOfUnrestricted(type_ ManagedAgentsUnrestrictedCredentialNetworkingParamsType) ManagedAgentsCredentialNetworkingParamsUnion +``` + + + + +### func \(ManagedAgentsCredentialNetworkingParamsUnion\) [GetAllowedHosts]() + +```go +func (u ManagedAgentsCredentialNetworkingParamsUnion) GetAllowedHosts() []string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsCredentialNetworkingParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsCredentialNetworkingParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsCredentialNetworkingParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsCredentialNetworkingParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsCredentialNetworkingParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsCredentialNetworkingParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialType]() + + + +```go +type ManagedAgentsCredentialType string +``` + + + +```go +const ( + ManagedAgentsCredentialTypeVaultCredential ManagedAgentsCredentialType = "vault_credential" +) +``` + + +## type [ManagedAgentsCredentialValidation]() + +Result of live\-probing a credential against its configured MCP server. + +```go +type ManagedAgentsCredentialValidation struct { + // Unique identifier of the credential that was validated. + CredentialID string `json:"credential_id" api:"required"` + // Whether the credential has a refresh token configured. + HasRefreshToken bool `json:"has_refresh_token" api:"required"` + // The failing step of an MCP validation probe. + MCPProbe ManagedAgentsMCPProbe `json:"mcp_probe" api:"required"` + // Outcome of a refresh-token exchange attempted during credential validation. + Refresh ManagedAgentsRefreshObject `json:"refresh" api:"required"` + // Overall verdict of a credential validation probe. + // + // Any of "valid", "invalid", "unknown". + Status ManagedAgentsCredentialValidationStatus `json:"status" api:"required"` + // Any of "vault_credential_validation". + Type ManagedAgentsCredentialValidationType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + ValidatedAt time.Time `json:"validated_at" api:"required" format:"date-time"` + // Identifier of the vault containing the credential. + VaultID string `json:"vault_id" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + CredentialID respjson.Field + HasRefreshToken respjson.Field + MCPProbe respjson.Field + Refresh respjson.Field + Status respjson.Field + Type respjson.Field + ValidatedAt respjson.Field + VaultID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCredentialValidation\) [RawJSON]() + +```go +func (r ManagedAgentsCredentialValidation) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCredentialValidation\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCredentialValidation) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCredentialValidationStatus]() + +Overall verdict of a credential validation probe. + +```go +type ManagedAgentsCredentialValidationStatus string +``` + + + +```go +const ( + ManagedAgentsCredentialValidationStatusValid ManagedAgentsCredentialValidationStatus = "valid" + ManagedAgentsCredentialValidationStatusInvalid ManagedAgentsCredentialValidationStatus = "invalid" + ManagedAgentsCredentialValidationStatusUnknown ManagedAgentsCredentialValidationStatus = "unknown" +) +``` + + +## type [ManagedAgentsCredentialValidationType]() + + + +```go +type ManagedAgentsCredentialValidationType string +``` + + + +```go +const ( + ManagedAgentsCredentialValidationTypeVaultCredentialValidation ManagedAgentsCredentialValidationType = "vault_credential_validation" +) +``` + + +## type [ManagedAgentsCustomSkill]() + +A resolved user\-created custom skill. + +```go +type ManagedAgentsCustomSkill struct { + SkillID string `json:"skill_id" api:"required"` + // Any of "custom". + Type ManagedAgentsCustomSkillType `json:"type" api:"required"` + Version string `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + SkillID respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCustomSkill\) [RawJSON]() + +```go +func (r ManagedAgentsCustomSkill) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCustomSkill\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomSkill) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomSkillParams]() + +A user\-created custom skill. + +The properties SkillID, Type are required. + +```go +type ManagedAgentsCustomSkillParams struct { + // Tagged ID of the custom skill (e.g., "skill_01XJ5..."). + SkillID string `json:"skill_id" api:"required"` + // Any of "custom". + Type ManagedAgentsCustomSkillParamsType `json:"type,omitzero" api:"required"` + // Version to pin. Defaults to latest if omitted. + Version param.Opt[string] `json:"version,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsCustomSkillParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsCustomSkillParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsCustomSkillParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomSkillParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomSkillParamsType]() + + + +```go +type ManagedAgentsCustomSkillParamsType string +``` + + + +```go +const ( + ManagedAgentsCustomSkillParamsTypeCustom ManagedAgentsCustomSkillParamsType = "custom" +) +``` + + +## type [ManagedAgentsCustomSkillType]() + + + +```go +type ManagedAgentsCustomSkillType string +``` + + + +```go +const ( + ManagedAgentsCustomSkillTypeCustom ManagedAgentsCustomSkillType = "custom" +) +``` + + +## type [ManagedAgentsCustomTool]() + +A custom tool as returned in API responses. + +```go +type ManagedAgentsCustomTool struct { + Description string `json:"description" api:"required"` + // JSON Schema for custom tool input parameters. + InputSchema ManagedAgentsCustomToolInputSchema `json:"input_schema" api:"required"` + Name string `json:"name" api:"required"` + // Any of "custom". + Type ManagedAgentsCustomToolType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Description respjson.Field + InputSchema respjson.Field + Name respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCustomTool\) [RawJSON]() + +```go +func (r ManagedAgentsCustomTool) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsCustomTool\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomTool) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomToolInputSchema]() + +JSON Schema for custom tool input parameters. + +```go +type ManagedAgentsCustomToolInputSchema struct { + Type constant.Object `json:"type" default:"object"` + Properties map[string]any `json:"properties" api:"nullable"` + Required []string `json:"required" api:"nullable"` + ExtraFields map[string]any `json:"" api:"extrafields"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + Properties respjson.Field + Required respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsCustomToolInputSchema\) [RawJSON]() + +```go +func (r ManagedAgentsCustomToolInputSchema) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsCustomToolInputSchema\) [ToParam]() + +```go +func (r ManagedAgentsCustomToolInputSchema) ToParam() ManagedAgentsCustomToolInputSchemaParam +``` + +ToParam converts this ManagedAgentsCustomToolInputSchema to a ManagedAgentsCustomToolInputSchemaParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsCustomToolInputSchemaParam.Overrides\(\) + + +### func \(\*ManagedAgentsCustomToolInputSchema\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomToolInputSchema) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomToolInputSchemaParam]() + +JSON Schema for custom tool input parameters. + +The property Type is required. + +```go +type ManagedAgentsCustomToolInputSchemaParam struct { + Properties map[string]any `json:"properties,omitzero"` + Required []string `json:"required,omitzero"` + // This field can be elided, and will marshal its zero value as "object". + Type constant.Object `json:"type" default:"object"` + ExtraFields map[string]any `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsCustomToolInputSchemaParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsCustomToolInputSchemaParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsCustomToolInputSchemaParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomToolInputSchemaParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomToolParams]() + +A custom tool that is executed by the API client rather than the agent. When the agent calls this tool, an \`agent.custom\_tool\_use\` event is emitted and the session goes idle, waiting for the client to provide the result via a \`user.custom\_tool\_result\` event. + +The properties Description, InputSchema, Name, Type are required. + +```go +type ManagedAgentsCustomToolParams struct { + // Description of what the tool does, shown to the agent to help it decide when to + // use the tool. + Description string `json:"description" api:"required"` + // JSON Schema for custom tool input parameters. + InputSchema ManagedAgentsCustomToolInputSchemaParam `json:"input_schema,omitzero" api:"required"` + // Unique name for the tool. 1-128 characters; letters, digits, underscores, and + // hyphens. + Name string `json:"name" api:"required"` + // Any of "custom". + Type ManagedAgentsCustomToolParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsCustomToolParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsCustomToolParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsCustomToolParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsCustomToolParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsCustomToolParamsType]() + + + +```go +type ManagedAgentsCustomToolParamsType string +``` + + + +```go +const ( + ManagedAgentsCustomToolParamsTypeCustom ManagedAgentsCustomToolParamsType = "custom" +) +``` + + +## type [ManagedAgentsCustomToolType]() + + + +```go +type ManagedAgentsCustomToolType string +``` + + + +```go +const ( + ManagedAgentsCustomToolTypeCustom ManagedAgentsCustomToolType = "custom" +) +``` + + +## type [ManagedAgentsDeleteSessionResource]() + +Confirmation of resource deletion. + +```go +type ManagedAgentsDeleteSessionResource struct { + ID string `json:"id" api:"required"` + // Any of "session_resource_deleted". + Type ManagedAgentsDeleteSessionResourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeleteSessionResource\) [RawJSON]() + +```go +func (r ManagedAgentsDeleteSessionResource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeleteSessionResource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeleteSessionResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeleteSessionResourceType]() + + + +```go +type ManagedAgentsDeleteSessionResourceType string +``` + + + +```go +const ( + ManagedAgentsDeleteSessionResourceTypeSessionResourceDeleted ManagedAgentsDeleteSessionResourceType = "session_resource_deleted" +) +``` + + +## type [ManagedAgentsDeletedCredential]() + +Confirmation of a deleted credential. + +```go +type ManagedAgentsDeletedCredential struct { + // Unique identifier of the deleted credential. + ID string `json:"id" api:"required"` + // Any of "vault_credential_deleted". + Type ManagedAgentsDeletedCredentialType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeletedCredential\) [RawJSON]() + +```go +func (r ManagedAgentsDeletedCredential) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeletedCredential\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeletedCredential) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeletedCredentialType]() + + + +```go +type ManagedAgentsDeletedCredentialType string +``` + + + +```go +const ( + ManagedAgentsDeletedCredentialTypeVaultCredentialDeleted ManagedAgentsDeletedCredentialType = "vault_credential_deleted" +) +``` + + +## type [ManagedAgentsDeletedMemory]() + +Tombstone returned by \[Delete a memory\]\(/en/api/beta/memory\_stores/memories/delete\). Deleting a memory does not erase its version history: its versions remain listable via \[List memory versions\]\(/en/api/beta/memory\_stores/memory\_versions/list\) while they are retained \(each version is kept for at least the version retention period after it was written, unless the store itself is deleted\). + +```go +type ManagedAgentsDeletedMemory struct { + // ID of the deleted memory (a `mem_...` value). + ID string `json:"id" api:"required"` + // Any of "memory_deleted". + Type ManagedAgentsDeletedMemoryType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeletedMemory\) [RawJSON]() + +```go +func (r ManagedAgentsDeletedMemory) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeletedMemory\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeletedMemory) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeletedMemoryStore]() + +Confirmation that a \`memory\_store\` was deleted. + +```go +type ManagedAgentsDeletedMemoryStore struct { + // ID of the deleted memory store (a `memstore_...` identifier). The store and all + // its memories and versions are no longer retrievable. + ID string `json:"id" api:"required"` + // Any of "memory_store_deleted". + Type ManagedAgentsDeletedMemoryStoreType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeletedMemoryStore\) [RawJSON]() + +```go +func (r ManagedAgentsDeletedMemoryStore) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeletedMemoryStore\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeletedMemoryStore) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeletedMemoryStoreType]() + + + +```go +type ManagedAgentsDeletedMemoryStoreType string +``` + + + +```go +const ( + ManagedAgentsDeletedMemoryStoreTypeMemoryStoreDeleted ManagedAgentsDeletedMemoryStoreType = "memory_store_deleted" +) +``` + + +## type [ManagedAgentsDeletedMemoryType]() + + + +```go +type ManagedAgentsDeletedMemoryType string +``` + + + +```go +const ( + ManagedAgentsDeletedMemoryTypeMemoryDeleted ManagedAgentsDeletedMemoryType = "memory_deleted" +) +``` + + +## type [ManagedAgentsDeletedSession]() + +Confirmation that a \`session\` has been permanently deleted. + +```go +type ManagedAgentsDeletedSession struct { + ID string `json:"id" api:"required"` + // Any of "session_deleted". + Type ManagedAgentsDeletedSessionType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeletedSession\) [RawJSON]() + +```go +func (r ManagedAgentsDeletedSession) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeletedSession\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeletedSession) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeletedSessionType]() + + + +```go +type ManagedAgentsDeletedSessionType string +``` + + + +```go +const ( + ManagedAgentsDeletedSessionTypeSessionDeleted ManagedAgentsDeletedSessionType = "session_deleted" +) +``` + + +## type [ManagedAgentsDeletedVault]() + +Confirmation of a deleted vault. + +```go +type ManagedAgentsDeletedVault struct { + // Unique identifier of the deleted vault. + ID string `json:"id" api:"required"` + // Any of "vault_deleted". + Type ManagedAgentsDeletedVaultType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeletedVault\) [RawJSON]() + +```go +func (r ManagedAgentsDeletedVault) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeletedVault\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeletedVault) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeletedVaultType]() + + + +```go +type ManagedAgentsDeletedVaultType string +``` + + + +```go +const ( + ManagedAgentsDeletedVaultTypeVaultDeleted ManagedAgentsDeletedVaultType = "vault_deleted" +) +``` + + +## type [ManagedAgentsDeltaContent]() + + + +```go +type ManagedAgentsDeltaContent struct { + // Regular text content. + Content ManagedAgentsTextBlock `json:"content" api:"required"` + // Any of "content_delta". + Type ManagedAgentsDeltaContentType `json:"type" api:"required"` + // Which entry in the previewed event's content array this fragment lands in. + // Insert content as that entry when the index is new; append to the existing entry + // otherwise. + Index int64 `json:"index"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Content respjson.Field + Type respjson.Field + Index respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeltaContent\) [RawJSON]() + +```go +func (r ManagedAgentsDeltaContent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeltaContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeltaContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeltaContentType]() + + + +```go +type ManagedAgentsDeltaContentType string +``` + + + +```go +const ( + ManagedAgentsDeltaContentTypeContentDelta ManagedAgentsDeltaContentType = "content_delta" +) +``` + + +## type [ManagedAgentsDeltaEvent]() + +An incremental update to an event that is still being streamed. Deltas are best\-effort and may stop early; when the buffered event with id == event\_id is produced it carries the complete content. A model request that ends early \(an error or interrupt\) produces no buffered event — its terminal span.model\_request\_end closes the preview. Only sent on stream connections that opt in via event\_deltas; never appears in event history. + +```go +type ManagedAgentsDeltaEvent struct { + // One fragment of the previewed event. The delta type is named for the previewed + // event's field it streams into: agent.message events stream content_delta + // fragments, each a partial element of the content array. + Delta ManagedAgentsDeltaContent `json:"delta" api:"required"` + // The id of the event being previewed. Matches event.id on the corresponding + // event_start and the buffered event that reconciles the preview. + EventID string `json:"event_id" api:"required"` + // Any of "event_delta". + Type ManagedAgentsDeltaEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Delta respjson.Field + EventID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeltaEvent\) [RawJSON]() + +```go +func (r ManagedAgentsDeltaEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeltaEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeltaEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeltaEventType]() + + + +```go +type ManagedAgentsDeltaEventType string +``` + + + +```go +const ( + ManagedAgentsDeltaEventTypeEventDelta ManagedAgentsDeltaEventType = "event_delta" +) +``` + + +## type [ManagedAgentsDeltaType]() + +EventDeltaType enum + +```go +type ManagedAgentsDeltaType string +``` + + + +```go +const ( + ManagedAgentsDeltaTypeAgentMessage ManagedAgentsDeltaType = "agent.message" + ManagedAgentsDeltaTypeAgentThinking ManagedAgentsDeltaType = "agent.thinking" +) +``` + + +## type [ManagedAgentsDeployment]() + +A deployment is a configured instance of an agent — it binds the agent to everything needed to run it autonomously: an environment, credentials, initial events, and an optional schedule. + +```go +type ManagedAgentsDeployment struct { + EnvironmentVariables string `json:"environment_variables"` + + // Unique identifier for this deployment. + ID string `json:"id" api:"required"` + // A resolved agent reference with a concrete version. + Agent ManagedAgentsAgentReference `json:"agent" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Description of what the deployment does. + Description string `json:"description" api:"required"` + // ID of the `environment` where sessions run. + EnvironmentID string `json:"environment_id" api:"required"` + // Events sent to each session immediately after creation. + InitialEvents []ManagedAgentsDeploymentInitialEventUnion `json:"initial_events" api:"required"` + // Arbitrary key-value metadata. Maximum 16 pairs. + Metadata map[string]string `json:"metadata" api:"required"` + // Human-readable name. + Name string `json:"name" api:"required"` + // Why a deployment is paused. Non-null exactly when `status` is `paused`. + PausedReason ManagedAgentsDeploymentPausedReasonUnion `json:"paused_reason" api:"required"` + // Resources attached to sessions created from this deployment. Echoes the input + // minus write-only credentials. + Resources []ManagedAgentsSessionResourceConfigUnion `json:"resources" api:"required"` + // 5-field POSIX cron schedule with computed runtime timestamps. + Schedule ManagedAgentsSchedule `json:"schedule" api:"required"` + // Lifecycle status of a deployment. + // + // Any of "active", "paused". + Status ManagedAgentsDeploymentStatus `json:"status" api:"required"` + // Any of "deployment". + Type ManagedAgentsDeploymentType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // Vault IDs supplying stored credentials for sessions created from this + // deployment. + VaultIDs []string `json:"vault_ids" api:"required"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimit `json:"budget" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + EnvironmentVariables respjson.Field + + ID respjson.Field + Agent respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + Description respjson.Field + EnvironmentID respjson.Field + InitialEvents respjson.Field + Metadata respjson.Field + Name respjson.Field + PausedReason respjson.Field + Resources respjson.Field + Schedule respjson.Field + Status respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + VaultIDs respjson.Field + Budget respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeployment\) [RawJSON]() + +```go +func (r ManagedAgentsDeployment) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeployment\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeployment) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentInitialEventParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsDeploymentInitialEventParamsUnion struct { + OfUserMessage *ManagedAgentsUserMessageEventParams `json:",omitzero,inline"` + OfUserDefineOutcome *ManagedAgentsUserDefineOutcomeEventParams `json:",omitzero,inline"` + OfSystemMessage *ManagedAgentsSystemMessageEventParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [ManagedAgentsDeploymentInitialEventParamsOfSystemMessage]() + +```go +func ManagedAgentsDeploymentInitialEventParamsOfSystemMessage(content []ManagedAgentsSystemContentBlockParam) ManagedAgentsDeploymentInitialEventParamsUnion +``` + + + + +### func [ManagedAgentsDeploymentInitialEventParamsOfUserDefineOutcome]() + +```go +func ManagedAgentsDeploymentInitialEventParamsOfUserDefineOutcome[T ManagedAgentsFileRubricParams | ManagedAgentsTextRubricParams](description string, rubric T, type_ ManagedAgentsUserDefineOutcomeEventParamsType) ManagedAgentsDeploymentInitialEventParamsUnion +``` + + + + +### func [ManagedAgentsDeploymentInitialEventParamsOfUserMessage]() + +```go +func ManagedAgentsDeploymentInitialEventParamsOfUserMessage(content []ManagedAgentsUserMessageEventParamsContentUnion) ManagedAgentsDeploymentInitialEventParamsUnion +``` + + + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [GetContent]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) GetContent() (res managedAgentsDeploymentInitialEventParamsUnionContent) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [GetDescription]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [GetMaxIterations]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) GetMaxIterations() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [GetRubric]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) GetRubric() *ManagedAgentsUserDefineOutcomeEventParamsRubricUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDeploymentInitialEventParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsDeploymentInitialEventParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsDeploymentInitialEventParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsDeploymentInitialEventParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentInitialEventUnion]() + +ManagedAgentsDeploymentInitialEventUnion contains all possible properties and values from [ManagedAgentsDeploymentUserMessageEvent](<#ManagedAgentsDeploymentUserMessageEvent>), [ManagedAgentsDeploymentUserDefineOutcomeEvent](<#ManagedAgentsDeploymentUserDefineOutcomeEvent>), [ManagedAgentsDeploymentSystemMessageEvent](<#ManagedAgentsDeploymentSystemMessageEvent>). + +Use the [ManagedAgentsDeploymentInitialEventUnion.AsAny](<#ManagedAgentsDeploymentInitialEventUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentInitialEventUnion struct { + // This field is a union of + // [[]ManagedAgentsDeploymentUserMessageEventContentUnion], + // [[]ManagedAgentsSystemContentBlock] + Content ManagedAgentsDeploymentInitialEventUnionContent `json:"content"` + // Any of "user.message", "user.define_outcome", "system.message". + Type string `json:"type"` + // This field is from variant [ManagedAgentsDeploymentUserDefineOutcomeEvent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsDeploymentUserDefineOutcomeEvent]. + Rubric ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion `json:"rubric"` + // This field is from variant [ManagedAgentsDeploymentUserDefineOutcomeEvent]. + MaxIterations int64 `json:"max_iterations"` + JSON struct { + Content respjson.Field + Type respjson.Field + Description respjson.Field + Rubric respjson.Field + MaxIterations respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentInitialEventUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentInitialEventUnion) AsAny() anyManagedAgentsDeploymentInitialEvent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentInitialEventUnion.AsAny().(type) { +case qoder.ManagedAgentsDeploymentUserMessageEvent: +case qoder.ManagedAgentsDeploymentUserDefineOutcomeEvent: +case qoder.ManagedAgentsDeploymentSystemMessageEvent: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentInitialEventUnion\) [AsSystemMessage]() + +```go +func (u ManagedAgentsDeploymentInitialEventUnion) AsSystemMessage() (v ManagedAgentsDeploymentSystemMessageEvent) +``` + + + + +### func \(ManagedAgentsDeploymentInitialEventUnion\) [AsUserDefineOutcome]() + +```go +func (u ManagedAgentsDeploymentInitialEventUnion) AsUserDefineOutcome() (v ManagedAgentsDeploymentUserDefineOutcomeEvent) +``` + + + + +### func \(ManagedAgentsDeploymentInitialEventUnion\) [AsUserMessage]() + +```go +func (u ManagedAgentsDeploymentInitialEventUnion) AsUserMessage() (v ManagedAgentsDeploymentUserMessageEvent) +``` + + + + +### func \(ManagedAgentsDeploymentInitialEventUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentInitialEventUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentInitialEventUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentInitialEventUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentInitialEventUnionContent]() + +ManagedAgentsDeploymentInitialEventUnionContent is an implicit subunion of [ManagedAgentsDeploymentInitialEventUnion](<#ManagedAgentsDeploymentInitialEventUnion>). ManagedAgentsDeploymentInitialEventUnionContent provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsDeploymentInitialEventUnion](<#ManagedAgentsDeploymentInitialEventUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsDeploymentUserMessageEventContentArray OfManagedAgentsSystemContentBlockArray\] + +```go +type ManagedAgentsDeploymentInitialEventUnionContent struct { + // This field will be present if the value is a + // [[]ManagedAgentsDeploymentUserMessageEventContentUnion] instead of an + // object. + OfManagedAgentsDeploymentUserMessageEventContentArray []ManagedAgentsDeploymentUserMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsSystemContentBlock] instead of an object. + OfManagedAgentsSystemContentBlockArray []ManagedAgentsSystemContentBlock `json:",inline"` + JSON struct { + OfManagedAgentsDeploymentUserMessageEventContentArray respjson.Field + OfManagedAgentsSystemContentBlockArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsDeploymentInitialEventUnionContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentInitialEventUnionContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentPausedReasonErrorUnion]() + +ManagedAgentsDeploymentPausedReasonErrorUnion contains all possible properties and values from [ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError](<#ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError>), [ManagedAgentsAgentArchivedDeploymentPausedReasonError](<#ManagedAgentsAgentArchivedDeploymentPausedReasonError>), [ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError](<#ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError>), [ManagedAgentsVaultNotFoundDeploymentPausedReasonError](<#ManagedAgentsVaultNotFoundDeploymentPausedReasonError>), [ManagedAgentsFileNotFoundDeploymentPausedReasonError](<#ManagedAgentsFileNotFoundDeploymentPausedReasonError>), [ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError](<#ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError>), [ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError](<#ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError>), [ManagedAgentsOrganizationDisabledDeploymentPausedReasonError](<#ManagedAgentsOrganizationDisabledDeploymentPausedReasonError>), [ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError](<#ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError>), [ManagedAgentsSkillNotFoundDeploymentPausedReasonError](<#ManagedAgentsSkillNotFoundDeploymentPausedReasonError>), [ManagedAgentsVaultArchivedDeploymentPausedReasonError](<#ManagedAgentsVaultArchivedDeploymentPausedReasonError>), [ManagedAgentsUnknownDeploymentPausedReasonError](<#ManagedAgentsUnknownDeploymentPausedReasonError>), [ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError](<#ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError>), [ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError](<#ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError>). + +Use the [ManagedAgentsDeploymentPausedReasonErrorUnion.AsAny](<#ManagedAgentsDeploymentPausedReasonErrorUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentPausedReasonErrorUnion struct { + // Any of "environment_archived_error", "agent_archived_error", + // "environment_not_found_error", "vault_not_found_error", "file_not_found_error", + // "session_resource_not_found_error", "workspace_archived_error", + // "organization_disabled_error", "memory_store_archived_error", + // "skill_not_found_error", "vault_archived_error", "unknown_error", + // "self_hosted_resources_unsupported_error", "mcp_egress_blocked_error". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsAgentArchivedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsAgentArchivedError() (v ManagedAgentsAgentArchivedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsAny() anyManagedAgentsDeploymentPausedReasonError +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentPausedReasonErrorUnion.AsAny().(type) { +case qoder.ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError: +case qoder.ManagedAgentsAgentArchivedDeploymentPausedReasonError: +case qoder.ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError: +case qoder.ManagedAgentsVaultNotFoundDeploymentPausedReasonError: +case qoder.ManagedAgentsFileNotFoundDeploymentPausedReasonError: +case qoder.ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError: +case qoder.ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError: +case qoder.ManagedAgentsOrganizationDisabledDeploymentPausedReasonError: +case qoder.ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError: +case qoder.ManagedAgentsSkillNotFoundDeploymentPausedReasonError: +case qoder.ManagedAgentsVaultArchivedDeploymentPausedReasonError: +case qoder.ManagedAgentsUnknownDeploymentPausedReasonError: +case qoder.ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError: +case qoder.ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsEnvironmentArchivedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsEnvironmentArchivedError() (v ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsEnvironmentNotFoundError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsEnvironmentNotFoundError() (v ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsFileNotFoundError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsFileNotFoundError() (v ManagedAgentsFileNotFoundDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsMCPEgressBlockedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsMCPEgressBlockedError() (v ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsMemoryStoreArchivedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsMemoryStoreArchivedError() (v ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsOrganizationDisabledError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsOrganizationDisabledError() (v ManagedAgentsOrganizationDisabledDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsSelfHostedResourcesUnsupportedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsSelfHostedResourcesUnsupportedError() (v ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsSessionResourceNotFoundError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsSessionResourceNotFoundError() (v ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsSkillNotFoundError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsSkillNotFoundError() (v ManagedAgentsSkillNotFoundDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsUnknownError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsUnknownError() (v ManagedAgentsUnknownDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsVaultArchivedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsVaultArchivedError() (v ManagedAgentsVaultArchivedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsVaultNotFoundError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsVaultNotFoundError() (v ManagedAgentsVaultNotFoundDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [AsWorkspaceArchivedError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) AsWorkspaceArchivedError() (v ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonErrorUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentPausedReasonErrorUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentPausedReasonErrorUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentPausedReasonErrorUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentPausedReasonUnion]() + +ManagedAgentsDeploymentPausedReasonUnion contains all possible properties and values from [ManagedAgentsManualDeploymentPausedReason](<#ManagedAgentsManualDeploymentPausedReason>), [ManagedAgentsErrorDeploymentPausedReason](<#ManagedAgentsErrorDeploymentPausedReason>). + +Use the [ManagedAgentsDeploymentPausedReasonUnion.AsAny](<#ManagedAgentsDeploymentPausedReasonUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentPausedReasonUnion struct { + // Any of "manual", "error". + Type string `json:"type"` + // This field is from variant [ManagedAgentsErrorDeploymentPausedReason]. + Error ManagedAgentsDeploymentPausedReasonErrorUnion `json:"error"` + JSON struct { + Type respjson.Field + Error respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentPausedReasonUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentPausedReasonUnion) AsAny() anyManagedAgentsDeploymentPausedReason +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentPausedReasonUnion.AsAny().(type) { +case qoder.ManagedAgentsManualDeploymentPausedReason: +case qoder.ManagedAgentsErrorDeploymentPausedReason: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentPausedReasonUnion\) [AsError]() + +```go +func (u ManagedAgentsDeploymentPausedReasonUnion) AsError() (v ManagedAgentsErrorDeploymentPausedReason) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonUnion\) [AsManual]() + +```go +func (u ManagedAgentsDeploymentPausedReasonUnion) AsManual() (v ManagedAgentsManualDeploymentPausedReason) +``` + + + + +### func \(ManagedAgentsDeploymentPausedReasonUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentPausedReasonUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentPausedReasonUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentPausedReasonUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentRun]() + +A persistent, append\-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking. + +```go +type ManagedAgentsDeploymentRun struct { + // Unique identifier for this run (`drun_...`). + ID string `json:"id" api:"required"` + // A resolved agent reference with a concrete version. + Agent ManagedAgentsAgentReference `json:"agent" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // ID of the deployment that produced this run. + DeploymentID string `json:"deployment_id" api:"required"` + // Why the run failed to create a session. The type identifies the failure; message + // is human-readable detail. + Error ManagedAgentsDeploymentRunErrorUnion `json:"error" api:"required"` + // Populated on success. Null on creation failure. Exactly one of `session_id` or + // `error` is non-null. + SessionID string `json:"session_id" api:"required"` + // Describes what triggered a deployment run, with trigger-specific metadata. + TriggerContext ManagedAgentsTriggerContextUnion `json:"trigger_context" api:"required"` + // Any of "deployment_run". + Type ManagedAgentsDeploymentRunType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Agent respjson.Field + CreatedAt respjson.Field + DeploymentID respjson.Field + Error respjson.Field + SessionID respjson.Field + TriggerContext respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentRun\) [RawJSON]() + +```go +func (r ManagedAgentsDeploymentRun) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentRun\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentRun) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentRunErrorUnion]() + +ManagedAgentsDeploymentRunErrorUnion contains all possible properties and values from [ManagedAgentsEnvironmentArchivedRunError](<#ManagedAgentsEnvironmentArchivedRunError>), [ManagedAgentsAgentArchivedRunError](<#ManagedAgentsAgentArchivedRunError>), [ManagedAgentsEnvironmentNotFoundRunError](<#ManagedAgentsEnvironmentNotFoundRunError>), [ManagedAgentsVaultNotFoundRunError](<#ManagedAgentsVaultNotFoundRunError>), [ManagedAgentsVaultArchivedRunError](<#ManagedAgentsVaultArchivedRunError>), [ManagedAgentsFileNotFoundRunError](<#ManagedAgentsFileNotFoundRunError>), [ManagedAgentsMemoryStoreArchivedRunError](<#ManagedAgentsMemoryStoreArchivedRunError>), [ManagedAgentsSkillNotFoundRunError](<#ManagedAgentsSkillNotFoundRunError>), [ManagedAgentsSessionResourceNotFoundRunError](<#ManagedAgentsSessionResourceNotFoundRunError>), [ManagedAgentsWorkspaceArchivedRunError](<#ManagedAgentsWorkspaceArchivedRunError>), [ManagedAgentsOrganizationDisabledRunError](<#ManagedAgentsOrganizationDisabledRunError>), [ManagedAgentsSessionRateLimitedRunError](<#ManagedAgentsSessionRateLimitedRunError>), [ManagedAgentsSessionCreationRejectedRunError](<#ManagedAgentsSessionCreationRejectedRunError>), [ManagedAgentsUnknownRunError](<#ManagedAgentsUnknownRunError>), [ManagedAgentsSelfHostedResourcesUnsupportedRunError](<#ManagedAgentsSelfHostedResourcesUnsupportedRunError>), [ManagedAgentsMCPEgressBlockedRunError](<#ManagedAgentsMCPEgressBlockedRunError>). + +Use the [ManagedAgentsDeploymentRunErrorUnion.AsAny](<#ManagedAgentsDeploymentRunErrorUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentRunErrorUnion struct { + Message string `json:"message"` + // Any of "environment_archived_error", "agent_archived_error", + // "environment_not_found_error", "vault_not_found_error", "vault_archived_error", + // "file_not_found_error", "memory_store_archived_error", "skill_not_found_error", + // "session_resource_not_found_error", "workspace_archived_error", + // "organization_disabled_error", "session_rate_limited_error", + // "session_creation_rejected_error", "unknown_error", + // "self_hosted_resources_unsupported_error", "mcp_egress_blocked_error". + Type string `json:"type"` + JSON struct { + Message respjson.Field + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsAgentArchivedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsAgentArchivedError() (v ManagedAgentsAgentArchivedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsAny() anyManagedAgentsDeploymentRunError +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentRunErrorUnion.AsAny().(type) { +case qoder.ManagedAgentsEnvironmentArchivedRunError: +case qoder.ManagedAgentsAgentArchivedRunError: +case qoder.ManagedAgentsEnvironmentNotFoundRunError: +case qoder.ManagedAgentsVaultNotFoundRunError: +case qoder.ManagedAgentsVaultArchivedRunError: +case qoder.ManagedAgentsFileNotFoundRunError: +case qoder.ManagedAgentsMemoryStoreArchivedRunError: +case qoder.ManagedAgentsSkillNotFoundRunError: +case qoder.ManagedAgentsSessionResourceNotFoundRunError: +case qoder.ManagedAgentsWorkspaceArchivedRunError: +case qoder.ManagedAgentsOrganizationDisabledRunError: +case qoder.ManagedAgentsSessionRateLimitedRunError: +case qoder.ManagedAgentsSessionCreationRejectedRunError: +case qoder.ManagedAgentsUnknownRunError: +case qoder.ManagedAgentsSelfHostedResourcesUnsupportedRunError: +case qoder.ManagedAgentsMCPEgressBlockedRunError: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsEnvironmentArchivedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsEnvironmentArchivedError() (v ManagedAgentsEnvironmentArchivedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsEnvironmentNotFoundError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsEnvironmentNotFoundError() (v ManagedAgentsEnvironmentNotFoundRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsFileNotFoundError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsFileNotFoundError() (v ManagedAgentsFileNotFoundRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsMCPEgressBlockedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsMCPEgressBlockedError() (v ManagedAgentsMCPEgressBlockedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsMemoryStoreArchivedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsMemoryStoreArchivedError() (v ManagedAgentsMemoryStoreArchivedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsOrganizationDisabledError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsOrganizationDisabledError() (v ManagedAgentsOrganizationDisabledRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsSelfHostedResourcesUnsupportedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsSelfHostedResourcesUnsupportedError() (v ManagedAgentsSelfHostedResourcesUnsupportedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsSessionCreationRejectedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsSessionCreationRejectedError() (v ManagedAgentsSessionCreationRejectedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsSessionRateLimitedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsSessionRateLimitedError() (v ManagedAgentsSessionRateLimitedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsSessionResourceNotFoundError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsSessionResourceNotFoundError() (v ManagedAgentsSessionResourceNotFoundRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsSkillNotFoundError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsSkillNotFoundError() (v ManagedAgentsSkillNotFoundRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsUnknownError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsUnknownError() (v ManagedAgentsUnknownRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsVaultArchivedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsVaultArchivedError() (v ManagedAgentsVaultArchivedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsVaultNotFoundError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsVaultNotFoundError() (v ManagedAgentsVaultNotFoundRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [AsWorkspaceArchivedError]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) AsWorkspaceArchivedError() (v ManagedAgentsWorkspaceArchivedRunError) +``` + + + + +### func \(ManagedAgentsDeploymentRunErrorUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentRunErrorUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentRunErrorUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentRunErrorUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentRunType]() + + + +```go +type ManagedAgentsDeploymentRunType string +``` + + + +```go +const ( + ManagedAgentsDeploymentRunTypeDeploymentRun ManagedAgentsDeploymentRunType = "deployment_run" +) +``` + + +## type [ManagedAgentsDeploymentStatus]() + +Lifecycle status of a deployment. + +```go +type ManagedAgentsDeploymentStatus string +``` + + + +```go +const ( + ManagedAgentsDeploymentStatusActive ManagedAgentsDeploymentStatus = "active" + ManagedAgentsDeploymentStatusPaused ManagedAgentsDeploymentStatus = "paused" +) +``` + + +## type [ManagedAgentsDeploymentSystemMessageEvent]() + +Privileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a \`role: "system"\` turn rather than replacing the top\-level system prompt. + +```go +type ManagedAgentsDeploymentSystemMessageEvent struct { + // System content blocks to append. Text-only. + Content []ManagedAgentsSystemContentBlock `json:"content" api:"required"` + // Any of "system.message". + Type ManagedAgentsDeploymentSystemMessageEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Content respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentSystemMessageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsDeploymentSystemMessageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentSystemMessageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentSystemMessageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentSystemMessageEventType]() + + + +```go +type ManagedAgentsDeploymentSystemMessageEventType string +``` + + + +```go +const ( + ManagedAgentsDeploymentSystemMessageEventTypeSystemMessage ManagedAgentsDeploymentSystemMessageEventType = "system.message" +) +``` + + +## type [ManagedAgentsDeploymentType]() + + + +```go +type ManagedAgentsDeploymentType string +``` + + + +```go +const ( + ManagedAgentsDeploymentTypeDeployment ManagedAgentsDeploymentType = "deployment" +) +``` + + +## type [ManagedAgentsDeploymentUserDefineOutcomeEvent]() + +An outcome the agent should work toward. The agent begins work on receipt. + +```go +type ManagedAgentsDeploymentUserDefineOutcomeEvent struct { + // What the agent should produce. This is the task specification. + Description string `json:"description" api:"required"` + // Rubric for grading the quality of an outcome. + Rubric ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion `json:"rubric" api:"required"` + // Any of "user.define_outcome". + Type ManagedAgentsDeploymentUserDefineOutcomeEventType `json:"type" api:"required"` + // Eval→revision cycles before giving up. Default 3, max 20. + MaxIterations int64 `json:"max_iterations" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Description respjson.Field + Rubric respjson.Field + Type respjson.Field + MaxIterations respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentUserDefineOutcomeEvent\) [RawJSON]() + +```go +func (r ManagedAgentsDeploymentUserDefineOutcomeEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentUserDefineOutcomeEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentUserDefineOutcomeEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion]() + +ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion contains all possible properties and values from [ManagedAgentsFileRubric](<#ManagedAgentsFileRubric>), [ManagedAgentsTextRubric](<#ManagedAgentsTextRubric>). + +Use the [ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsAny](<#ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion struct { + // This field is from variant [ManagedAgentsFileRubric]. + FileID string `json:"file_id"` + // Any of "file", "text". + Type string `json:"type"` + // This field is from variant [ManagedAgentsTextRubric]. + Content string `json:"content"` + JSON struct { + FileID respjson.Field + Type respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion) AsAny() anyManagedAgentsDeploymentUserDefineOutcomeEventRubric +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion.AsAny().(type) { +case qoder.ManagedAgentsFileRubric: +case qoder.ManagedAgentsTextRubric: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) [AsFile]() + +```go +func (u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion) AsFile() (v ManagedAgentsFileRubric) +``` + + + + +### func \(ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) [AsText]() + +```go +func (u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion) AsText() (v ManagedAgentsTextRubric) +``` + + + + +### func \(ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentUserDefineOutcomeEventRubricUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentUserDefineOutcomeEventType]() + + + +```go +type ManagedAgentsDeploymentUserDefineOutcomeEventType string +``` + + + +```go +const ( + ManagedAgentsDeploymentUserDefineOutcomeEventTypeUserDefineOutcome ManagedAgentsDeploymentUserDefineOutcomeEventType = "user.define_outcome" +) +``` + + +## type [ManagedAgentsDeploymentUserMessageEvent]() + +A user message sent to the session. + +```go +type ManagedAgentsDeploymentUserMessageEvent struct { + // Array of content blocks for the user message. + Content []ManagedAgentsDeploymentUserMessageEventContentUnion `json:"content" api:"required"` + // Any of "user.message". + Type ManagedAgentsDeploymentUserMessageEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Content respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentUserMessageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsDeploymentUserMessageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentUserMessageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentUserMessageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentUserMessageEventContentUnion]() + +ManagedAgentsDeploymentUserMessageEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>). + +Use the [ManagedAgentsDeploymentUserMessageEventContentUnion.AsAny](<#ManagedAgentsDeploymentUserMessageEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDeploymentUserMessageEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "redacted". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion] + Source ManagedAgentsDeploymentUserMessageEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Title string `json:"title"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) AsAny() anyManagedAgentsDeploymentUserMessageEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDeploymentUserMessageEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsRedactedBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [AsRedacted]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) AsRedacted() (v ManagedAgentsRedactedBlock) +``` + + + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsDeploymentUserMessageEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDeploymentUserMessageEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDeploymentUserMessageEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentUserMessageEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentUserMessageEventContentUnionSource]() + +ManagedAgentsDeploymentUserMessageEventContentUnionSource is an implicit subunion of [ManagedAgentsDeploymentUserMessageEventContentUnion](<#ManagedAgentsDeploymentUserMessageEventContentUnion>). ManagedAgentsDeploymentUserMessageEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsDeploymentUserMessageEventContentUnion](<#ManagedAgentsDeploymentUserMessageEventContentUnion>). + +```go +type ManagedAgentsDeploymentUserMessageEventContentUnionSource struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsDeploymentUserMessageEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDeploymentUserMessageEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDeploymentUserMessageEventType]() + + + +```go +type ManagedAgentsDeploymentUserMessageEventType string +``` + + + +```go +const ( + ManagedAgentsDeploymentUserMessageEventTypeUserMessage ManagedAgentsDeploymentUserMessageEventType = "user.message" +) +``` + + +## type [ManagedAgentsDocumentBlock]() + +Document content, either specified directly as base64 data, as text, or as a reference via a URL. + +```go +type ManagedAgentsDocumentBlock struct { + // Union type for document source variants. + Source ManagedAgentsDocumentBlockSourceUnion `json:"source" api:"required"` + // Any of "document". + Type ManagedAgentsDocumentBlockType `json:"type" api:"required"` + // Additional context about the document for the model. + Context string `json:"context" api:"nullable"` + // The title of the document. + Title string `json:"title" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Source respjson.Field + Type respjson.Field + Context respjson.Field + Title respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDocumentBlock\) [RawJSON]() + +```go +func (r ManagedAgentsDocumentBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsDocumentBlock\) [ToParam]() + +```go +func (r ManagedAgentsDocumentBlock) ToParam() ManagedAgentsDocumentBlockParam +``` + +ToParam converts this ManagedAgentsDocumentBlock to a ManagedAgentsDocumentBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsDocumentBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsDocumentBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDocumentBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDocumentBlockParam]() + +Document content, either specified directly as base64 data, as text, or as a reference via a URL. + +The properties Source, Type are required. + +```go +type ManagedAgentsDocumentBlockParam struct { + // Union type for document source variants. + Source ManagedAgentsDocumentBlockSourceUnionParam `json:"source,omitzero" api:"required"` + // Any of "document". + Type ManagedAgentsDocumentBlockType `json:"type,omitzero" api:"required"` + // Additional context about the document for the model. + Context param.Opt[string] `json:"context,omitzero"` + // The title of the document. + Title param.Opt[string] `json:"title,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsDocumentBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsDocumentBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsDocumentBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDocumentBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDocumentBlockSourceUnion]() + +ManagedAgentsDocumentBlockSourceUnion contains all possible properties and values from [ManagedAgentsBase64DocumentSource](<#ManagedAgentsBase64DocumentSource>), [ManagedAgentsPlainTextDocumentSource](<#ManagedAgentsPlainTextDocumentSource>), [ManagedAgentsURLDocumentSource](<#ManagedAgentsURLDocumentSource>), [ManagedAgentsFileDocumentSource](<#ManagedAgentsFileDocumentSource>). + +Use the [ManagedAgentsDocumentBlockSourceUnion.AsAny](<#ManagedAgentsDocumentBlockSourceUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsDocumentBlockSourceUnion struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + // Any of "base64", "text", "url", "file". + Type string `json:"type"` + // This field is from variant [ManagedAgentsURLDocumentSource]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsFileDocumentSource]. + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [AsAny]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) AsAny() anyManagedAgentsDocumentBlockSource +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsDocumentBlockSourceUnion.AsAny().(type) { +case qoder.ManagedAgentsBase64DocumentSource: +case qoder.ManagedAgentsPlainTextDocumentSource: +case qoder.ManagedAgentsURLDocumentSource: +case qoder.ManagedAgentsFileDocumentSource: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [AsBase64]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) AsBase64() (v ManagedAgentsBase64DocumentSource) +``` + + + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [AsFile]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) AsFile() (v ManagedAgentsFileDocumentSource) +``` + + + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [AsText]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) AsText() (v ManagedAgentsPlainTextDocumentSource) +``` + + + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [AsURL]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) AsURL() (v ManagedAgentsURLDocumentSource) +``` + + + + +### func \(ManagedAgentsDocumentBlockSourceUnion\) [RawJSON]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsDocumentBlockSourceUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsDocumentBlockSourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDocumentBlockSourceUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsDocumentBlockSourceUnionParam struct { + OfBase64 *ManagedAgentsBase64DocumentSourceParam `json:",omitzero,inline"` + OfText *ManagedAgentsPlainTextDocumentSourceParam `json:",omitzero,inline"` + OfURL *ManagedAgentsURLDocumentSourceParam `json:",omitzero,inline"` + OfFile *ManagedAgentsFileDocumentSourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [GetData]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) GetData() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [GetFileID]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [GetMediaType]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) GetMediaType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [GetType]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [GetURL]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsDocumentBlockSourceUnionParam\) [MarshalJSON]() + +```go +func (u ManagedAgentsDocumentBlockSourceUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsDocumentBlockSourceUnionParam\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsDocumentBlockSourceUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsDocumentBlockType]() + + + +```go +type ManagedAgentsDocumentBlockType string +``` + + + +```go +const ( + ManagedAgentsDocumentBlockTypeDocument ManagedAgentsDocumentBlockType = "document" +) +``` + + +## type [ManagedAgentsEditToolConfig]() + +Configuration for the edit tool. + +```go +type ManagedAgentsEditToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Edit `json:"name" default:"edit"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsEditToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Edit `json:"type" default:"edit"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEditToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsEditToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEditToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEditToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEditToolConfigParams]() + +Configuration override for the edit tool. + +The property Name is required. + +```go +type ManagedAgentsEditToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsEditToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "edit". + Type ManagedAgentsEditToolConfigParamsType `json:"type,omitzero"` + // Must be "edit". + // + // This field can be elided, and will marshal its zero value as "edit". + Name constant.Edit `json:"name" default:"edit"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEditToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsEditToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEditToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEditToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEditToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsEditToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsEditToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsEditToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsEditToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsEditToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEditToolConfigParamsType]() + + + +```go +type ManagedAgentsEditToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsEditToolConfigParamsTypeEdit ManagedAgentsEditToolConfigParamsType = "edit" +) +``` + + +## type [ManagedAgentsEditToolConfigPermissionPolicyUnion]() + +ManagedAgentsEditToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsEditToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEditToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsEditToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsEditToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsEditToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsEditToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsEditToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsEditToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsEditToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsEditToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsEditToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEditToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEditToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortHigh]() + +High effort. Favors reasoning depth. + +```go +type ManagedAgentsEffortHigh struct { + // Any of "high". + Type ManagedAgentsEffortHighType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEffortHigh\) [RawJSON]() + +```go +func (r ManagedAgentsEffortHigh) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsEffortHigh\) [ToParam]() + +```go +func (r ManagedAgentsEffortHigh) ToParam() ManagedAgentsEffortHighParam +``` + +ToParam converts this ManagedAgentsEffortHigh to a ManagedAgentsEffortHighParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsEffortHighParam.Overrides\(\) + + +### func \(\*ManagedAgentsEffortHigh\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortHigh) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortHighParam]() + +High effort. Favors reasoning depth. + +The property Type is required. + +```go +type ManagedAgentsEffortHighParam struct { + // Any of "high". + Type ManagedAgentsEffortHighType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEffortHighParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsEffortHighParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEffortHighParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortHighParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortHighType]() + + + +```go +type ManagedAgentsEffortHighType string +``` + + + +```go +const ( + ManagedAgentsEffortHighTypeHigh ManagedAgentsEffortHighType = "high" +) +``` + + +## type [ManagedAgentsEffortLow]() + +Low effort. Favors latency over reasoning depth. + +```go +type ManagedAgentsEffortLow struct { + // Any of "low". + Type ManagedAgentsEffortLowType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEffortLow\) [RawJSON]() + +```go +func (r ManagedAgentsEffortLow) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsEffortLow\) [ToParam]() + +```go +func (r ManagedAgentsEffortLow) ToParam() ManagedAgentsEffortLowParam +``` + +ToParam converts this ManagedAgentsEffortLow to a ManagedAgentsEffortLowParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsEffortLowParam.Overrides\(\) + + +### func \(\*ManagedAgentsEffortLow\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortLow) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortLowParam]() + +Low effort. Favors latency over reasoning depth. + +The property Type is required. + +```go +type ManagedAgentsEffortLowParam struct { + // Any of "low". + Type ManagedAgentsEffortLowType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEffortLowParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsEffortLowParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEffortLowParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortLowParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortLowType]() + + + +```go +type ManagedAgentsEffortLowType string +``` + + + +```go +const ( + ManagedAgentsEffortLowTypeLow ManagedAgentsEffortLowType = "low" +) +``` + + +## type [ManagedAgentsEffortMax]() + +Maximum effort. Favors reasoning depth over latency. + +```go +type ManagedAgentsEffortMax struct { + // Any of "max". + Type ManagedAgentsEffortMaxType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEffortMax\) [RawJSON]() + +```go +func (r ManagedAgentsEffortMax) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsEffortMax\) [ToParam]() + +```go +func (r ManagedAgentsEffortMax) ToParam() ManagedAgentsEffortMaxParam +``` + +ToParam converts this ManagedAgentsEffortMax to a ManagedAgentsEffortMaxParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsEffortMaxParam.Overrides\(\) + + +### func \(\*ManagedAgentsEffortMax\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortMax) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortMaxParam]() + +Maximum effort. Favors reasoning depth over latency. + +The property Type is required. + +```go +type ManagedAgentsEffortMaxParam struct { + // Any of "max". + Type ManagedAgentsEffortMaxType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEffortMaxParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsEffortMaxParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEffortMaxParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortMaxParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortMaxType]() + + + +```go +type ManagedAgentsEffortMaxType string +``` + + + +```go +const ( + ManagedAgentsEffortMaxTypeMax ManagedAgentsEffortMaxType = "max" +) +``` + + +## type [ManagedAgentsEffortMedium]() + +Medium effort. Balances latency and reasoning depth. + +```go +type ManagedAgentsEffortMedium struct { + // Any of "medium". + Type ManagedAgentsEffortMediumType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEffortMedium\) [RawJSON]() + +```go +func (r ManagedAgentsEffortMedium) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsEffortMedium\) [ToParam]() + +```go +func (r ManagedAgentsEffortMedium) ToParam() ManagedAgentsEffortMediumParam +``` + +ToParam converts this ManagedAgentsEffortMedium to a ManagedAgentsEffortMediumParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsEffortMediumParam.Overrides\(\) + + +### func \(\*ManagedAgentsEffortMedium\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortMedium) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortMediumParam]() + +Medium effort. Balances latency and reasoning depth. + +The property Type is required. + +```go +type ManagedAgentsEffortMediumParam struct { + // Any of "medium". + Type ManagedAgentsEffortMediumType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEffortMediumParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsEffortMediumParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEffortMediumParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortMediumParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortMediumType]() + + + +```go +type ManagedAgentsEffortMediumType string +``` + + + +```go +const ( + ManagedAgentsEffortMediumTypeMedium ManagedAgentsEffortMediumType = "medium" +) +``` + + +## type [ManagedAgentsEffortXhigh]() + +Extra\-high effort. Not all models accept this level. + +```go +type ManagedAgentsEffortXhigh struct { + // Any of "xhigh". + Type ManagedAgentsEffortXhighType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEffortXhigh\) [RawJSON]() + +```go +func (r ManagedAgentsEffortXhigh) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsEffortXhigh\) [ToParam]() + +```go +func (r ManagedAgentsEffortXhigh) ToParam() ManagedAgentsEffortXhighParam +``` + +ToParam converts this ManagedAgentsEffortXhigh to a ManagedAgentsEffortXhighParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsEffortXhighParam.Overrides\(\) + + +### func \(\*ManagedAgentsEffortXhigh\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortXhigh) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortXhighParam]() + +Extra\-high effort. Not all models accept this level. + +The property Type is required. + +```go +type ManagedAgentsEffortXhighParam struct { + // Any of "xhigh". + Type ManagedAgentsEffortXhighType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEffortXhighParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsEffortXhighParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEffortXhighParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEffortXhighParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEffortXhighType]() + + + +```go +type ManagedAgentsEffortXhighType string +``` + + + +```go +const ( + ManagedAgentsEffortXhighTypeXhigh ManagedAgentsEffortXhighType = "xhigh" +) +``` + + +## type [ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError]() + +The deployment's environment was archived. + +```go +type ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError struct { + // Any of "environment_archived_error". + Type ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentArchivedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorTypeEnvironmentArchivedError ManagedAgentsEnvironmentArchivedDeploymentPausedReasonErrorType = "environment_archived_error" +) +``` + + +## type [ManagedAgentsEnvironmentArchivedRunError]() + +The deployment's environment was archived. + +```go +type ManagedAgentsEnvironmentArchivedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "environment_archived_error". + Type ManagedAgentsEnvironmentArchivedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentArchivedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsEnvironmentArchivedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentArchivedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentArchivedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentArchivedRunErrorType]() + + + +```go +type ManagedAgentsEnvironmentArchivedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentArchivedRunErrorTypeEnvironmentArchivedError ManagedAgentsEnvironmentArchivedRunErrorType = "environment_archived_error" +) +``` + + +## type [ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError]() + +The deployment's environment no longer exists. + +```go +type ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError struct { + // Any of "environment_not_found_error". + Type ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorTypeEnvironmentNotFoundError ManagedAgentsEnvironmentNotFoundDeploymentPausedReasonErrorType = "environment_not_found_error" +) +``` + + +## type [ManagedAgentsEnvironmentNotFoundRunError]() + +The deployment's environment no longer exists. + +```go +type ManagedAgentsEnvironmentNotFoundRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "environment_not_found_error". + Type ManagedAgentsEnvironmentNotFoundRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentNotFoundRunError\) [RawJSON]() + +```go +func (r ManagedAgentsEnvironmentNotFoundRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentNotFoundRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentNotFoundRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentNotFoundRunErrorType]() + + + +```go +type ManagedAgentsEnvironmentNotFoundRunErrorType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentNotFoundRunErrorTypeEnvironmentNotFoundError ManagedAgentsEnvironmentNotFoundRunErrorType = "environment_not_found_error" +) +``` + + +## type [ManagedAgentsEnvironmentVariableAuthResponse]() + +Environment variable credential details. The secret value is never returned. + +```go +type ManagedAgentsEnvironmentVariableAuthResponse struct { + // Where in the outbound request the secret value is substituted. + InjectionLocation ManagedAgentsInjectionLocationResponse `json:"injection_location" api:"required"` + // Outbound hosts the secret value is substituted on. + Networking ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion `json:"networking" api:"required"` + // Name of the environment variable. + SecretName string `json:"secret_name" api:"required"` + // Any of "environment_variable". + Type ManagedAgentsEnvironmentVariableAuthResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + InjectionLocation respjson.Field + Networking respjson.Field + SecretName respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentVariableAuthResponse\) [RawJSON]() + +```go +func (r ManagedAgentsEnvironmentVariableAuthResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentVariableAuthResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentVariableAuthResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion]() + +ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion contains all possible properties and values from [ManagedAgentsUnrestrictedCredentialNetworkingResponse](<#ManagedAgentsUnrestrictedCredentialNetworkingResponse>), [ManagedAgentsLimitedCredentialNetworkingResponse](<#ManagedAgentsLimitedCredentialNetworkingResponse>). + +Use the [ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsAny](<#ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion struct { + // Any of "unrestricted", "limited". + Type string `json:"type"` + // This field is from variant + // [ManagedAgentsLimitedCredentialNetworkingResponse]. + AllowedHosts []string `json:"allowed_hosts"` + JSON struct { + Type respjson.Field + AllowedHosts respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) [AsAny]() + +```go +func (u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion) AsAny() anyManagedAgentsEnvironmentVariableAuthResponseNetworking +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion.AsAny().(type) { +case qoder.ManagedAgentsUnrestrictedCredentialNetworkingResponse: +case qoder.ManagedAgentsLimitedCredentialNetworkingResponse: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) [AsLimited]() + +```go +func (u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion) AsLimited() (v ManagedAgentsLimitedCredentialNetworkingResponse) +``` + + + + +### func \(ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) [AsUnrestricted]() + +```go +func (u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion) AsUnrestricted() (v ManagedAgentsUnrestrictedCredentialNetworkingResponse) +``` + + + + +### func \(ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) [RawJSON]() + +```go +func (u ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentVariableAuthResponseNetworkingUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentVariableAuthResponseType]() + + + +```go +type ManagedAgentsEnvironmentVariableAuthResponseType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentVariableAuthResponseTypeEnvironmentVariable ManagedAgentsEnvironmentVariableAuthResponseType = "environment_variable" +) +``` + + +## type [ManagedAgentsEnvironmentVariableCreateParams]() + +Parameters for creating an environment variable credential. + +The properties Networking, SecretName, SecretValue, Type are required. + +```go +type ManagedAgentsEnvironmentVariableCreateParams struct { + // Outbound hosts the secret value is substituted on. + Networking ManagedAgentsCredentialNetworkingParamsUnion `json:"networking,omitzero" api:"required"` + // Name of the environment variable. Immutable after create. + SecretName string `json:"secret_name" api:"required"` + // Secret value. Write-only; never returned in responses. + SecretValue string `json:"secret_value" api:"required"` + // Any of "environment_variable". + Type ManagedAgentsEnvironmentVariableCreateParamsType `json:"type,omitzero" api:"required"` + // Where in the outbound request the secret value may be substituted. + InjectionLocation ManagedAgentsInjectionLocationParams `json:"injection_location,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEnvironmentVariableCreateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsEnvironmentVariableCreateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEnvironmentVariableCreateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentVariableCreateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentVariableCreateParamsType]() + + + +```go +type ManagedAgentsEnvironmentVariableCreateParamsType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentVariableCreateParamsTypeEnvironmentVariable ManagedAgentsEnvironmentVariableCreateParamsType = "environment_variable" +) +``` + + +## type [ManagedAgentsEnvironmentVariableUpdateParams]() + +Parameters for updating an environment variable credential. \`secret\_name\` is immutable. + +The property Type is required. + +```go +type ManagedAgentsEnvironmentVariableUpdateParams struct { + // Any of "environment_variable". + Type ManagedAgentsEnvironmentVariableUpdateParamsType `json:"type,omitzero" api:"required"` + // Updated secret value. + SecretValue param.Opt[string] `json:"secret_value,omitzero"` + // Updated injection location. + InjectionLocation ManagedAgentsInjectionLocationUpdateParams `json:"injection_location,omitzero"` + // Updated networking scope. Full replacement. + Networking ManagedAgentsCredentialNetworkingParamsUnion `json:"networking,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsEnvironmentVariableUpdateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsEnvironmentVariableUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsEnvironmentVariableUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsEnvironmentVariableUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsEnvironmentVariableUpdateParamsType]() + + + +```go +type ManagedAgentsEnvironmentVariableUpdateParamsType string +``` + + + +```go +const ( + ManagedAgentsEnvironmentVariableUpdateParamsTypeEnvironmentVariable ManagedAgentsEnvironmentVariableUpdateParamsType = "environment_variable" +) +``` + + +## type [ManagedAgentsErrorDeploymentPausedReason]() + +A scheduled fire recorded a failed run whose error auto\-pauses the deployment. + +```go +type ManagedAgentsErrorDeploymentPausedReason struct { + // The error that triggered an auto-pause. Matches the failed run's `error.type`. + Error ManagedAgentsDeploymentPausedReasonErrorUnion `json:"error" api:"required"` + // Any of "error". + Type ManagedAgentsErrorDeploymentPausedReasonType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Error respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsErrorDeploymentPausedReason\) [RawJSON]() + +```go +func (r ManagedAgentsErrorDeploymentPausedReason) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsErrorDeploymentPausedReason\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsErrorDeploymentPausedReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsErrorDeploymentPausedReasonType]() + + + +```go +type ManagedAgentsErrorDeploymentPausedReasonType string +``` + + + +```go +const ( + ManagedAgentsErrorDeploymentPausedReasonTypeError ManagedAgentsErrorDeploymentPausedReasonType = "error" +) +``` + + +## type [ManagedAgentsEventParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsEventParamsUnion struct { + OfUserMessage *ManagedAgentsUserMessageEventParams `json:",omitzero,inline"` + OfUserInterrupt *ManagedAgentsUserInterruptEventParams `json:",omitzero,inline"` + OfUserToolConfirmation *ManagedAgentsUserToolConfirmationEventParams `json:",omitzero,inline"` + OfUserCustomToolResult *ManagedAgentsUserCustomToolResultEventParams `json:",omitzero,inline"` + OfUserDefineOutcome *ManagedAgentsUserDefineOutcomeEventParams `json:",omitzero,inline"` + OfUserToolResult *ManagedAgentsUserToolResultEventParams `json:",omitzero,inline"` + OfSystemMessage *ManagedAgentsSystemMessageEventParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [ManagedAgentsEventParamsOfSystemMessage]() + +```go +func ManagedAgentsEventParamsOfSystemMessage(content []ManagedAgentsSystemContentBlockParam) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserCustomToolResult]() + +```go +func ManagedAgentsEventParamsOfUserCustomToolResult(customToolUseID string) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserDefineOutcome]() + +```go +func ManagedAgentsEventParamsOfUserDefineOutcome[T ManagedAgentsFileRubricParams | ManagedAgentsTextRubricParams](description string, rubric T, type_ ManagedAgentsUserDefineOutcomeEventParamsType) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserInterrupt]() + +```go +func ManagedAgentsEventParamsOfUserInterrupt(type_ ManagedAgentsUserInterruptEventParamsType) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserMessage]() + +```go +func ManagedAgentsEventParamsOfUserMessage(content []ManagedAgentsUserMessageEventParamsContentUnion) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserToolConfirmation]() + +```go +func ManagedAgentsEventParamsOfUserToolConfirmation(result ManagedAgentsUserToolConfirmationEventParamsResult, toolUseID string, type_ ManagedAgentsUserToolConfirmationEventParamsType) ManagedAgentsEventParamsUnion +``` + + + + +### func [ManagedAgentsEventParamsOfUserToolResult]() + +```go +func ManagedAgentsEventParamsOfUserToolResult(toolUseID string) ManagedAgentsEventParamsUnion +``` + + + + +### func \(ManagedAgentsEventParamsUnion\) [GetContent]() + +```go +func (u ManagedAgentsEventParamsUnion) GetContent() (res managedAgentsEventParamsUnionContent) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsEventParamsUnion\) [GetCustomToolUseID]() + +```go +func (u ManagedAgentsEventParamsUnion) GetCustomToolUseID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetDenyMessage]() + +```go +func (u ManagedAgentsEventParamsUnion) GetDenyMessage() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetDescription]() + +```go +func (u ManagedAgentsEventParamsUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetIsError]() + +```go +func (u ManagedAgentsEventParamsUnion) GetIsError() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetMaxIterations]() + +```go +func (u ManagedAgentsEventParamsUnion) GetMaxIterations() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetResult]() + +```go +func (u ManagedAgentsEventParamsUnion) GetResult() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetRubric]() + +```go +func (u ManagedAgentsEventParamsUnion) GetRubric() *ManagedAgentsUserDefineOutcomeEventParamsRubricUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetSessionThreadID]() + +```go +func (u ManagedAgentsEventParamsUnion) GetSessionThreadID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetToolUseID]() + +```go +func (u ManagedAgentsEventParamsUnion) GetToolUseID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsEventParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsEventParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsEventParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsEventParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsEventParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileDocumentSource]() + +Document referenced by file ID. + +```go +type ManagedAgentsFileDocumentSource struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileDocumentSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FileID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileDocumentSource\) [RawJSON]() + +```go +func (r ManagedAgentsFileDocumentSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsFileDocumentSource\) [ToParam]() + +```go +func (r ManagedAgentsFileDocumentSource) ToParam() ManagedAgentsFileDocumentSourceParam +``` + +ToParam converts this ManagedAgentsFileDocumentSource to a ManagedAgentsFileDocumentSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsFileDocumentSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsFileDocumentSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileDocumentSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileDocumentSourceParam]() + +Document referenced by file ID. + +The properties FileID, Type are required. + +```go +type ManagedAgentsFileDocumentSourceParam struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileDocumentSourceType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsFileDocumentSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsFileDocumentSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsFileDocumentSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileDocumentSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileDocumentSourceType]() + + + +```go +type ManagedAgentsFileDocumentSourceType string +``` + + + +```go +const ( + ManagedAgentsFileDocumentSourceTypeFile ManagedAgentsFileDocumentSourceType = "file" +) +``` + + +## type [ManagedAgentsFileImageSource]() + +Image referenced by file ID. + +```go +type ManagedAgentsFileImageSource struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileImageSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FileID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileImageSource\) [RawJSON]() + +```go +func (r ManagedAgentsFileImageSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsFileImageSource\) [ToParam]() + +```go +func (r ManagedAgentsFileImageSource) ToParam() ManagedAgentsFileImageSourceParam +``` + +ToParam converts this ManagedAgentsFileImageSource to a ManagedAgentsFileImageSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsFileImageSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsFileImageSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileImageSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileImageSourceParam]() + +Image referenced by file ID. + +The properties FileID, Type are required. + +```go +type ManagedAgentsFileImageSourceParam struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileImageSourceType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsFileImageSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsFileImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsFileImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileImageSourceType]() + + + +```go +type ManagedAgentsFileImageSourceType string +``` + + + +```go +const ( + ManagedAgentsFileImageSourceTypeFile ManagedAgentsFileImageSourceType = "file" +) +``` + + +## type [ManagedAgentsFileNotFoundDeploymentPausedReasonError]() + +A file resource referenced by the deployment no longer exists. + +```go +type ManagedAgentsFileNotFoundDeploymentPausedReasonError struct { + // Any of "file_not_found_error". + Type ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileNotFoundDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsFileNotFoundDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsFileNotFoundDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileNotFoundDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsFileNotFoundDeploymentPausedReasonErrorTypeFileNotFoundError ManagedAgentsFileNotFoundDeploymentPausedReasonErrorType = "file_not_found_error" +) +``` + + +## type [ManagedAgentsFileNotFoundRunError]() + +A file resource referenced by the deployment no longer exists. + +```go +type ManagedAgentsFileNotFoundRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "file_not_found_error". + Type ManagedAgentsFileNotFoundRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileNotFoundRunError\) [RawJSON]() + +```go +func (r ManagedAgentsFileNotFoundRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsFileNotFoundRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileNotFoundRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileNotFoundRunErrorType]() + + + +```go +type ManagedAgentsFileNotFoundRunErrorType string +``` + + + +```go +const ( + ManagedAgentsFileNotFoundRunErrorTypeFileNotFoundError ManagedAgentsFileNotFoundRunErrorType = "file_not_found_error" +) +``` + + +## type [ManagedAgentsFileResource]() + + + +```go +type ManagedAgentsFileResource struct { + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + FileID string `json:"file_id" api:"required"` + MountPath string `json:"mount_path" api:"required"` + // Any of "file". + Type ManagedAgentsFileResourceType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + FileID respjson.Field + MountPath respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileResource\) [RawJSON]() + +```go +func (r ManagedAgentsFileResource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsFileResource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileResourceConfig]() + +A file mounted into each session's container. + +```go +type ManagedAgentsFileResourceConfig struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileResourceConfigType `json:"type" api:"required"` + // Mount path in the container. Defaults to `/mnt/session/uploads/`. + MountPath string `json:"mount_path" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FileID respjson.Field + Type respjson.Field + MountPath respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileResourceConfig\) [RawJSON]() + +```go +func (r ManagedAgentsFileResourceConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsFileResourceConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileResourceConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileResourceConfigType]() + + + +```go +type ManagedAgentsFileResourceConfigType string +``` + + + +```go +const ( + ManagedAgentsFileResourceConfigTypeFile ManagedAgentsFileResourceConfigType = "file" +) +``` + + +## type [ManagedAgentsFileResourceParams]() + +Mount a file uploaded via the Files API into the session. + +The properties FileID, Type are required. + +```go +type ManagedAgentsFileResourceParams struct { + // ID of a previously uploaded file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileResourceParamsType `json:"type,omitzero" api:"required"` + // Mount path in the container. Defaults to `/mnt/session/uploads/`. + MountPath param.Opt[string] `json:"mount_path,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsFileResourceParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsFileResourceParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsFileResourceParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileResourceParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileResourceParamsType]() + + + +```go +type ManagedAgentsFileResourceParamsType string +``` + + + +```go +const ( + ManagedAgentsFileResourceParamsTypeFile ManagedAgentsFileResourceParamsType = "file" +) +``` + + +## type [ManagedAgentsFileResourceType]() + + + +```go +type ManagedAgentsFileResourceType string +``` + + + +```go +const ( + ManagedAgentsFileResourceTypeFile ManagedAgentsFileResourceType = "file" +) +``` + + +## type [ManagedAgentsFileRubric]() + +Rubric referenced by a file uploaded via the Files API. + +```go +type ManagedAgentsFileRubric struct { + // ID of the rubric file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileRubricType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + FileID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsFileRubric\) [RawJSON]() + +```go +func (r ManagedAgentsFileRubric) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsFileRubric\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileRubric) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileRubricParams]() + +Rubric referenced by a file uploaded via the Files API. + +The properties FileID, Type are required. + +```go +type ManagedAgentsFileRubricParams struct { + // ID of the rubric file. + FileID string `json:"file_id" api:"required"` + // Any of "file". + Type ManagedAgentsFileRubricParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsFileRubricParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsFileRubricParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsFileRubricParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsFileRubricParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsFileRubricParamsType]() + + + +```go +type ManagedAgentsFileRubricParamsType string +``` + + + +```go +const ( + ManagedAgentsFileRubricParamsTypeFile ManagedAgentsFileRubricParamsType = "file" +) +``` + + +## type [ManagedAgentsFileRubricType]() + + + +```go +type ManagedAgentsFileRubricType string +``` + + + +```go +const ( + ManagedAgentsFileRubricTypeFile ManagedAgentsFileRubricType = "file" +) +``` + + +## type [ManagedAgentsGitHubRepositoryResource]() + + + +```go +type ManagedAgentsGitHubRepositoryResource struct { + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + MountPath string `json:"mount_path" api:"required"` + // Any of "github_repository". + Type ManagedAgentsGitHubRepositoryResourceType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + URL string `json:"url" api:"required"` + Checkout ManagedAgentsGitHubRepositoryResourceCheckoutUnion `json:"checkout" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + MountPath respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + URL respjson.Field + Checkout respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResource\) [RawJSON]() + +```go +func (r ManagedAgentsGitHubRepositoryResource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGitHubRepositoryResource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGitHubRepositoryResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceCheckoutUnion]() + +ManagedAgentsGitHubRepositoryResourceCheckoutUnion contains all possible properties and values from [ManagedAgentsBranchCheckout](<#ManagedAgentsBranchCheckout>), [ManagedAgentsCommitCheckout](<#ManagedAgentsCommitCheckout>). + +Use the [ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsAny](<#ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsGitHubRepositoryResourceCheckoutUnion struct { + // This field is from variant [ManagedAgentsBranchCheckout]. + Name string `json:"name"` + // Any of "branch", "commit". + Type string `json:"type"` + // This field is from variant [ManagedAgentsCommitCheckout]. + Sha string `json:"sha"` + JSON struct { + Name respjson.Field + Type respjson.Field + Sha respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) [AsAny]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceCheckoutUnion) AsAny() anyManagedAgentsGitHubRepositoryResourceCheckout +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsGitHubRepositoryResourceCheckoutUnion.AsAny().(type) { +case qoder.ManagedAgentsBranchCheckout: +case qoder.ManagedAgentsCommitCheckout: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) [AsBranch]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceCheckoutUnion) AsBranch() (v ManagedAgentsBranchCheckout) +``` + + + + +### func \(ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) [AsCommit]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceCheckoutUnion) AsCommit() (v ManagedAgentsCommitCheckout) +``` + + + + +### func \(ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) [RawJSON]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceCheckoutUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGitHubRepositoryResourceCheckoutUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGitHubRepositoryResourceCheckoutUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceConfig]() + +A GitHub repository mounted into each session's container. The authorization token is write\-only and never returned. + +```go +type ManagedAgentsGitHubRepositoryResourceConfig struct { + // Any of "github_repository". + Type ManagedAgentsGitHubRepositoryResourceConfigType `json:"type" api:"required"` + // Github URL of the repository + URL string `json:"url" api:"required"` + // Branch or commit to check out. Defaults to the repository's default branch. + Checkout ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion `json:"checkout" api:"nullable"` + // Mount path in the container. Defaults to `/workspace/`. + MountPath string `json:"mount_path" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + URL respjson.Field + Checkout respjson.Field + MountPath respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceConfig\) [RawJSON]() + +```go +func (r ManagedAgentsGitHubRepositoryResourceConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGitHubRepositoryResourceConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGitHubRepositoryResourceConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion]() + +ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion contains all possible properties and values from [ManagedAgentsBranchCheckout](<#ManagedAgentsBranchCheckout>), [ManagedAgentsCommitCheckout](<#ManagedAgentsCommitCheckout>). + +Use the [ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsAny](<#ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion struct { + // This field is from variant [ManagedAgentsBranchCheckout]. + Name string `json:"name"` + // Any of "branch", "commit". + Type string `json:"type"` + // This field is from variant [ManagedAgentsCommitCheckout]. + Sha string `json:"sha"` + JSON struct { + Name respjson.Field + Type respjson.Field + Sha respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) [AsAny]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion) AsAny() anyManagedAgentsGitHubRepositoryResourceConfigCheckout +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion.AsAny().(type) { +case qoder.ManagedAgentsBranchCheckout: +case qoder.ManagedAgentsCommitCheckout: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) [AsBranch]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion) AsBranch() (v ManagedAgentsBranchCheckout) +``` + + + + +### func \(ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) [AsCommit]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion) AsCommit() (v ManagedAgentsCommitCheckout) +``` + + + + +### func \(ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) [RawJSON]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceConfigType]() + + + +```go +type ManagedAgentsGitHubRepositoryResourceConfigType string +``` + + + +```go +const ( + ManagedAgentsGitHubRepositoryResourceConfigTypeGitHubRepository ManagedAgentsGitHubRepositoryResourceConfigType = "github_repository" +) +``` + + +## type [ManagedAgentsGitHubRepositoryResourceParams]() + +Mount a GitHub repository into the session's container. + +The properties AuthorizationToken, Type, URL are required. + +```go +type ManagedAgentsGitHubRepositoryResourceParams struct { + // GitHub authorization token used to clone the repository. + AuthorizationToken string `json:"authorization_token" api:"required"` + // Any of "github_repository". + Type ManagedAgentsGitHubRepositoryResourceParamsType `json:"type,omitzero" api:"required"` + // Github URL of the repository + URL string `json:"url" api:"required"` + // Mount path in the container. Defaults to `/workspace/`. + MountPath param.Opt[string] `json:"mount_path,omitzero"` + // Branch or commit to check out. Defaults to the repository's default branch. + Checkout ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion `json:"checkout,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsGitHubRepositoryResourceParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsGitHubRepositoryResourceParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGitHubRepositoryResourceParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion struct { + OfBranch *ManagedAgentsBranchCheckoutParam `json:",omitzero,inline"` + OfCommit *ManagedAgentsCommitCheckoutParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) [GetName]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) [GetSha]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion) GetSha() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) [GetType]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGitHubRepositoryResourceParamsType]() + + + +```go +type ManagedAgentsGitHubRepositoryResourceParamsType string +``` + + + +```go +const ( + ManagedAgentsGitHubRepositoryResourceParamsTypeGitHubRepository ManagedAgentsGitHubRepositoryResourceParamsType = "github_repository" +) +``` + + +## type [ManagedAgentsGitHubRepositoryResourceType]() + + + +```go +type ManagedAgentsGitHubRepositoryResourceType string +``` + + + +```go +const ( + ManagedAgentsGitHubRepositoryResourceTypeGitHubRepository ManagedAgentsGitHubRepositoryResourceType = "github_repository" +) +``` + + +## type [ManagedAgentsGlobToolConfig]() + +Configuration for the glob tool. + +```go +type ManagedAgentsGlobToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Glob `json:"name" default:"glob"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsGlobToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Glob `json:"type" default:"glob"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGlobToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsGlobToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGlobToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGlobToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGlobToolConfigParams]() + +Configuration override for the glob tool. + +The property Name is required. + +```go +type ManagedAgentsGlobToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "glob". + Type ManagedAgentsGlobToolConfigParamsType `json:"type,omitzero"` + // Must be "glob". + // + // This field can be elided, and will marshal its zero value as "glob". + Name constant.Glob `json:"name" default:"glob"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGlobToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsGlobToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsGlobToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGlobToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsGlobToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGlobToolConfigParamsType]() + + + +```go +type ManagedAgentsGlobToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsGlobToolConfigParamsTypeGlob ManagedAgentsGlobToolConfigParamsType = "glob" +) +``` + + +## type [ManagedAgentsGlobToolConfigPermissionPolicyUnion]() + +ManagedAgentsGlobToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsGlobToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGlobToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsGlobToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsGlobToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsGlobToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsGlobToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsGlobToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsGlobToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsGlobToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsGlobToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsGlobToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGlobToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGlobToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGrepToolConfig]() + +Configuration for the grep tool. + +```go +type ManagedAgentsGrepToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Grep `json:"name" default:"grep"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsGrepToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Grep `json:"type" default:"grep"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGrepToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsGrepToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGrepToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGrepToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGrepToolConfigParams]() + +Configuration override for the grep tool. + +The property Name is required. + +```go +type ManagedAgentsGrepToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "grep". + Type ManagedAgentsGrepToolConfigParamsType `json:"type,omitzero"` + // Must be "grep". + // + // This field can be elided, and will marshal its zero value as "grep". + Name constant.Grep `json:"name" default:"grep"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGrepToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsGrepToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsGrepToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGrepToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsGrepToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsGrepToolConfigParamsType]() + + + +```go +type ManagedAgentsGrepToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsGrepToolConfigParamsTypeGrep ManagedAgentsGrepToolConfigParamsType = "grep" +) +``` + + +## type [ManagedAgentsGrepToolConfigPermissionPolicyUnion]() + +ManagedAgentsGrepToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsGrepToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsGrepToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsGrepToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsGrepToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsGrepToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsGrepToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsGrepToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsGrepToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsGrepToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsGrepToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsGrepToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsGrepToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsGrepToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsImageBlock]() + +Image content specified directly as base64 data or as a reference via a URL. + +```go +type ManagedAgentsImageBlock struct { + // Union type for image source variants. + Source ManagedAgentsImageBlockSourceUnion `json:"source" api:"required"` + // Any of "image". + Type ManagedAgentsImageBlockType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Source respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsImageBlock\) [RawJSON]() + +```go +func (r ManagedAgentsImageBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsImageBlock\) [ToParam]() + +```go +func (r ManagedAgentsImageBlock) ToParam() ManagedAgentsImageBlockParam +``` + +ToParam converts this ManagedAgentsImageBlock to a ManagedAgentsImageBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsImageBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsImageBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsImageBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsImageBlockParam]() + +Image content specified directly as base64 data or as a reference via a URL. + +The properties Source, Type are required. + +```go +type ManagedAgentsImageBlockParam struct { + // Union type for image source variants. + Source ManagedAgentsImageBlockSourceUnionParam `json:"source,omitzero" api:"required"` + // Any of "image". + Type ManagedAgentsImageBlockType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsImageBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsImageBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsImageBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsImageBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsImageBlockSourceUnion]() + +ManagedAgentsImageBlockSourceUnion contains all possible properties and values from [ManagedAgentsBase64ImageSource](<#ManagedAgentsBase64ImageSource>), [ManagedAgentsURLImageSource](<#ManagedAgentsURLImageSource>), [ManagedAgentsFileImageSource](<#ManagedAgentsFileImageSource>). + +Use the [ManagedAgentsImageBlockSourceUnion.AsAny](<#ManagedAgentsImageBlockSourceUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsImageBlockSourceUnion struct { + // This field is from variant [ManagedAgentsBase64ImageSource]. + Data string `json:"data"` + // This field is from variant [ManagedAgentsBase64ImageSource]. + MediaType string `json:"media_type"` + // Any of "base64", "url", "file". + Type string `json:"type"` + // This field is from variant [ManagedAgentsURLImageSource]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsFileImageSource]. + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsImageBlockSourceUnion\) [AsAny]() + +```go +func (u ManagedAgentsImageBlockSourceUnion) AsAny() anyManagedAgentsImageBlockSource +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsImageBlockSourceUnion.AsAny().(type) { +case qoder.ManagedAgentsBase64ImageSource: +case qoder.ManagedAgentsURLImageSource: +case qoder.ManagedAgentsFileImageSource: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsImageBlockSourceUnion\) [AsBase64]() + +```go +func (u ManagedAgentsImageBlockSourceUnion) AsBase64() (v ManagedAgentsBase64ImageSource) +``` + + + + +### func \(ManagedAgentsImageBlockSourceUnion\) [AsFile]() + +```go +func (u ManagedAgentsImageBlockSourceUnion) AsFile() (v ManagedAgentsFileImageSource) +``` + + + + +### func \(ManagedAgentsImageBlockSourceUnion\) [AsURL]() + +```go +func (u ManagedAgentsImageBlockSourceUnion) AsURL() (v ManagedAgentsURLImageSource) +``` + + + + +### func \(ManagedAgentsImageBlockSourceUnion\) [RawJSON]() + +```go +func (u ManagedAgentsImageBlockSourceUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsImageBlockSourceUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsImageBlockSourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsImageBlockSourceUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsImageBlockSourceUnionParam struct { + OfBase64 *ManagedAgentsBase64ImageSourceParam `json:",omitzero,inline"` + OfURL *ManagedAgentsURLImageSourceParam `json:",omitzero,inline"` + OfFile *ManagedAgentsFileImageSourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [GetData]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) GetData() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [GetFileID]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [GetMediaType]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) GetMediaType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [GetType]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [GetURL]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsImageBlockSourceUnionParam\) [MarshalJSON]() + +```go +func (u ManagedAgentsImageBlockSourceUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsImageBlockSourceUnionParam\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsImageBlockSourceUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsImageBlockType]() + + + +```go +type ManagedAgentsImageBlockType string +``` + + + +```go +const ( + ManagedAgentsImageBlockTypeImage ManagedAgentsImageBlockType = "image" +) +``` + + +## type [ManagedAgentsInjectionLocationParams]() + +Where in the outbound request the secret value may be substituted. + +```go +type ManagedAgentsInjectionLocationParams struct { + // Substitute when the placeholder appears in the request body. + Body param.Opt[bool] `json:"body,omitzero"` + // Substitute when the placeholder appears in a request header value. + Header param.Opt[bool] `json:"header,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsInjectionLocationParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsInjectionLocationParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsInjectionLocationParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsInjectionLocationParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsInjectionLocationResponse]() + +Where in the outbound request the secret value is substituted. + +```go +type ManagedAgentsInjectionLocationResponse struct { + // Whether the placeholder is substituted in the request body. + Body bool `json:"body" api:"required"` + // Whether the placeholder is substituted in request header values. + Header bool `json:"header" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Body respjson.Field + Header respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsInjectionLocationResponse\) [RawJSON]() + +```go +func (r ManagedAgentsInjectionLocationResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsInjectionLocationResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsInjectionLocationResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsInjectionLocationUpdateParams]() + +Updated injection location. + +```go +type ManagedAgentsInjectionLocationUpdateParams struct { + // Substitute when the placeholder appears in the request body. + Body param.Opt[bool] `json:"body,omitzero"` + // Substitute when the placeholder appears in a request header value. + Header param.Opt[bool] `json:"header,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsInjectionLocationUpdateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsInjectionLocationUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsInjectionLocationUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsInjectionLocationUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsLimitedCredentialNetworkingParams]() + +Substitute the secret only on requests to the listed hosts. + +The properties AllowedHosts, Type are required. + +```go +type ManagedAgentsLimitedCredentialNetworkingParams struct { + // Hostnames on which the secret will be substituted. Each entry is a bare hostname + // (`api.example.com`), an IPv4 address (`192.0.2.1`), or a `*.`-prefixed wildcard + // (`*.example.com`). URLs, ports, paths, and IPv6 addresses are not accepted. At + // most 16 entries. + AllowedHosts []string `json:"allowed_hosts,omitzero" api:"required"` + // Any of "limited". + Type ManagedAgentsLimitedCredentialNetworkingParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsLimitedCredentialNetworkingParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsLimitedCredentialNetworkingParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsLimitedCredentialNetworkingParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsLimitedCredentialNetworkingParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsLimitedCredentialNetworkingParamsType]() + + + +```go +type ManagedAgentsLimitedCredentialNetworkingParamsType string +``` + + + +```go +const ( + ManagedAgentsLimitedCredentialNetworkingParamsTypeLimited ManagedAgentsLimitedCredentialNetworkingParamsType = "limited" +) +``` + + +## type [ManagedAgentsLimitedCredentialNetworkingResponse]() + +The secret is substituted only on requests to the listed hosts. + +```go +type ManagedAgentsLimitedCredentialNetworkingResponse struct { + // Hostnames on which the secret will be substituted. An entry matches the request + // host exactly; a `*.`-prefixed entry matches any subdomain of the named domain + // but not the domain itself. + AllowedHosts []string `json:"allowed_hosts" api:"required"` + // Any of "limited". + Type ManagedAgentsLimitedCredentialNetworkingResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + AllowedHosts respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsLimitedCredentialNetworkingResponse\) [RawJSON]() + +```go +func (r ManagedAgentsLimitedCredentialNetworkingResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsLimitedCredentialNetworkingResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsLimitedCredentialNetworkingResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsLimitedCredentialNetworkingResponseType]() + + + +```go +type ManagedAgentsLimitedCredentialNetworkingResponseType string +``` + + + +```go +const ( + ManagedAgentsLimitedCredentialNetworkingResponseTypeLimited ManagedAgentsLimitedCredentialNetworkingResponseType = "limited" +) +``` + + +## type [ManagedAgentsMCPAuthenticationFailedError]() + +Authentication to an MCP server failed. + +```go +type ManagedAgentsMCPAuthenticationFailedError struct { + // Name of the MCP server that failed authentication. + MCPServerName string `json:"mcp_server_name" api:"required"` + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "mcp_authentication_failed_error". + Type ManagedAgentsMCPAuthenticationFailedErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MCPServerName respjson.Field + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPAuthenticationFailedError\) [RawJSON]() + +```go +func (r ManagedAgentsMCPAuthenticationFailedError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPAuthenticationFailedError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPAuthenticationFailedError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion]() + +ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsAny](<#ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) AsAny() anyManagedAgentsMCPAuthenticationFailedErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPAuthenticationFailedErrorType]() + + + +```go +type ManagedAgentsMCPAuthenticationFailedErrorType string +``` + + + +```go +const ( + ManagedAgentsMCPAuthenticationFailedErrorTypeMCPAuthenticationFailedError ManagedAgentsMCPAuthenticationFailedErrorType = "mcp_authentication_failed_error" +) +``` + + +## type [ManagedAgentsMCPConnectionFailedError]() + +Failed to connect to an MCP server. + +```go +type ManagedAgentsMCPConnectionFailedError struct { + // Name of the MCP server that failed to connect. + MCPServerName string `json:"mcp_server_name" api:"required"` + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "mcp_connection_failed_error". + Type ManagedAgentsMCPConnectionFailedErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MCPServerName respjson.Field + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPConnectionFailedError\) [RawJSON]() + +```go +func (r ManagedAgentsMCPConnectionFailedError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPConnectionFailedError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPConnectionFailedError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion]() + +ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsAny](<#ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) AsAny() anyManagedAgentsMCPConnectionFailedErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPConnectionFailedErrorType]() + + + +```go +type ManagedAgentsMCPConnectionFailedErrorType string +``` + + + +```go +const ( + ManagedAgentsMCPConnectionFailedErrorTypeMCPConnectionFailedError ManagedAgentsMCPConnectionFailedErrorType = "mcp_connection_failed_error" +) +``` + + +## type [ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError]() + +An MCP server host used by the deployment's agent is blocked by the environment's network policy. + +```go +type ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError struct { + // Any of "mcp_egress_blocked_error". + Type ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPEgressBlockedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorTypeMCPEgressBlockedError ManagedAgentsMCPEgressBlockedDeploymentPausedReasonErrorType = "mcp_egress_blocked_error" +) +``` + + +## type [ManagedAgentsMCPEgressBlockedRunError]() + +An MCP server host used by the deployment's agent is blocked by the environment's network policy. + +```go +type ManagedAgentsMCPEgressBlockedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "mcp_egress_blocked_error". + Type ManagedAgentsMCPEgressBlockedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPEgressBlockedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsMCPEgressBlockedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPEgressBlockedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPEgressBlockedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPEgressBlockedRunErrorType]() + + + +```go +type ManagedAgentsMCPEgressBlockedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsMCPEgressBlockedRunErrorTypeMCPEgressBlockedError ManagedAgentsMCPEgressBlockedRunErrorType = "mcp_egress_blocked_error" +) +``` + + +## type [ManagedAgentsMCPOAuthAuthResponse]() + +OAuth credential details for an MCP server. + +```go +type ManagedAgentsMCPOAuthAuthResponse struct { + // URL of the MCP server this credential authenticates against. + MCPServerURL string `json:"mcp_server_url" api:"required"` + // Any of "mcp_oauth". + Type ManagedAgentsMCPOAuthAuthResponseType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + ExpiresAt time.Time `json:"expires_at" api:"nullable" format:"date-time"` + // OAuth refresh token configuration returned in credential responses. + Refresh ManagedAgentsMCPOAuthRefreshResponse `json:"refresh" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MCPServerURL respjson.Field + Type respjson.Field + ExpiresAt respjson.Field + Refresh respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPOAuthAuthResponse\) [RawJSON]() + +```go +func (r ManagedAgentsMCPOAuthAuthResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPOAuthAuthResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthAuthResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthAuthResponseType]() + + + +```go +type ManagedAgentsMCPOAuthAuthResponseType string +``` + + + +```go +const ( + ManagedAgentsMCPOAuthAuthResponseTypeMCPOAuth ManagedAgentsMCPOAuthAuthResponseType = "mcp_oauth" +) +``` + + +## type [ManagedAgentsMCPOAuthCreateParams]() + +Parameters for creating an MCP OAuth credential. + +The properties AccessToken, MCPServerURL, Type are required. + +```go +type ManagedAgentsMCPOAuthCreateParams struct { + // OAuth access token. + AccessToken string `json:"access_token" api:"required"` + // URL of the MCP server this credential authenticates against. + MCPServerURL string `json:"mcp_server_url" api:"required"` + // Any of "mcp_oauth". + Type ManagedAgentsMCPOAuthCreateParamsType `json:"type,omitzero" api:"required"` + // A timestamp in RFC 3339 format + ExpiresAt param.Opt[time.Time] `json:"expires_at,omitzero" format:"date-time"` + // OAuth refresh token parameters for creating a credential with refresh support. + Refresh ManagedAgentsMCPOAuthRefreshParams `json:"refresh,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthCreateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPOAuthCreateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthCreateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthCreateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthCreateParamsType]() + + + +```go +type ManagedAgentsMCPOAuthCreateParamsType string +``` + + + +```go +const ( + ManagedAgentsMCPOAuthCreateParamsTypeMCPOAuth ManagedAgentsMCPOAuthCreateParamsType = "mcp_oauth" +) +``` + + +## type [ManagedAgentsMCPOAuthRefreshParams]() + +OAuth refresh token parameters for creating a credential with refresh support. + +The properties ClientID, RefreshToken, TokenEndpoint, TokenEndpointAuth are required. + +```go +type ManagedAgentsMCPOAuthRefreshParams struct { + // OAuth client ID. + ClientID string `json:"client_id" api:"required"` + // OAuth refresh token. + RefreshToken string `json:"refresh_token" api:"required"` + // Token endpoint URL used to refresh the access token. + TokenEndpoint string `json:"token_endpoint" api:"required"` + // Token endpoint requires no client authentication. + TokenEndpointAuth ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion `json:"token_endpoint_auth,omitzero" api:"required"` + // OAuth resource indicator. + Resource param.Opt[string] `json:"resource,omitzero"` + // OAuth scope for the refresh request. + Scope param.Opt[string] `json:"scope,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPOAuthRefreshParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthRefreshParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthRefreshParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion struct { + OfNone *ManagedAgentsTokenEndpointAuthNoneParam `json:",omitzero,inline"` + OfClientSecretBasic *ManagedAgentsTokenEndpointAuthBasicParam `json:",omitzero,inline"` + OfClientSecretPost *ManagedAgentsTokenEndpointAuthPostParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) [GetClientSecret]() + +```go +func (u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion) GetClientSecret() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) [GetType]() + +```go +func (u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsMCPOAuthRefreshParamsTokenEndpointAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthRefreshResponse]() + +OAuth refresh token configuration returned in credential responses. + +```go +type ManagedAgentsMCPOAuthRefreshResponse struct { + // OAuth client ID. + ClientID string `json:"client_id" api:"required"` + // Token endpoint URL used to refresh the access token. + TokenEndpoint string `json:"token_endpoint" api:"required"` + // Token endpoint requires no client authentication. + TokenEndpointAuth ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion `json:"token_endpoint_auth" api:"required"` + // OAuth resource indicator. + Resource string `json:"resource" api:"nullable"` + // OAuth scope for the refresh request. + Scope string `json:"scope" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ClientID respjson.Field + TokenEndpoint respjson.Field + TokenEndpointAuth respjson.Field + Resource respjson.Field + Scope respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshResponse\) [RawJSON]() + +```go +func (r ManagedAgentsMCPOAuthRefreshResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPOAuthRefreshResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthRefreshResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion]() + +ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion contains all possible properties and values from [ManagedAgentsTokenEndpointAuthNoneResponse](<#ManagedAgentsTokenEndpointAuthNoneResponse>), [ManagedAgentsTokenEndpointAuthBasicResponse](<#ManagedAgentsTokenEndpointAuthBasicResponse>), [ManagedAgentsTokenEndpointAuthPostResponse](<#ManagedAgentsTokenEndpointAuthPostResponse>). + +Use the [ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsAny](<#ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion struct { + // Any of "none", "client_secret_basic", "client_secret_post". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [AsAny]() + +```go +func (u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) AsAny() anyManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuth +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion.AsAny().(type) { +case qoder.ManagedAgentsTokenEndpointAuthNoneResponse: +case qoder.ManagedAgentsTokenEndpointAuthBasicResponse: +case qoder.ManagedAgentsTokenEndpointAuthPostResponse: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [AsClientSecretBasic]() + +```go +func (u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) AsClientSecretBasic() (v ManagedAgentsTokenEndpointAuthBasicResponse) +``` + + + + +### func \(ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [AsClientSecretPost]() + +```go +func (u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) AsClientSecretPost() (v ManagedAgentsTokenEndpointAuthPostResponse) +``` + + + + +### func \(ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [AsNone]() + +```go +func (u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) AsNone() (v ManagedAgentsTokenEndpointAuthNoneResponse) +``` + + + + +### func \(ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthRefreshResponseTokenEndpointAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthRefreshUpdateParams]() + +Parameters for updating OAuth refresh token configuration. + +```go +type ManagedAgentsMCPOAuthRefreshUpdateParams struct { + // Updated OAuth refresh token. + RefreshToken param.Opt[string] `json:"refresh_token,omitzero"` + // Updated OAuth scope for the refresh request. + Scope param.Opt[string] `json:"scope,omitzero"` + // Updated HTTP Basic authentication parameters for the token endpoint. + TokenEndpointAuth ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion `json:"token_endpoint_auth,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshUpdateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPOAuthRefreshUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthRefreshUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthRefreshUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion struct { + OfClientSecretBasic *ManagedAgentsTokenEndpointAuthBasicUpdateParam `json:",omitzero,inline"` + OfClientSecretPost *ManagedAgentsTokenEndpointAuthPostUpdateParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) [GetClientSecret]() + +```go +func (u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion) GetClientSecret() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) [GetType]() + +```go +func (u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsMCPOAuthRefreshUpdateParamsTokenEndpointAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthUpdateParams]() + +Parameters for updating an MCP OAuth credential. The \`mcp\_server\_url\` is immutable. + +The property Type is required. + +```go +type ManagedAgentsMCPOAuthUpdateParams struct { + // Any of "mcp_oauth". + Type ManagedAgentsMCPOAuthUpdateParamsType `json:"type,omitzero" api:"required"` + // Updated OAuth access token. + AccessToken param.Opt[string] `json:"access_token,omitzero"` + // A timestamp in RFC 3339 format + ExpiresAt param.Opt[time.Time] `json:"expires_at,omitzero" format:"date-time"` + // Parameters for updating OAuth refresh token configuration. + Refresh ManagedAgentsMCPOAuthRefreshUpdateParams `json:"refresh,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPOAuthUpdateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPOAuthUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPOAuthUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPOAuthUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPOAuthUpdateParamsType]() + + + +```go +type ManagedAgentsMCPOAuthUpdateParamsType string +``` + + + +```go +const ( + ManagedAgentsMCPOAuthUpdateParamsTypeMCPOAuth ManagedAgentsMCPOAuthUpdateParamsType = "mcp_oauth" +) +``` + + +## type [ManagedAgentsMCPProbe]() + +The failing step of an MCP validation probe. + +```go +type ManagedAgentsMCPProbe struct { + // An HTTP response captured during a credential validation probe. + HTTPResponse ManagedAgentsRefreshHTTPResponse `json:"http_response" api:"required"` + // The MCP method that failed (for example `initialize` or `tools/list`). + Method string `json:"method" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + HTTPResponse respjson.Field + Method respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPProbe\) [RawJSON]() + +```go +func (r ManagedAgentsMCPProbe) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPProbe\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPProbe) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPServerURLDefinition]() + +URL\-based MCP server connection as returned in API responses. + +```go +type ManagedAgentsMCPServerURLDefinition struct { + Name string `json:"name" api:"required"` + // Any of "url". + Type ManagedAgentsMCPServerURLDefinitionType `json:"type" api:"required"` + URL string `json:"url" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Name respjson.Field + Type respjson.Field + URL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPServerURLDefinition\) [RawJSON]() + +```go +func (r ManagedAgentsMCPServerURLDefinition) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPServerURLDefinition\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPServerURLDefinition) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPServerURLDefinitionType]() + + + +```go +type ManagedAgentsMCPServerURLDefinitionType string +``` + + + +```go +const ( + ManagedAgentsMCPServerURLDefinitionTypeURL ManagedAgentsMCPServerURLDefinitionType = "url" +) +``` + + +## type [ManagedAgentsMCPToolConfig]() + +Resolved configuration for a specific MCP tool. + +```go +type ManagedAgentsMCPToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name string `json:"name" api:"required"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsMCPToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsMCPToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolConfigParams]() + +Configuration override for a specific MCP tool. + +The property Name is required. + +```go +type ManagedAgentsMCPToolConfigParams struct { + // Name of the MCP tool to configure. 1-128 characters. + Name string `json:"name" api:"required"` + // Whether this tool is enabled. Overrides the `default_config` setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsMCPToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolConfigPermissionPolicyUnion]() + +ManagedAgentsMCPToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMCPToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsMCPToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsMCPToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsMCPToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsMCPToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsMCPToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsMCPToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMCPToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMCPToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMCPToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolset]() + + + +```go +type ManagedAgentsMCPToolset struct { + Configs []ManagedAgentsMCPToolConfig `json:"configs" api:"required"` + // Resolved default configuration for all tools from an MCP server. + DefaultConfig ManagedAgentsMCPToolsetDefaultConfig `json:"default_config" api:"required"` + MCPServerName string `json:"mcp_server_name" api:"required"` + // Any of "mcp_toolset". + Type ManagedAgentsMCPToolsetType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Configs respjson.Field + DefaultConfig respjson.Field + MCPServerName respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPToolset\) [RawJSON]() + +```go +func (r ManagedAgentsMCPToolset) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPToolset\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolset) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetDefaultConfig]() + +Resolved default configuration for all tools from an MCP server. + +```go +type ManagedAgentsMCPToolsetDefaultConfig struct { + Enabled bool `json:"enabled" api:"required"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPToolsetDefaultConfig\) [RawJSON]() + +```go +func (r ManagedAgentsMCPToolsetDefaultConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPToolsetDefaultConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolsetDefaultConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetDefaultConfigParams]() + +Default configuration for all tools from an MCP server. + +```go +type ManagedAgentsMCPToolsetDefaultConfigParams struct { + // Whether tools are enabled by default. Defaults to true if not specified. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPToolsetDefaultConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPToolsetDefaultConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPToolsetDefaultConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolsetDefaultConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsMCPToolsetDefaultConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion]() + +ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion) AsAny() anyManagedAgentsMCPToolsetDefaultConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetParams]() + +Configuration for tools from an MCP server defined in \`mcp\_servers\`. + +The properties MCPServerName, Type are required. + +```go +type ManagedAgentsMCPToolsetParams struct { + // Name of the MCP server. Must match a server name from the mcp_servers array. + // 1-255 characters. + MCPServerName string `json:"mcp_server_name" api:"required"` + // Any of "mcp_toolset". + Type ManagedAgentsMCPToolsetParamsType `json:"type,omitzero" api:"required"` + // Per-tool configuration overrides. + Configs []ManagedAgentsMCPToolConfigParams `json:"configs,omitzero"` + // Default configuration for all tools from an MCP server. + DefaultConfig ManagedAgentsMCPToolsetDefaultConfigParams `json:"default_config,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMCPToolsetParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMCPToolsetParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMCPToolsetParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMCPToolsetParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMCPToolsetParamsType]() + + + +```go +type ManagedAgentsMCPToolsetParamsType string +``` + + + +```go +const ( + ManagedAgentsMCPToolsetParamsTypeMCPToolset ManagedAgentsMCPToolsetParamsType = "mcp_toolset" +) +``` + + +## type [ManagedAgentsMCPToolsetType]() + + + +```go +type ManagedAgentsMCPToolsetType string +``` + + + +```go +const ( + ManagedAgentsMCPToolsetTypeMCPToolset ManagedAgentsMCPToolsetType = "mcp_toolset" +) +``` + + +## type [ManagedAgentsManualDeploymentPausedReason]() + +The caller invoked the pause endpoint on the deployment. + +```go +type ManagedAgentsManualDeploymentPausedReason struct { + // Any of "manual". + Type ManagedAgentsManualDeploymentPausedReasonType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsManualDeploymentPausedReason\) [RawJSON]() + +```go +func (r ManagedAgentsManualDeploymentPausedReason) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsManualDeploymentPausedReason\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsManualDeploymentPausedReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsManualDeploymentPausedReasonType]() + + + +```go +type ManagedAgentsManualDeploymentPausedReasonType string +``` + + + +```go +const ( + ManagedAgentsManualDeploymentPausedReasonTypeManual ManagedAgentsManualDeploymentPausedReasonType = "manual" +) +``` + + +## type [ManagedAgentsManualTriggerContext]() + +The run was started manually by creating a session directly against the deployment. + +```go +type ManagedAgentsManualTriggerContext struct { + // Any of "manual". + Type ManagedAgentsManualTriggerContextType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsManualTriggerContext\) [RawJSON]() + +```go +func (r ManagedAgentsManualTriggerContext) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsManualTriggerContext\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsManualTriggerContext) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsManualTriggerContextType]() + + + +```go +type ManagedAgentsManualTriggerContextType string +``` + + + +```go +const ( + ManagedAgentsManualTriggerContextTypeManual ManagedAgentsManualTriggerContextType = "manual" +) +``` + + +## type [ManagedAgentsMemory]() + +A \`memory\` object: a single text document at a hierarchical path inside a memory store. The \`content\` field is populated when \`view=full\` and \`null\` when \`view=basic\`; the \`content\_size\_bytes\` and \`content\_sha256\` fields are always populated so sync clients can diff without fetching content. Memories are addressed by their \`mem\_...\` ID; the path is the create key and can be changed via update. + +```go +type ManagedAgentsMemory struct { + Metadata map[string]string `json:"metadata"` + + // Unique identifier for this memory (a `mem_...` value). Stable across renames; + // use this ID, not the path, to read, update, or delete the memory. + ID string `json:"id" api:"required"` + // Lowercase hex SHA-256 digest of the UTF-8 `content` bytes (64 characters). The + // server applies no normalization, so clients can compute the same hash locally + // for staleness checks and as the value for a `content_sha256` precondition on + // update. Always populated, regardless of `view`. + ContentSha256 string `json:"content_sha256" api:"required"` + // Size of `content` in bytes (the UTF-8 plaintext length). Always populated, + // regardless of `view`. + ContentSizeBytes int64 `json:"content_size_bytes" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // ID of the memory store this memory belongs to (a `memstore_...` value). + MemoryStoreID string `json:"memory_store_id" api:"required"` + // ID of the `memory_version` representing this memory's current content (a + // `memver_...` value). This is the authoritative head pointer; `memory_version` + // objects do not carry an `is_latest` flag, so compare against this field instead. + // Enumerate the history via + // [List memory versions](/en/api/beta/memory_stores/memory_versions/list). + MemoryVersionID string `json:"memory_version_id" api:"required"` + // Hierarchical path of the memory within the store, e.g. `/projects/foo/notes.md`. + // Always starts with `/`. Paths are case-sensitive and unique within a store. + // Maximum 1,024 bytes. + Path string `json:"path" api:"required"` + // Any of "memory". + Type ManagedAgentsMemoryType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // The memory's UTF-8 text content. Populated when `view=full`; `null` when + // `view=basic`. Maximum 100 kB (102,400 bytes). + Content string `json:"content" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Metadata respjson.Field + + ID respjson.Field + ContentSha256 respjson.Field + ContentSizeBytes respjson.Field + CreatedAt respjson.Field + MemoryStoreID respjson.Field + MemoryVersionID respjson.Field + Path respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Content respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemory\) [RawJSON]() + +```go +func (r ManagedAgentsMemory) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemory\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemory) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryListItemUnion]() + +ManagedAgentsMemoryListItemUnion contains all possible properties and values from [ManagedAgentsMemory](<#ManagedAgentsMemory>), [ManagedAgentsMemoryPrefix](<#ManagedAgentsMemoryPrefix>). + +Use the [ManagedAgentsMemoryListItemUnion.AsAny](<#ManagedAgentsMemoryListItemUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMemoryListItemUnion struct { + // This field is from variant [ManagedAgentsMemory]. + ID string `json:"id"` + // This field is from variant [ManagedAgentsMemory]. + ContentSha256 string `json:"content_sha256"` + // This field is from variant [ManagedAgentsMemory]. + ContentSizeBytes int64 `json:"content_size_bytes"` + // This field is from variant [ManagedAgentsMemory]. + CreatedAt time.Time `json:"created_at"` + // This field is from variant [ManagedAgentsMemory]. + MemoryStoreID string `json:"memory_store_id"` + // This field is from variant [ManagedAgentsMemory]. + MemoryVersionID string `json:"memory_version_id"` + Path string `json:"path"` + // Any of "memory", "memory_prefix". + Type string `json:"type"` + // This field is from variant [ManagedAgentsMemory]. + UpdatedAt time.Time `json:"updated_at"` + // This field is from variant [ManagedAgentsMemory]. + Content string `json:"content"` + JSON struct { + ID respjson.Field + ContentSha256 respjson.Field + ContentSizeBytes respjson.Field + CreatedAt respjson.Field + MemoryStoreID respjson.Field + MemoryVersionID respjson.Field + Path respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryListItemUnion\) [AsAny]() + +```go +func (u ManagedAgentsMemoryListItemUnion) AsAny() anyManagedAgentsMemoryListItem +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMemoryListItemUnion.AsAny().(type) { +case qoder.ManagedAgentsMemory: +case qoder.ManagedAgentsMemoryPrefix: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMemoryListItemUnion\) [AsMemory]() + +```go +func (u ManagedAgentsMemoryListItemUnion) AsMemory() (v ManagedAgentsMemory) +``` + + + + +### func \(ManagedAgentsMemoryListItemUnion\) [AsMemoryPrefix]() + +```go +func (u ManagedAgentsMemoryListItemUnion) AsMemoryPrefix() (v ManagedAgentsMemoryPrefix) +``` + + + + +### func \(ManagedAgentsMemoryListItemUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMemoryListItemUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryListItemUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryListItemUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryPrefix]() + +A rolled\-up directory marker returned by \[List memories\]\(/en/api/beta/memory\_stores/memories/list\) when \`depth\` is set. Indicates that one or more memories exist deeper than the requested depth under this prefix. This is a list\-time rollup, not a stored resource; it has no ID and no lifecycle. Each prefix counts toward the page \`limit\` and interleaves with \`memory\` items in path order. + +```go +type ManagedAgentsMemoryPrefix struct { + // The rolled-up path prefix, including a trailing `/` (e.g. `/projects/foo/`). + // Pass this value as `path_prefix` on a subsequent list call to drill into the + // directory. + Path string `json:"path" api:"required"` + // Any of "memory_prefix". + Type ManagedAgentsMemoryPrefixType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Path respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryPrefix\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryPrefix) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryPrefix\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryPrefix) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryPrefixType]() + + + +```go +type ManagedAgentsMemoryPrefixType string +``` + + + +```go +const ( + ManagedAgentsMemoryPrefixTypeMemoryPrefix ManagedAgentsMemoryPrefixType = "memory_prefix" +) +``` + + +## type [ManagedAgentsMemoryStore]() + +A \`memory\_store\`: a named container for agent memories, scoped to a workspace. Attach a store to a session via \`resources\[\]\` to mount it as a directory the agent can read and write. + +```go +type ManagedAgentsMemoryStore struct { + // Unique identifier for the memory store (a `memstore_...` tagged ID). Use this + // when attaching the store to a session, or in the `{memory_store_id}` path + // parameter of subsequent calls. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Human-readable name for the store. 1–255 characters. The store's mount-path slug + // under `/mnt/memory/` is derived from this name. + Name string `json:"name" api:"required"` + // Any of "memory_store". + Type ManagedAgentsMemoryStoreType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"nullable" format:"date-time"` + // Free-text description of what the store contains, up to 1024 characters. + // Included in the agent's system prompt when the store is attached, so word it to + // be useful to the agent. Empty string when unset. + Description string `json:"description"` + // Arbitrary key-value tags for your own bookkeeping (such as the end user a store + // belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. + // Returned on retrieve/list but not filterable. + Metadata map[string]string `json:"metadata"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + Name respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + ArchivedAt respjson.Field + Description respjson.Field + Metadata respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryStore\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryStore) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryStore\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStore) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError]() + +A memory store referenced by the deployment is archived. + +```go +type ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError struct { + // Any of "memory_store_archived_error". + Type ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorTypeMemoryStoreArchivedError ManagedAgentsMemoryStoreArchivedDeploymentPausedReasonErrorType = "memory_store_archived_error" +) +``` + + +## type [ManagedAgentsMemoryStoreArchivedRunError]() + +A memory store referenced by the deployment is archived. + +```go +type ManagedAgentsMemoryStoreArchivedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "memory_store_archived_error". + Type ManagedAgentsMemoryStoreArchivedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryStoreArchivedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryStoreArchivedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryStoreArchivedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStoreArchivedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreArchivedRunErrorType]() + + + +```go +type ManagedAgentsMemoryStoreArchivedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreArchivedRunErrorTypeMemoryStoreArchivedError ManagedAgentsMemoryStoreArchivedRunErrorType = "memory_store_archived_error" +) +``` + + +## type [ManagedAgentsMemoryStoreResource]() + +A memory store attached to an agent session. + +```go +type ManagedAgentsMemoryStoreResource struct { + // The memory store ID (memstore\_...). Must belong to the caller's organization + // and workspace. + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type ManagedAgentsMemoryStoreResourceType `json:"type" api:"required"` + // Access mode for an attached memory store. + // + // Any of "read_write", "read_only". + Access ManagedAgentsMemoryStoreResourceAccess `json:"access" api:"nullable"` + // Description of the memory store, snapshotted at attach time. Rendered into the + // agent's system prompt. Empty string when the store has no description. + Description string `json:"description"` + // Per-attachment guidance for the agent on how to use this store. Rendered into + // the memory section of the system prompt. Max 4096 chars. + Instructions string `json:"instructions" api:"nullable"` + // Filesystem path where the store is mounted in the session container, e.g. + // /mnt/memory/user-preferences. Derived from the store's name. Output-only. + MountPath string `json:"mount_path" api:"nullable"` + // Display name of the memory store, snapshotted at attach time. Later edits to the + // store's name do not propagate to this resource. + Name string `json:"name" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + Access respjson.Field + Description respjson.Field + Instructions respjson.Field + MountPath respjson.Field + Name respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryStoreResource\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryStoreResource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryStoreResource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStoreResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreResourceAccess]() + +Access mode for an attached memory store. + +```go +type ManagedAgentsMemoryStoreResourceAccess string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceAccessReadWrite ManagedAgentsMemoryStoreResourceAccess = "read_write" + ManagedAgentsMemoryStoreResourceAccessReadOnly ManagedAgentsMemoryStoreResourceAccess = "read_only" +) +``` + + +## type [ManagedAgentsMemoryStoreResourceConfig]() + +A memory store attached to each session created from this deployment. + +```go +type ManagedAgentsMemoryStoreResourceConfig struct { + // The memory store ID (memstore\_...). Must belong to the caller's organization + // and workspace. + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type ManagedAgentsMemoryStoreResourceConfigType `json:"type" api:"required"` + // Access mode for an attached memory store. + // + // Any of "read_write", "read_only". + Access ManagedAgentsMemoryStoreResourceConfigAccess `json:"access" api:"nullable"` + // Per-attachment guidance for the agent on how to use this store. Rendered into + // the memory section of the system prompt. Max 4096 chars. + Instructions string `json:"instructions" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + Access respjson.Field + Instructions respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryStoreResourceConfig\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryStoreResourceConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryStoreResourceConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStoreResourceConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreResourceConfigAccess]() + +Access mode for an attached memory store. + +```go +type ManagedAgentsMemoryStoreResourceConfigAccess string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceConfigAccessReadWrite ManagedAgentsMemoryStoreResourceConfigAccess = "read_write" + ManagedAgentsMemoryStoreResourceConfigAccessReadOnly ManagedAgentsMemoryStoreResourceConfigAccess = "read_only" +) +``` + + +## type [ManagedAgentsMemoryStoreResourceConfigType]() + + + +```go +type ManagedAgentsMemoryStoreResourceConfigType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceConfigTypeMemoryStore ManagedAgentsMemoryStoreResourceConfigType = "memory_store" +) +``` + + +## type [ManagedAgentsMemoryStoreResourceParam]() + +Parameters for attaching a memory store to an agent session. + +The properties MemoryStoreID, Type are required. + +```go +type ManagedAgentsMemoryStoreResourceParam struct { + // The memory store ID (memstore\_...). Must belong to the caller's organization + // and workspace. + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "memory_store". + Type ManagedAgentsMemoryStoreResourceParamType `json:"type,omitzero" api:"required"` + // Per-attachment guidance for the agent on how to use this store. Rendered into + // the memory section of the system prompt. Max 4096 chars. + Instructions param.Opt[string] `json:"instructions,omitzero"` + // Access mode for an attached memory store. + // + // Any of "read_write", "read_only". + Access ManagedAgentsMemoryStoreResourceParamAccess `json:"access,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMemoryStoreResourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsMemoryStoreResourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMemoryStoreResourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryStoreResourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryStoreResourceParamAccess]() + +Access mode for an attached memory store. + +```go +type ManagedAgentsMemoryStoreResourceParamAccess string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceParamAccessReadWrite ManagedAgentsMemoryStoreResourceParamAccess = "read_write" + ManagedAgentsMemoryStoreResourceParamAccessReadOnly ManagedAgentsMemoryStoreResourceParamAccess = "read_only" +) +``` + + +## type [ManagedAgentsMemoryStoreResourceParamType]() + + + +```go +type ManagedAgentsMemoryStoreResourceParamType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceParamTypeMemoryStore ManagedAgentsMemoryStoreResourceParamType = "memory_store" +) +``` + + +## type [ManagedAgentsMemoryStoreResourceType]() + + + +```go +type ManagedAgentsMemoryStoreResourceType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreResourceTypeMemoryStore ManagedAgentsMemoryStoreResourceType = "memory_store" +) +``` + + +## type [ManagedAgentsMemoryStoreType]() + + + +```go +type ManagedAgentsMemoryStoreType string +``` + + + +```go +const ( + ManagedAgentsMemoryStoreTypeMemoryStore ManagedAgentsMemoryStoreType = "memory_store" +) +``` + + +## type [ManagedAgentsMemoryType]() + + + +```go +type ManagedAgentsMemoryType string +``` + + + +```go +const ( + ManagedAgentsMemoryTypeMemory ManagedAgentsMemoryType = "memory" +) +``` + + +## type [ManagedAgentsMemoryVersion]() + +A \`memory\_version\` object: one immutable, attributed row in a memory's append\-only history. Every non\-no\-op mutation to a memory produces a new version. Versions belong to the store \(not the individual memory\) and are not deleted with the memory; each version is retained for at least the version retention period after it was written, unless the store itself is deleted. Retrieving a redacted version returns 200 with \`content\`, \`path\`, \`content\_size\_bytes\`, and \`content\_sha256\` set to \`null\`; branch on \`redacted\_at\`, not HTTP status. + +```go +type ManagedAgentsMemoryVersion struct { + // Unique identifier for this version (a `memver_...` value). + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // ID of the memory this version snapshots (a `mem_...` value). Remains valid after + // the memory is deleted; pass it as `memory_id` to + // [List memory versions](/en/api/beta/memory_stores/memory_versions/list) to + // retrieve the memory's retained versions, including the `deleted` row while the + // lineage is retained. + MemoryID string `json:"memory_id" api:"required"` + // ID of the memory store this version belongs to (a `memstore_...` value). + MemoryStoreID string `json:"memory_store_id" api:"required"` + // The kind of mutation a `memory_version` records. Every non-no-op mutation to a + // memory appends exactly one version row with one of these values. + // + // Any of "created", "modified", "deleted". + Operation ManagedAgentsMemoryVersionOperation `json:"operation" api:"required"` + // Any of "memory_version". + Type ManagedAgentsMemoryVersionType `json:"type" api:"required"` + // The memory's UTF-8 text content as of this version. `null` when `view=basic`, + // when `operation` is `deleted`, or when `redacted_at` is set. + Content string `json:"content" api:"nullable"` + // Lowercase hex SHA-256 digest of `content` as of this version (64 characters). + // `null` when `redacted_at` is set or `operation` is `deleted`. Populated + // regardless of `view` otherwise. + ContentSha256 string `json:"content_sha256" api:"nullable"` + // Size of `content` in bytes as of this version. `null` when `redacted_at` is set + // or `operation` is `deleted`. Populated regardless of `view` otherwise. + ContentSizeBytes int64 `json:"content_size_bytes" api:"nullable"` + // Identifies who performed a write or redact operation. Captured at write time on + // the `memory_version` row. The API key that created a session is not recorded on + // agent writes; attribution answers who made the write, not who is ultimately + // responsible. Look up session provenance separately via the + // [Sessions API](/en/api/beta/sessions/retrieve). + CreatedBy ManagedAgentsActorUnion `json:"created_by"` + // The memory's path at the time of this write. `null` if and only if `redacted_at` + // is set. + Path string `json:"path" api:"nullable"` + // A timestamp in RFC 3339 format + RedactedAt time.Time `json:"redacted_at" api:"nullable" format:"date-time"` + // Identifies who performed a write or redact operation. Captured at write time on + // the `memory_version` row. The API key that created a session is not recorded on + // agent writes; attribution answers who made the write, not who is ultimately + // responsible. Look up session provenance separately via the + // [Sessions API](/en/api/beta/sessions/retrieve). + RedactedBy ManagedAgentsActorUnion `json:"redacted_by"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + MemoryID respjson.Field + MemoryStoreID respjson.Field + Operation respjson.Field + Type respjson.Field + Content respjson.Field + ContentSha256 respjson.Field + ContentSizeBytes respjson.Field + CreatedBy respjson.Field + Path respjson.Field + RedactedAt respjson.Field + RedactedBy respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMemoryVersion\) [RawJSON]() + +```go +func (r ManagedAgentsMemoryVersion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMemoryVersion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMemoryVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMemoryVersionOperation]() + +The kind of mutation a \`memory\_version\` records. Every non\-no\-op mutation to a memory appends exactly one version row with one of these values. + +```go +type ManagedAgentsMemoryVersionOperation string +``` + + + +```go +const ( + ManagedAgentsMemoryVersionOperationCreated ManagedAgentsMemoryVersionOperation = "created" + ManagedAgentsMemoryVersionOperationModified ManagedAgentsMemoryVersionOperation = "modified" + ManagedAgentsMemoryVersionOperationDeleted ManagedAgentsMemoryVersionOperation = "deleted" +) +``` + + +## type [ManagedAgentsMemoryVersionType]() + + + +```go +type ManagedAgentsMemoryVersionType string +``` + + + +```go +const ( + ManagedAgentsMemoryVersionTypeMemoryVersion ManagedAgentsMemoryVersionType = "memory_version" +) +``` + + +## type [ManagedAgentsMemoryView]() + +Selects which projection of a \`memory\` or \`memory\_version\` the server returns. \`basic\` returns the object with \`content\` set to \`null\`; \`full\` populates \`content\`. When omitted, the default is endpoint\-specific: retrieve operations default to \`full\`; list, create, and update operations default to \`basic\`. Listing with \`view=full\` caps \`limit\` at 20. + +```go +type ManagedAgentsMemoryView string +``` + + + +```go +const ( + ManagedAgentsMemoryViewBasic ManagedAgentsMemoryView = "basic" + ManagedAgentsMemoryViewFull ManagedAgentsMemoryView = "full" +) +``` + + +## type [ManagedAgentsModel]() + +The model that will power your agent. + +See \[models\]\(https://docs.qoder.com/cloud-agents/api/models/list\) for additional details and options. + +```go +type ManagedAgentsModel = string +``` + + +## type [ManagedAgentsModelConfig]() + +Model identifier and configuration. + +```go +type ManagedAgentsModelConfig struct { + ContextWindow int64 `json:"context_window"` + + // The model that will power your agent. + // + // See [models](https://docs.qoder.com/cloud-agents/api/models/list) for additional + // details and options. + ID ManagedAgentsModel `json:"id" api:"required"` + // How hard the model works on each turn. Sets `output_config.effort` on every + // Messages call the session makes. + Effort ManagedAgentsModelConfigEffortUnion `json:"effort"` + // Geographic region for model inference. When unset, requests fall through to the + // workspace's default_inference_geo. + InferenceGeo string `json:"inference_geo"` + // Inference speed mode. `fast` provides significantly faster output token + // generation at premium pricing. Not all models support `fast`; invalid + // combinations are rejected at create time. + // + // Any of "standard", "fast". + Speed ManagedAgentsModelConfigSpeed `json:"speed"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ContextWindow respjson.Field + + ID respjson.Field + Effort respjson.Field + InferenceGeo respjson.Field + Speed respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelConfig\) [RawJSON]() + +```go +func (r ManagedAgentsModelConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelConfigEffortUnion]() + +ManagedAgentsModelConfigEffortUnion contains all possible properties and values from [ManagedAgentsEffortLow](<#ManagedAgentsEffortLow>), [ManagedAgentsEffortMedium](<#ManagedAgentsEffortMedium>), [ManagedAgentsEffortHigh](<#ManagedAgentsEffortHigh>), [ManagedAgentsEffortXhigh](<#ManagedAgentsEffortXhigh>), [ManagedAgentsEffortMax](<#ManagedAgentsEffortMax>). + +Use the [ManagedAgentsModelConfigEffortUnion.AsAny](<#ManagedAgentsModelConfigEffortUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsModelConfigEffortUnion struct { + // Any of "low", "medium", "high", "xhigh", "max". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsAny]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsAny() anyManagedAgentsModelConfigEffort +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsModelConfigEffortUnion.AsAny().(type) { +case qoder.ManagedAgentsEffortLow: +case qoder.ManagedAgentsEffortMedium: +case qoder.ManagedAgentsEffortHigh: +case qoder.ManagedAgentsEffortXhigh: +case qoder.ManagedAgentsEffortMax: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsHigh]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsHigh() (v ManagedAgentsEffortHigh) +``` + + + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsLow]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsLow() (v ManagedAgentsEffortLow) +``` + + + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsMax]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsMax() (v ManagedAgentsEffortMax) +``` + + + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsMedium]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsMedium() (v ManagedAgentsEffortMedium) +``` + + + + +### func \(ManagedAgentsModelConfigEffortUnion\) [AsXhigh]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) AsXhigh() (v ManagedAgentsEffortXhigh) +``` + + + + +### func \(ManagedAgentsModelConfigEffortUnion\) [RawJSON]() + +```go +func (u ManagedAgentsModelConfigEffortUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelConfigEffortUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelConfigEffortUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelConfigParams]() + +An object that defines additional configuration control over model use + +The property ID is required. + +```go +type ManagedAgentsModelConfigParams struct { + ContextWindow param.Opt[int64] `json:"context_window,omitzero"` + + // The model that will power your agent. + // + // See [models](https://docs.qoder.com/cloud-agents/api/models/list) for additional + // details and options. + ID ManagedAgentsModel `json:"id,omitzero" api:"required"` + // Geographic region for model inference. When unset, requests fall through to the + // workspace's default_inference_geo. On update, `model` is whole-object + // replacement — omitting inference_geo clears it. + InferenceGeo param.Opt[string] `json:"inference_geo,omitzero"` + // How hard the model works on each inference call. Accepts a bare level string + // (`"high"`) or `{"type": "high"}`. On create, omitting it resolves the per-model + // default; on update, omitting it leaves the stored value unchanged. + Effort ManagedAgentsModelConfigParamsEffortUnion `json:"effort,omitzero"` + // Inference speed mode. `fast` provides significantly faster output token + // generation at premium pricing. Not all models support `fast`; invalid + // combinations are rejected at create time. + // + // Any of "standard", "fast". + Speed ManagedAgentsModelConfigParamsSpeed `json:"speed,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsModelConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsModelConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsModelConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel]() + +How hard the model works on each turn. Higher levels favor reasoning depth over latency. Not all models accept every level; invalid combinations are rejected at create time. + +```go +type ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel string +``` + + + +```go +const ( + ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevelLow ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel = "low" + ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevelMedium ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel = "medium" + ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevelHigh ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel = "high" + ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevelXhigh ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel = "xhigh" + ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevelMax ManagedAgentsModelConfigParamsEffortManagedAgentsEffortLevel = "max" +) +``` + + +## type [ManagedAgentsModelConfigParamsEffortUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsModelConfigParamsEffortUnion struct { + // Check if union is this variant with + // !param.IsOmitted(union.OfManagedAgentsModelConfigsEffortManagedAgentsEffortLevel) + OfManagedAgentsModelConfigsEffortManagedAgentsEffortLevel param.Opt[string] `json:",omitzero,inline"` + OfManagedAgentsEffortLow *ManagedAgentsEffortLowParam `json:",omitzero,inline"` + OfManagedAgentsEffortMedium *ManagedAgentsEffortMediumParam `json:",omitzero,inline"` + OfManagedAgentsEffortHigh *ManagedAgentsEffortHighParam `json:",omitzero,inline"` + OfManagedAgentsEffortXhigh *ManagedAgentsEffortXhighParam `json:",omitzero,inline"` + OfManagedAgentsEffortMax *ManagedAgentsEffortMaxParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsModelConfigParamsEffortUnion\) [GetType]() + +```go +func (u ManagedAgentsModelConfigParamsEffortUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsModelConfigParamsEffortUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsModelConfigParamsEffortUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsModelConfigParamsEffortUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsModelConfigParamsEffortUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelConfigParamsSpeed]() + +Inference speed mode. \`fast\` provides significantly faster output token generation at premium pricing. Not all models support \`fast\`; invalid combinations are rejected at create time. + +```go +type ManagedAgentsModelConfigParamsSpeed string +``` + + + +```go +const ( + ManagedAgentsModelConfigParamsSpeedStandard ManagedAgentsModelConfigParamsSpeed = "standard" + ManagedAgentsModelConfigParamsSpeedFast ManagedAgentsModelConfigParamsSpeed = "fast" +) +``` + + +## type [ManagedAgentsModelConfigSpeed]() + +Inference speed mode. \`fast\` provides significantly faster output token generation at premium pricing. Not all models support \`fast\`; invalid combinations are rejected at create time. + +```go +type ManagedAgentsModelConfigSpeed string +``` + + + +```go +const ( + ManagedAgentsModelConfigSpeedStandard ManagedAgentsModelConfigSpeed = "standard" + ManagedAgentsModelConfigSpeedFast ManagedAgentsModelConfigSpeed = "fast" +) +``` + + +## type [ManagedAgentsModelOverloadedError]() + +The model is currently overloaded. Emitted after automatic retries are exhausted. + +```go +type ManagedAgentsModelOverloadedError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsModelOverloadedErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "model_overloaded_error". + Type ManagedAgentsModelOverloadedErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelOverloadedError\) [RawJSON]() + +```go +func (r ManagedAgentsModelOverloadedError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelOverloadedError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelOverloadedError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelOverloadedErrorRetryStatusUnion]() + +ManagedAgentsModelOverloadedErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsAny](<#ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsModelOverloadedErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsModelOverloadedErrorRetryStatusUnion) AsAny() anyManagedAgentsModelOverloadedErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsModelOverloadedErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsModelOverloadedErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsModelOverloadedErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsModelOverloadedErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsModelOverloadedErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelOverloadedErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelOverloadedErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelOverloadedErrorType]() + + + +```go +type ManagedAgentsModelOverloadedErrorType string +``` + + + +```go +const ( + ManagedAgentsModelOverloadedErrorTypeModelOverloadedError ManagedAgentsModelOverloadedErrorType = "model_overloaded_error" +) +``` + + +## type [ManagedAgentsModelRateLimitedError]() + +The model request was rate\-limited. + +```go +type ManagedAgentsModelRateLimitedError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsModelRateLimitedErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "model_rate_limited_error". + Type ManagedAgentsModelRateLimitedErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelRateLimitedError\) [RawJSON]() + +```go +func (r ManagedAgentsModelRateLimitedError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelRateLimitedError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelRateLimitedError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelRateLimitedErrorRetryStatusUnion]() + +ManagedAgentsModelRateLimitedErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsAny](<#ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsModelRateLimitedErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsModelRateLimitedErrorRetryStatusUnion) AsAny() anyManagedAgentsModelRateLimitedErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsModelRateLimitedErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsModelRateLimitedErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsModelRateLimitedErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsModelRateLimitedErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsModelRateLimitedErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelRateLimitedErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelRateLimitedErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelRateLimitedErrorType]() + + + +```go +type ManagedAgentsModelRateLimitedErrorType string +``` + + + +```go +const ( + ManagedAgentsModelRateLimitedErrorTypeModelRateLimitedError ManagedAgentsModelRateLimitedErrorType = "model_rate_limited_error" +) +``` + + +## type [ManagedAgentsModelRequestFailedError]() + +A model request failed for a reason other than overload or rate\-limiting. + +```go +type ManagedAgentsModelRequestFailedError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsModelRequestFailedErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "model_request_failed_error". + Type ManagedAgentsModelRequestFailedErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelRequestFailedError\) [RawJSON]() + +```go +func (r ManagedAgentsModelRequestFailedError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelRequestFailedError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelRequestFailedError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelRequestFailedErrorRetryStatusUnion]() + +ManagedAgentsModelRequestFailedErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsAny](<#ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsModelRequestFailedErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsModelRequestFailedErrorRetryStatusUnion) AsAny() anyManagedAgentsModelRequestFailedErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsModelRequestFailedErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsModelRequestFailedErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsModelRequestFailedErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsModelRequestFailedErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsModelRequestFailedErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsModelRequestFailedErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsModelRequestFailedErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsModelRequestFailedErrorType]() + + + +```go +type ManagedAgentsModelRequestFailedErrorType string +``` + + + +```go +const ( + ManagedAgentsModelRequestFailedErrorTypeModelRequestFailedError ManagedAgentsModelRequestFailedErrorType = "model_request_failed_error" +) +``` + + +## type [ManagedAgentsMultiagent]() + +Resolved coordinator topology with a concrete agent roster. + +```go +type ManagedAgentsMultiagent struct { + // Agents the coordinator may spawn as session threads, each resolved to a specific + // version. + Agents []ManagedAgentsMultiagentAgentUnion `json:"agents" api:"required"` + // Any of "coordinator". + Type ManagedAgentsMultiagentType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Agents respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMultiagent\) [RawJSON]() + +```go +func (r ManagedAgentsMultiagent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMultiagent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMultiagent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMultiagentAgentUnion]() + +ManagedAgentsMultiagentAgentUnion contains all possible properties and values from [ManagedAgentsAgentReference](<#ManagedAgentsAgentReference>), [ManagedAgentsAdvisor](<#ManagedAgentsAdvisor>). + +Use the [ManagedAgentsMultiagentAgentUnion.AsAny](<#ManagedAgentsMultiagentAgentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsMultiagentAgentUnion struct { + // This field is from variant [ManagedAgentsAgentReference]. + ID string `json:"id"` + // Any of "agent", "advisor". + Type string `json:"type"` + // This field is from variant [ManagedAgentsAgentReference]. + Version int64 `json:"version"` + // This field is from variant [ManagedAgentsAdvisor]. + Model string `json:"model"` + JSON struct { + ID respjson.Field + Type respjson.Field + Version respjson.Field + Model respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsMultiagentAgentUnion\) [AsAdvisor]() + +```go +func (u ManagedAgentsMultiagentAgentUnion) AsAdvisor() (v ManagedAgentsAdvisor) +``` + + + + +### func \(ManagedAgentsMultiagentAgentUnion\) [AsAgent]() + +```go +func (u ManagedAgentsMultiagentAgentUnion) AsAgent() (v ManagedAgentsAgentReference) +``` + + + + +### func \(ManagedAgentsMultiagentAgentUnion\) [AsAny]() + +```go +func (u ManagedAgentsMultiagentAgentUnion) AsAny() anyManagedAgentsMultiagentAgent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsMultiagentAgentUnion.AsAny().(type) { +case qoder.ManagedAgentsAgentReference: +case qoder.ManagedAgentsAdvisor: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsMultiagentAgentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsMultiagentAgentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsMultiagentAgentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMultiagentAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMultiagentParams]() + +A coordinator topology: the session's primary thread orchestrates work by spawning session threads, each running an agent drawn from the \`agents\` roster. + +The properties Agents, Type are required. + +```go +type ManagedAgentsMultiagentParams struct { + // Agents the coordinator may spawn as session threads. 1–20 entries. Each entry is + // an agent ID string, a versioned `{"type":"agent","id","version"}` reference, or + // `{"type":"self"}` to allow recursive self-invocation. Entries must reference + // distinct agents (after resolving `self` and string forms); at most one `self`. + // Referenced agents must exist, must not be archived, and must not themselves have + // `multiagent` set (depth limit 1). + Agents []ManagedAgentsMultiagentRosterEntryParamsUnion `json:"agents,omitzero" api:"required"` + // Any of "coordinator". + Type ManagedAgentsMultiagentParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMultiagentParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMultiagentParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMultiagentParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMultiagentParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMultiagentParamsType]() + + + +```go +type ManagedAgentsMultiagentParamsType string +``` + + + +```go +const ( + ManagedAgentsMultiagentParamsTypeCoordinator ManagedAgentsMultiagentParamsType = "coordinator" +) +``` + + +## type [ManagedAgentsMultiagentRosterEntryParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsMultiagentRosterEntryParamsUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfManagedAgentsAgents *ManagedAgentsAgentParams `json:",omitzero,inline"` + OfManagedAgentsMultiagentSelfs *ManagedAgentsMultiagentSelfParams `json:",omitzero,inline"` + OfManagedAgentsAdvisors *ManagedAgentsAdvisorParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAdvisors]() + +```go +func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAdvisors(model string, type_ ManagedAgentsAdvisorParamsType) ManagedAgentsMultiagentRosterEntryParamsUnion +``` + + + + +### func [ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAgents]() + +```go +func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsAgents(id string, type_ ManagedAgentsAgentParamsType) ManagedAgentsMultiagentRosterEntryParamsUnion +``` + + + + +### func [ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsMultiagentSelfs]() + +```go +func ManagedAgentsMultiagentRosterEntryParamsOfManagedAgentsMultiagentSelfs(type_ ManagedAgentsMultiagentSelfParamsType) ManagedAgentsMultiagentRosterEntryParamsUnion +``` + + + + +### func \(ManagedAgentsMultiagentRosterEntryParamsUnion\) [GetID]() + +```go +func (u ManagedAgentsMultiagentRosterEntryParamsUnion) GetID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMultiagentRosterEntryParamsUnion\) [GetModel]() + +```go +func (u ManagedAgentsMultiagentRosterEntryParamsUnion) GetModel() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMultiagentRosterEntryParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsMultiagentRosterEntryParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMultiagentRosterEntryParamsUnion\) [GetVersion]() + +```go +func (u ManagedAgentsMultiagentRosterEntryParamsUnion) GetVersion() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsMultiagentRosterEntryParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsMultiagentRosterEntryParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsMultiagentRosterEntryParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsMultiagentRosterEntryParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMultiagentSelfParams]() + +Sentinel roster entry meaning "the agent that owns this configuration". Resolved server\-side to a concrete agent reference. + +The property Type is required. + +```go +type ManagedAgentsMultiagentSelfParams struct { + // Any of "self". + Type ManagedAgentsMultiagentSelfParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsMultiagentSelfParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsMultiagentSelfParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsMultiagentSelfParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsMultiagentSelfParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsMultiagentSelfParamsType]() + + + +```go +type ManagedAgentsMultiagentSelfParamsType string +``` + + + +```go +const ( + ManagedAgentsMultiagentSelfParamsTypeSelf ManagedAgentsMultiagentSelfParamsType = "self" +) +``` + + +## type [ManagedAgentsMultiagentType]() + + + +```go +type ManagedAgentsMultiagentType string +``` + + + +```go +const ( + ManagedAgentsMultiagentTypeCoordinator ManagedAgentsMultiagentType = "coordinator" +) +``` + + +## type [ManagedAgentsOrganizationDisabledDeploymentPausedReasonError]() + +The deployment's organization is disabled. + +```go +type ManagedAgentsOrganizationDisabledDeploymentPausedReasonError struct { + // Any of "organization_disabled_error". + Type ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsOrganizationDisabledDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsOrganizationDisabledDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsOrganizationDisabledDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsOrganizationDisabledDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorTypeOrganizationDisabledError ManagedAgentsOrganizationDisabledDeploymentPausedReasonErrorType = "organization_disabled_error" +) +``` + + +## type [ManagedAgentsOrganizationDisabledRunError]() + +The deployment's organization is disabled. + +```go +type ManagedAgentsOrganizationDisabledRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "organization_disabled_error". + Type ManagedAgentsOrganizationDisabledRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsOrganizationDisabledRunError\) [RawJSON]() + +```go +func (r ManagedAgentsOrganizationDisabledRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsOrganizationDisabledRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsOrganizationDisabledRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsOrganizationDisabledRunErrorType]() + + + +```go +type ManagedAgentsOrganizationDisabledRunErrorType string +``` + + + +```go +const ( + ManagedAgentsOrganizationDisabledRunErrorTypeOrganizationDisabledError ManagedAgentsOrganizationDisabledRunErrorType = "organization_disabled_error" +) +``` + + +## type [ManagedAgentsOutcomeEvaluationResource]() + +Evaluation state for a single outcome defined via a \`define\_outcome\` event. + +```go +type ManagedAgentsOutcomeEvaluationResource struct { + // A timestamp in RFC 3339 format + CompletedAt time.Time `json:"completed_at" api:"required" format:"date-time"` + // What the agent should produce. + Description string `json:"description" api:"required"` + // Grader's verdict text from the most recent evaluation. For `satisfied`, explains + // why criteria are met; for `needs_revision` (intermediate), what's missing; for + // `failed`, why unrecoverable. + Explanation string `json:"explanation" api:"required"` + // 0-indexed revision cycle the outcome is currently on. + Iteration int64 `json:"iteration" api:"required"` + // Server-generated outc\_ ID for this outcome. + OutcomeID string `json:"outcome_id" api:"required"` + // Current evaluation state. `pending` before the agent begins work; `running` + // while producing or revising; `evaluating` while the grader scores; + // `satisfied`/`max_iterations_reached`/`failed`/`interrupted` are terminal. + Result string `json:"result" api:"required"` + // Any of "outcome_evaluation". + Type ManagedAgentsOutcomeEvaluationResourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + CompletedAt respjson.Field + Description respjson.Field + Explanation respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + Result respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsOutcomeEvaluationResource\) [RawJSON]() + +```go +func (r ManagedAgentsOutcomeEvaluationResource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsOutcomeEvaluationResource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsOutcomeEvaluationResource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsOutcomeEvaluationResourceType]() + + + +```go +type ManagedAgentsOutcomeEvaluationResourceType string +``` + + + +```go +const ( + ManagedAgentsOutcomeEvaluationResourceTypeOutcomeEvaluation ManagedAgentsOutcomeEvaluationResourceType = "outcome_evaluation" +) +``` + + +## type [ManagedAgentsPlainTextDocumentSource]() + +Plain text document content. + +```go +type ManagedAgentsPlainTextDocumentSource struct { + // The plain text content. + Data string `json:"data" api:"required"` + // MIME type of the text content. Must be "text/plain". + // + // Any of "text/plain". + MediaType ManagedAgentsPlainTextDocumentSourceMediaType `json:"media_type" api:"required"` + // Any of "text". + Type ManagedAgentsPlainTextDocumentSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsPlainTextDocumentSource\) [RawJSON]() + +```go +func (r ManagedAgentsPlainTextDocumentSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsPlainTextDocumentSource\) [ToParam]() + +```go +func (r ManagedAgentsPlainTextDocumentSource) ToParam() ManagedAgentsPlainTextDocumentSourceParam +``` + +ToParam converts this ManagedAgentsPlainTextDocumentSource to a ManagedAgentsPlainTextDocumentSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsPlainTextDocumentSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsPlainTextDocumentSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsPlainTextDocumentSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsPlainTextDocumentSourceMediaType]() + +MIME type of the text content. Must be "text/plain". + +```go +type ManagedAgentsPlainTextDocumentSourceMediaType string +``` + + + +```go +const ( + ManagedAgentsPlainTextDocumentSourceMediaTypeTextPlain ManagedAgentsPlainTextDocumentSourceMediaType = "text/plain" +) +``` + + +## type [ManagedAgentsPlainTextDocumentSourceParam]() + +Plain text document content. + +The properties Data, MediaType, Type are required. + +```go +type ManagedAgentsPlainTextDocumentSourceParam struct { + // The plain text content. + Data string `json:"data" api:"required"` + // MIME type of the text content. Must be "text/plain". + // + // Any of "text/plain". + MediaType ManagedAgentsPlainTextDocumentSourceMediaType `json:"media_type,omitzero" api:"required"` + // Any of "text". + Type ManagedAgentsPlainTextDocumentSourceType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsPlainTextDocumentSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsPlainTextDocumentSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsPlainTextDocumentSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsPlainTextDocumentSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsPlainTextDocumentSourceType]() + + + +```go +type ManagedAgentsPlainTextDocumentSourceType string +``` + + + +```go +const ( + ManagedAgentsPlainTextDocumentSourceTypeText ManagedAgentsPlainTextDocumentSourceType = "text" +) +``` + + +## type [ManagedAgentsPreconditionParam]() + +Optimistic\-concurrency precondition: the update applies only if the memory's stored \`content\_sha256\` equals the supplied value. On mismatch, the request returns \`memory\_precondition\_failed\_error\` \(HTTP 409\); re\-read the memory and retry against the fresh state. If the precondition fails but the stored state already exactly matches the requested \`content\` and \`path\`, the server returns 200 instead of 409. + +The property Type is required. + +```go +type ManagedAgentsPreconditionParam struct { + // Any of "content_sha256". + Type ManagedAgentsPreconditionType `json:"type,omitzero" api:"required"` + // Expected `content_sha256` of the stored memory (64 lowercase hexadecimal + // characters). Typically the `content_sha256` returned by a prior read or list + // call. Because the server applies no content normalization, clients can also + // compute this locally as the SHA-256 of the UTF-8 content bytes. + ContentSha256 param.Opt[string] `json:"content_sha256,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsPreconditionParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsPreconditionParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsPreconditionParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsPreconditionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsPreconditionType]() + + + +```go +type ManagedAgentsPreconditionType string +``` + + + +```go +const ( + ManagedAgentsPreconditionTypeContentSha256 ManagedAgentsPreconditionType = "content_sha256" +) +``` + + +## type [ManagedAgentsQoderSkill]() + +A resolved Qoder\-managed skill. + +```go +type ManagedAgentsQoderSkill struct { + SkillID string `json:"skill_id" api:"required"` + // Any of "qoder". + Type ManagedAgentsQoderSkillType `json:"type" api:"required"` + Version string `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + SkillID respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsQoderSkill\) [RawJSON]() + +```go +func (r ManagedAgentsQoderSkill) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsQoderSkill\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsQoderSkill) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsQoderSkillParams]() + +An Qoder\-managed skill. + +The properties SkillID, Type are required. + +```go +type ManagedAgentsQoderSkillParams struct { + // Identifier of the Qoder skill (e.g., "xlsx"). + SkillID string `json:"skill_id" api:"required"` + // Any of "qoder". + Type ManagedAgentsQoderSkillParamsType `json:"type,omitzero" api:"required"` + // Version to pin. Defaults to latest if omitted. + Version param.Opt[string] `json:"version,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsQoderSkillParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsQoderSkillParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsQoderSkillParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsQoderSkillParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsQoderSkillParamsType]() + + + +```go +type ManagedAgentsQoderSkillParamsType string +``` + + + +```go +const ( + ManagedAgentsQoderSkillParamsTypeQoder ManagedAgentsQoderSkillParamsType = "qoder" +) +``` + + +## type [ManagedAgentsQoderSkillType]() + + + +```go +type ManagedAgentsQoderSkillType string +``` + + + +```go +const ( + ManagedAgentsQoderSkillTypeQoder ManagedAgentsQoderSkillType = "qoder" +) +``` + + +## type [ManagedAgentsReadToolConfig]() + +Configuration for the read tool. + +```go +type ManagedAgentsReadToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Read `json:"name" default:"read"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsReadToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Read `json:"type" default:"read"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsReadToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsReadToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsReadToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsReadToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsReadToolConfigParams]() + +Configuration override for the read tool. + +The property Name is required. + +```go +type ManagedAgentsReadToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsReadToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "read". + Type ManagedAgentsReadToolConfigParamsType `json:"type,omitzero"` + // Must be "read". + // + // This field can be elided, and will marshal its zero value as "read". + Name constant.Read `json:"name" default:"read"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsReadToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsReadToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsReadToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsReadToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsReadToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsReadToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsReadToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsReadToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsReadToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsReadToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsReadToolConfigParamsType]() + + + +```go +type ManagedAgentsReadToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsReadToolConfigParamsTypeRead ManagedAgentsReadToolConfigParamsType = "read" +) +``` + + +## type [ManagedAgentsReadToolConfigPermissionPolicyUnion]() + +ManagedAgentsReadToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsReadToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsReadToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsReadToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsReadToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsReadToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsReadToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsReadToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsReadToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsReadToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsReadToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsReadToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsReadToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsReadToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRedactedBlock]() + +Placeholder for content withheld by Qoder model policy. + +```go +type ManagedAgentsRedactedBlock struct { + // Any of "redacted". + Type ManagedAgentsRedactedBlockType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRedactedBlock\) [RawJSON]() + +```go +func (r ManagedAgentsRedactedBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsRedactedBlock\) [ToParam]() + +```go +func (r ManagedAgentsRedactedBlock) ToParam() ManagedAgentsRedactedBlockParam +``` + +ToParam converts this ManagedAgentsRedactedBlock to a ManagedAgentsRedactedBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsRedactedBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsRedactedBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRedactedBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRedactedBlockParam]() + +Placeholder for content withheld by Qoder model policy. + +The property Type is required. + +```go +type ManagedAgentsRedactedBlockParam struct { + // Any of "redacted". + Type ManagedAgentsRedactedBlockType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsRedactedBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsRedactedBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsRedactedBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRedactedBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRedactedBlockType]() + + + +```go +type ManagedAgentsRedactedBlockType string +``` + + + +```go +const ( + ManagedAgentsRedactedBlockTypeRedacted ManagedAgentsRedactedBlockType = "redacted" +) +``` + + +## type [ManagedAgentsRefreshHTTPResponse]() + +An HTTP response captured during a credential validation probe. + +```go +type ManagedAgentsRefreshHTTPResponse struct { + // Response body. May be truncated and has sensitive values scrubbed. + Body string `json:"body" api:"required"` + // Whether `body` was truncated. + BodyTruncated bool `json:"body_truncated" api:"required"` + // Value of the `Content-Type` response header. + ContentType string `json:"content_type" api:"required"` + // HTTP status code. + StatusCode int64 `json:"status_code" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Body respjson.Field + BodyTruncated respjson.Field + ContentType respjson.Field + StatusCode respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRefreshHTTPResponse\) [RawJSON]() + +```go +func (r ManagedAgentsRefreshHTTPResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsRefreshHTTPResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRefreshHTTPResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRefreshObject]() + +Outcome of a refresh\-token exchange attempted during credential validation. + +```go +type ManagedAgentsRefreshObject struct { + // An HTTP response captured during a credential validation probe. + HTTPResponse ManagedAgentsRefreshHTTPResponse `json:"http_response" api:"required"` + // Outcome of a refresh-token exchange attempted during credential validation. + // + // Any of "succeeded", "failed", "connect_error", "no_refresh_token". + Status ManagedAgentsRefreshObjectStatus `json:"status" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + HTTPResponse respjson.Field + Status respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRefreshObject\) [RawJSON]() + +```go +func (r ManagedAgentsRefreshObject) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsRefreshObject\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRefreshObject) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRefreshObjectStatus]() + +Outcome of a refresh\-token exchange attempted during credential validation. + +```go +type ManagedAgentsRefreshObjectStatus string +``` + + + +```go +const ( + ManagedAgentsRefreshObjectStatusSucceeded ManagedAgentsRefreshObjectStatus = "succeeded" + ManagedAgentsRefreshObjectStatusFailed ManagedAgentsRefreshObjectStatus = "failed" + ManagedAgentsRefreshObjectStatusConnectError ManagedAgentsRefreshObjectStatus = "connect_error" + ManagedAgentsRefreshObjectStatusNoRefreshToken ManagedAgentsRefreshObjectStatus = "no_refresh_token" +) +``` + + +## type [ManagedAgentsRetryStatusExhausted]() + +This turn is dead; queued inputs are flushed and the session returns to idle. Client may send a new prompt. + +```go +type ManagedAgentsRetryStatusExhausted struct { + // Any of "exhausted". + Type ManagedAgentsRetryStatusExhaustedType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRetryStatusExhausted\) [RawJSON]() + +```go +func (r ManagedAgentsRetryStatusExhausted) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsRetryStatusExhausted\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRetryStatusExhausted) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRetryStatusExhaustedType]() + + + +```go +type ManagedAgentsRetryStatusExhaustedType string +``` + + + +```go +const ( + ManagedAgentsRetryStatusExhaustedTypeExhausted ManagedAgentsRetryStatusExhaustedType = "exhausted" +) +``` + + +## type [ManagedAgentsRetryStatusRetrying]() + +The server is retrying automatically. Client should wait; the same error type may fire again as retrying, then once as exhausted when the retry budget runs out. + +```go +type ManagedAgentsRetryStatusRetrying struct { + // Any of "retrying". + Type ManagedAgentsRetryStatusRetryingType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRetryStatusRetrying\) [RawJSON]() + +```go +func (r ManagedAgentsRetryStatusRetrying) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsRetryStatusRetrying\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRetryStatusRetrying) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRetryStatusRetryingType]() + + + +```go +type ManagedAgentsRetryStatusRetryingType string +``` + + + +```go +const ( + ManagedAgentsRetryStatusRetryingTypeRetrying ManagedAgentsRetryStatusRetryingType = "retrying" +) +``` + + +## type [ManagedAgentsRetryStatusTerminal]() + +The session encountered a terminal error and will transition to \`terminated\` state. + +```go +type ManagedAgentsRetryStatusTerminal struct { + // Any of "terminal". + Type ManagedAgentsRetryStatusTerminalType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsRetryStatusTerminal\) [RawJSON]() + +```go +func (r ManagedAgentsRetryStatusTerminal) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsRetryStatusTerminal\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsRetryStatusTerminal) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsRetryStatusTerminalType]() + + + +```go +type ManagedAgentsRetryStatusTerminalType string +``` + + + +```go +const ( + ManagedAgentsRetryStatusTerminalTypeTerminal ManagedAgentsRetryStatusTerminalType = "terminal" +) +``` + + +## type [ManagedAgentsSchedule]() + +5\-field POSIX cron schedule with computed runtime timestamps. + +```go +type ManagedAgentsSchedule struct { + // 5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., + // "0 9 \* \* 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean + // Sunday. Extended cron syntax - seconds or year fields, and the special + // characters L, W, #, and ? - is not supported, nor are predefined shortcuts + // (@daily). + Expression string `json:"expression" api:"required"` + // IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). + Timezone string `json:"timezone" api:"required"` + // Any of "cron". + Type ManagedAgentsScheduleType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + LastRunAt time.Time `json:"last_run_at" api:"nullable" format:"date-time"` + // Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused + // deployments (reflects what the schedule would do if unpaused); empty once the + // deployment is archived (`archived_at` set). Each fire is offset by a small + // per-schedule jitter, so a run will actually start at or shortly after its listed + // time. + UpcomingRunsAt []time.Time `json:"upcoming_runs_at" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Expression respjson.Field + Timezone respjson.Field + Type respjson.Field + LastRunAt respjson.Field + UpcomingRunsAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSchedule\) [RawJSON]() + +```go +func (r ManagedAgentsSchedule) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSchedule\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSchedule) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsScheduleParams]() + +5\-field POSIX cron schedule. Literal wall\-clock matching in the configured timezone. + +The properties Expression, Timezone, Type are required. + +```go +type ManagedAgentsScheduleParams struct { + // 5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., + // "0 9 \* \* 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean + // Sunday. Extended cron syntax - seconds or year fields, and the special + // characters L, W, #, and ? - is not supported, nor are predefined shortcuts + // (@daily). + Expression string `json:"expression" api:"required"` + // Required. IANA timezone identifier (e.g., "America/Los_Angeles", "UTC"). + // Validated against the IANA timezone database. + Timezone string `json:"timezone" api:"required"` + // Any of "cron". + Type ManagedAgentsScheduleParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsScheduleParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsScheduleParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsScheduleParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsScheduleParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsScheduleParamsType]() + + + +```go +type ManagedAgentsScheduleParamsType string +``` + + + +```go +const ( + ManagedAgentsScheduleParamsTypeCron ManagedAgentsScheduleParamsType = "cron" +) +``` + + +## type [ManagedAgentsScheduleTriggerContext]() + +The run was fired by the deployment's cron schedule. + +```go +type ManagedAgentsScheduleTriggerContext struct { + // A timestamp in RFC 3339 format + ScheduledAt time.Time `json:"scheduled_at" api:"required" format:"date-time"` + // Any of "schedule". + Type ManagedAgentsScheduleTriggerContextType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ScheduledAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsScheduleTriggerContext\) [RawJSON]() + +```go +func (r ManagedAgentsScheduleTriggerContext) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsScheduleTriggerContext\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsScheduleTriggerContext) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsScheduleTriggerContextType]() + + + +```go +type ManagedAgentsScheduleTriggerContextType string +``` + + + +```go +const ( + ManagedAgentsScheduleTriggerContextTypeSchedule ManagedAgentsScheduleTriggerContextType = "schedule" +) +``` + + +## type [ManagedAgentsScheduleType]() + + + +```go +type ManagedAgentsScheduleType string +``` + + + +```go +const ( + ManagedAgentsScheduleTypeCron ManagedAgentsScheduleType = "cron" +) +``` + + +## type [ManagedAgentsSearchResultBlock]() + +A block containing a web search result. + +```go +type ManagedAgentsSearchResultBlock struct { + // Citation settings for a search result. + Citations ManagedAgentsSearchResultCitations `json:"citations" api:"required"` + // Array of text content blocks from the search result. + Content []ManagedAgentsSearchResultContent `json:"content" api:"required"` + // The URL source of the search result. + Source string `json:"source" api:"required"` + // The title of the search result. + Title string `json:"title" api:"required"` + // Any of "search_result". + Type ManagedAgentsSearchResultBlockType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Citations respjson.Field + Content respjson.Field + Source respjson.Field + Title respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSearchResultBlock\) [RawJSON]() + +```go +func (r ManagedAgentsSearchResultBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsSearchResultBlock\) [ToParam]() + +```go +func (r ManagedAgentsSearchResultBlock) ToParam() ManagedAgentsSearchResultBlockParam +``` + +ToParam converts this ManagedAgentsSearchResultBlock to a ManagedAgentsSearchResultBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsSearchResultBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsSearchResultBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultBlockParam]() + +A block containing a web search result. + +The properties Citations, Content, Source, Title, Type are required. + +```go +type ManagedAgentsSearchResultBlockParam struct { + // Citation settings for a search result. + Citations ManagedAgentsSearchResultCitationsParam `json:"citations,omitzero" api:"required"` + // Array of text content blocks from the search result. + Content []ManagedAgentsSearchResultContentParam `json:"content,omitzero" api:"required"` + // The URL source of the search result. + Source string `json:"source" api:"required"` + // The title of the search result. + Title string `json:"title" api:"required"` + // Any of "search_result". + Type ManagedAgentsSearchResultBlockType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSearchResultBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsSearchResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSearchResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultBlockType]() + + + +```go +type ManagedAgentsSearchResultBlockType string +``` + + + +```go +const ( + ManagedAgentsSearchResultBlockTypeSearchResult ManagedAgentsSearchResultBlockType = "search_result" +) +``` + + +## type [ManagedAgentsSearchResultCitations]() + +Citation settings for a search result. + +```go +type ManagedAgentsSearchResultCitations struct { + // Whether citations are enabled for this search result. + Enabled bool `json:"enabled" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSearchResultCitations\) [RawJSON]() + +```go +func (r ManagedAgentsSearchResultCitations) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsSearchResultCitations\) [ToParam]() + +```go +func (r ManagedAgentsSearchResultCitations) ToParam() ManagedAgentsSearchResultCitationsParam +``` + +ToParam converts this ManagedAgentsSearchResultCitations to a ManagedAgentsSearchResultCitationsParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsSearchResultCitationsParam.Overrides\(\) + + +### func \(\*ManagedAgentsSearchResultCitations\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultCitations) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultCitationsParam]() + +Citation settings for a search result. + +The property Enabled is required. + +```go +type ManagedAgentsSearchResultCitationsParam struct { + // Whether citations are enabled for this search result. + Enabled bool `json:"enabled" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSearchResultCitationsParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsSearchResultCitationsParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSearchResultCitationsParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultCitationsParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultContent]() + +Text content within a search result. + +```go +type ManagedAgentsSearchResultContent struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsSearchResultContentType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Text respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSearchResultContent\) [RawJSON]() + +```go +func (r ManagedAgentsSearchResultContent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsSearchResultContent\) [ToParam]() + +```go +func (r ManagedAgentsSearchResultContent) ToParam() ManagedAgentsSearchResultContentParam +``` + +ToParam converts this ManagedAgentsSearchResultContent to a ManagedAgentsSearchResultContentParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsSearchResultContentParam.Overrides\(\) + + +### func \(\*ManagedAgentsSearchResultContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultContentParam]() + +Text content within a search result. + +The properties Text, Type are required. + +```go +type ManagedAgentsSearchResultContentParam struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsSearchResultContentType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSearchResultContentParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsSearchResultContentParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSearchResultContentParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSearchResultContentParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSearchResultContentType]() + + + +```go +type ManagedAgentsSearchResultContentType string +``` + + + +```go +const ( + ManagedAgentsSearchResultContentTypeText ManagedAgentsSearchResultContentType = "text" +) +``` + + +## type [ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError]() + +The deployment configures resources, but its environment is self\-hosted and cannot mount them. + +```go +type ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError struct { + // Any of "self_hosted_resources_unsupported_error". + Type ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorTypeSelfHostedResourcesUnsupportedError ManagedAgentsSelfHostedResourcesUnsupportedDeploymentPausedReasonErrorType = "self_hosted_resources_unsupported_error" +) +``` + + +## type [ManagedAgentsSelfHostedResourcesUnsupportedRunError]() + +The deployment configures resources, but its environment is self\-hosted and cannot mount them. + +```go +type ManagedAgentsSelfHostedResourcesUnsupportedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "self_hosted_resources_unsupported_error". + Type ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSelfHostedResourcesUnsupportedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsSelfHostedResourcesUnsupportedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSelfHostedResourcesUnsupportedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSelfHostedResourcesUnsupportedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType]() + + + +```go +type ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsSelfHostedResourcesUnsupportedRunErrorTypeSelfHostedResourcesUnsupportedError ManagedAgentsSelfHostedResourcesUnsupportedRunErrorType = "self_hosted_resources_unsupported_error" +) +``` + + +## type [ManagedAgentsSendSessionEvents]() + +Events that were successfully sent to the session. + +```go +type ManagedAgentsSendSessionEvents struct { + // Sent events + Data []ManagedAgentsSendSessionEventsDataUnion `json:"data"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSendSessionEvents\) [RawJSON]() + +```go +func (r ManagedAgentsSendSessionEvents) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSendSessionEvents\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSendSessionEvents) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSendSessionEventsDataUnion]() + +ManagedAgentsSendSessionEventsDataUnion contains all possible properties and values from [ManagedAgentsUserMessageEvent](<#ManagedAgentsUserMessageEvent>), [ManagedAgentsUserInterruptEvent](<#ManagedAgentsUserInterruptEvent>), [ManagedAgentsUserToolConfirmationEvent](<#ManagedAgentsUserToolConfirmationEvent>), [ManagedAgentsUserCustomToolResultEvent](<#ManagedAgentsUserCustomToolResultEvent>), [ManagedAgentsUserDefineOutcomeEvent](<#ManagedAgentsUserDefineOutcomeEvent>), [ManagedAgentsUserToolResultEvent](<#ManagedAgentsUserToolResultEvent>), [ManagedAgentsSystemMessageEvent](<#ManagedAgentsSystemMessageEvent>). + +Use the [ManagedAgentsSendSessionEventsDataUnion.AsAny](<#ManagedAgentsSendSessionEventsDataUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSendSessionEventsDataUnion struct { + ID string `json:"id"` + // This field is a union of [[]ManagedAgentsUserMessageEventContentUnion], + // [[]ManagedAgentsUserCustomToolResultEventContentUnion], + // [[]ManagedAgentsUserToolResultEventContentUnion], + // [[]ManagedAgentsSystemContentBlock] + Content ManagedAgentsSendSessionEventsDataUnionContent `json:"content"` + // Any of "user.message", "user.interrupt", "user.tool_confirmation", + // "user.custom_tool_result", "user.define_outcome", "user.tool_result", + // "system.message". + Type string `json:"type"` + ProcessedAt time.Time `json:"processed_at"` + SessionThreadID string `json:"session_thread_id"` + // This field is from variant [ManagedAgentsUserToolConfirmationEvent]. + Result ManagedAgentsUserToolConfirmationEventResult `json:"result"` + ToolUseID string `json:"tool_use_id"` + // This field is from variant [ManagedAgentsUserToolConfirmationEvent]. + DenyMessage string `json:"deny_message"` + // This field is from variant [ManagedAgentsUserCustomToolResultEvent]. + CustomToolUseID string `json:"custom_tool_use_id"` + IsError bool `json:"is_error"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + MaxIterations int64 `json:"max_iterations"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + OutcomeID string `json:"outcome_id"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Rubric ManagedAgentsUserDefineOutcomeEventRubricUnion `json:"rubric"` + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Result respjson.Field + ToolUseID respjson.Field + DenyMessage respjson.Field + CustomToolUseID respjson.Field + IsError respjson.Field + Description respjson.Field + MaxIterations respjson.Field + OutcomeID respjson.Field + Rubric respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsAny]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsAny() anyManagedAgentsSendSessionEventsData +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSendSessionEventsDataUnion.AsAny().(type) { +case qoder.ManagedAgentsUserMessageEvent: +case qoder.ManagedAgentsUserInterruptEvent: +case qoder.ManagedAgentsUserToolConfirmationEvent: +case qoder.ManagedAgentsUserCustomToolResultEvent: +case qoder.ManagedAgentsUserDefineOutcomeEvent: +case qoder.ManagedAgentsUserToolResultEvent: +case qoder.ManagedAgentsSystemMessageEvent: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsSystemMessage]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsSystemMessage() (v ManagedAgentsSystemMessageEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserCustomToolResult]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserCustomToolResult() (v ManagedAgentsUserCustomToolResultEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserDefineOutcome]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserDefineOutcome() (v ManagedAgentsUserDefineOutcomeEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserInterrupt]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserInterrupt() (v ManagedAgentsUserInterruptEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserMessage]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserMessage() (v ManagedAgentsUserMessageEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserToolConfirmation]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserToolConfirmation() (v ManagedAgentsUserToolConfirmationEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [AsUserToolResult]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) AsUserToolResult() (v ManagedAgentsUserToolResultEvent) +``` + + + + +### func \(ManagedAgentsSendSessionEventsDataUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSendSessionEventsDataUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSendSessionEventsDataUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSendSessionEventsDataUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSendSessionEventsDataUnionContent]() + +ManagedAgentsSendSessionEventsDataUnionContent is an implicit subunion of [ManagedAgentsSendSessionEventsDataUnion](<#ManagedAgentsSendSessionEventsDataUnion>). ManagedAgentsSendSessionEventsDataUnionContent provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSendSessionEventsDataUnion](<#ManagedAgentsSendSessionEventsDataUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsUserMessageEventContentArray OfManagedAgentsUserCustomToolResultEventContentArray OfManagedAgentsUserToolResultEventContentArray OfManagedAgentsSystemContentBlockArray\] + +```go +type ManagedAgentsSendSessionEventsDataUnionContent struct { + // This field will be present if the value is a + // [[]ManagedAgentsUserMessageEventContentUnion] instead of an object. + OfManagedAgentsUserMessageEventContentArray []ManagedAgentsUserMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserCustomToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserCustomToolResultEventContentArray []ManagedAgentsUserCustomToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserToolResultEventContentArray []ManagedAgentsUserToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsSystemContentBlock] instead of an object. + OfManagedAgentsSystemContentBlockArray []ManagedAgentsSystemContentBlock `json:",inline"` + JSON struct { + OfManagedAgentsUserMessageEventContentArray respjson.Field + OfManagedAgentsUserCustomToolResultEventContentArray respjson.Field + OfManagedAgentsUserToolResultEventContentArray respjson.Field + OfManagedAgentsSystemContentBlockArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSendSessionEventsDataUnionContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSendSessionEventsDataUnionContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsServerToolUsage]() + +Cumulative count of server\-executed tool invocations, broken down by tool. + +```go +type ManagedAgentsServerToolUsage struct { + // Number of server-executed web fetch requests. + WebFetchRequests int64 `json:"web_fetch_requests"` + // Number of server-executed web search requests. + WebSearchRequests int64 `json:"web_search_requests"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + WebFetchRequests respjson.Field + WebSearchRequests respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsServerToolUsage\) [RawJSON]() + +```go +func (r ManagedAgentsServerToolUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsServerToolUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsServerToolUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsServiceAccountActor]() + +Attribution for a write made by a workload authenticated as a service account, for example via Workload Identity Federation. + +```go +type ManagedAgentsServiceAccountActor struct { + // ID of the service account that performed the write (a `svac_...` value). + ServiceAccountID string `json:"service_account_id" api:"required"` + Type constant.ServiceAccountActor `json:"type" default:"service_account_actor"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ServiceAccountID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsServiceAccountActor\) [RawJSON]() + +```go +func (r ManagedAgentsServiceAccountActor) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsServiceAccountActor\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsServiceAccountActor) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSession]() + +A Managed Agents \`session\`. + +```go +type ManagedAgentsSession struct { + EnvironmentVariables map[string]string `json:"environment_variables"` + + ID string `json:"id" api:"required"` + // Resolved `agent` definition for a `session`. Snapshot of the `agent` at + // `session` creation time. + Agent ManagedAgentsSessionAgent `json:"agent" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimit `json:"budget" api:"required"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + EnvironmentID string `json:"environment_id" api:"required"` + Metadata map[string]string `json:"metadata" api:"required"` + // Per-outcome evaluation state. One entry per `define_outcome` event sent to the + // session. + OutcomeEvaluations []ManagedAgentsOutcomeEvaluationResource `json:"outcome_evaluations" api:"required"` + Resources []ManagedAgentsSessionResourceUnion `json:"resources" api:"required"` + // Timing statistics for a session. + Stats ManagedAgentsSessionStats `json:"stats" api:"required"` + // SessionStatus enum + // + // Any of "rescheduling", "running", "idle", "terminated". + Status ManagedAgentsSessionStatus `json:"status" api:"required"` + Title string `json:"title" api:"required"` + // Any of "session". + Type ManagedAgentsSessionType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // Cumulative token usage for a session across all turns. + Usage ManagedAgentsSessionUsage `json:"usage" api:"required"` + // Vault IDs attached to the session at creation. Empty when no vaults were + // supplied. + VaultIDs []string `json:"vault_ids" api:"required"` + // Deployment ID when the session was created from a deployment reference. Null + // otherwise. + DeploymentID string `json:"deployment_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + EnvironmentVariables respjson.Field + + ID respjson.Field + Agent respjson.Field + ArchivedAt respjson.Field + Budget respjson.Field + CreatedAt respjson.Field + EnvironmentID respjson.Field + Metadata respjson.Field + OutcomeEvaluations respjson.Field + Resources respjson.Field + Stats respjson.Field + Status respjson.Field + Title respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Usage respjson.Field + VaultIDs respjson.Field + DeploymentID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSession\) [RawJSON]() + +```go +func (r ManagedAgentsSession) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSession\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSession) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionActor]() + +Attribution for a write made by an agent during a session, through the mounted filesystem at \`/mnt/memory/\`. + +```go +type ManagedAgentsSessionActor struct { + // ID of the session that performed the write (a `sesn_...` value). Look up the + // session via [Retrieve a session](/en/api/beta/sessions/retrieve) for further + // provenance. + SessionID string `json:"session_id" api:"required"` + // Any of "session_actor". + Type ManagedAgentsSessionActorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + SessionID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionActor\) [RawJSON]() + +```go +func (r ManagedAgentsSessionActor) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionActor\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionActor) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionActorType]() + + + +```go +type ManagedAgentsSessionActorType string +``` + + + +```go +const ( + ManagedAgentsSessionActorTypeSessionActor ManagedAgentsSessionActorType = "session_actor" +) +``` + + +## type [ManagedAgentsSessionAgent]() + +Resolved \`agent\` definition for a \`session\`. Snapshot of the \`agent\` at \`session\` creation time. + +```go +type ManagedAgentsSessionAgent struct { + ID string `json:"id" api:"required"` + Description string `json:"description" api:"required"` + MCPServers []ManagedAgentsMCPServerURLDefinition `json:"mcp_servers" api:"required"` + // Model identifier and configuration. + Model ManagedAgentsModelConfig `json:"model" api:"required"` + // Resolved coordinator topology with full agent definitions for each roster + // member. + Multiagent ManagedAgentsSessionMultiagentCoordinator `json:"multiagent" api:"required"` + Name string `json:"name" api:"required"` + Skills []ManagedAgentsSessionAgentSkillUnion `json:"skills" api:"required"` + System string `json:"system" api:"required"` + Tools []ManagedAgentsSessionAgentToolUnion `json:"tools" api:"required"` + // Any of "agent". + Type ManagedAgentsSessionAgentType `json:"type" api:"required"` + Version int64 `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Description respjson.Field + MCPServers respjson.Field + Model respjson.Field + Multiagent respjson.Field + Name respjson.Field + Skills respjson.Field + System respjson.Field + Tools respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionAgent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionAgent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionAgent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentSkillUnion]() + +ManagedAgentsSessionAgentSkillUnion contains all possible properties and values from [ManagedAgentsQoderSkill](<#ManagedAgentsQoderSkill>), [ManagedAgentsCustomSkill](<#ManagedAgentsCustomSkill>). + +Use the [ManagedAgentsSessionAgentSkillUnion.AsAny](<#ManagedAgentsSessionAgentSkillUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionAgentSkillUnion struct { + SkillID string `json:"skill_id"` + // Any of "qoder", "custom". + Type string `json:"type"` + Version string `json:"version"` + JSON struct { + SkillID respjson.Field + Type respjson.Field + Version respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionAgentSkillUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionAgentSkillUnion) AsAny() anyManagedAgentsSessionAgentSkill +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionAgentSkillUnion.AsAny().(type) { +case qoder.ManagedAgentsQoderSkill: +case qoder.ManagedAgentsCustomSkill: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionAgentSkillUnion\) [AsCustom]() + +```go +func (u ManagedAgentsSessionAgentSkillUnion) AsCustom() (v ManagedAgentsCustomSkill) +``` + + + + +### func \(ManagedAgentsSessionAgentSkillUnion\) [AsQoder]() + +```go +func (u ManagedAgentsSessionAgentSkillUnion) AsQoder() (v ManagedAgentsQoderSkill) +``` + + + + +### func \(ManagedAgentsSessionAgentSkillUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionAgentSkillUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionAgentSkillUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentSkillUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentToolUnion]() + +ManagedAgentsSessionAgentToolUnion contains all possible properties and values from [ManagedAgentsAgentToolset20260401](<#ManagedAgentsAgentToolset20260401>), [ManagedAgentsMCPToolset](<#ManagedAgentsMCPToolset>), [ManagedAgentsCustomTool](<#ManagedAgentsCustomTool>). + +Use the [ManagedAgentsSessionAgentToolUnion.AsAny](<#ManagedAgentsSessionAgentToolUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionAgentToolUnion struct { + EnabledTools []string `json:"enabled_tools"` + DisallowedTools []string `json:"disallowed_tools"` + // This field is a union of [[]ManagedAgentsAgentToolConfigUnion], + // [[]ManagedAgentsMCPToolConfig] + Configs ManagedAgentsSessionAgentToolUnionConfigs `json:"configs"` + // This field is a union of [ManagedAgentsAgentToolsetDefaultConfig], + // [ManagedAgentsMCPToolsetDefaultConfig] + DefaultConfig ManagedAgentsSessionAgentToolUnionDefaultConfig `json:"default_config"` + // Any of "agent_toolset_20260401", "mcp_toolset", "custom". + Type string `json:"type"` + // This field is from variant [ManagedAgentsMCPToolset]. + MCPServerName string `json:"mcp_server_name"` + // This field is from variant [ManagedAgentsCustomTool]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsCustomTool]. + InputSchema ManagedAgentsCustomToolInputSchema `json:"input_schema"` + // This field is from variant [ManagedAgentsCustomTool]. + Name string `json:"name"` + JSON struct { + EnabledTools respjson.Field + DisallowedTools respjson.Field + Configs respjson.Field + DefaultConfig respjson.Field + Type respjson.Field + MCPServerName respjson.Field + Description respjson.Field + InputSchema respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionAgentToolUnion\) [AsAgentToolset20260401]() + +```go +func (u ManagedAgentsSessionAgentToolUnion) AsAgentToolset20260401() (v ManagedAgentsAgentToolset20260401) +``` + + + + +### func \(ManagedAgentsSessionAgentToolUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionAgentToolUnion) AsAny() anyManagedAgentsSessionAgentTool +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionAgentToolUnion.AsAny().(type) { +case qoder.ManagedAgentsAgentToolset20260401: +case qoder.ManagedAgentsMCPToolset: +case qoder.ManagedAgentsCustomTool: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionAgentToolUnion\) [AsCustom]() + +```go +func (u ManagedAgentsSessionAgentToolUnion) AsCustom() (v ManagedAgentsCustomTool) +``` + + + + +### func \(ManagedAgentsSessionAgentToolUnion\) [AsMCPToolset]() + +```go +func (u ManagedAgentsSessionAgentToolUnion) AsMCPToolset() (v ManagedAgentsMCPToolset) +``` + + + + +### func \(ManagedAgentsSessionAgentToolUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionAgentToolUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionAgentToolUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentToolUnionConfigs]() + +ManagedAgentsSessionAgentToolUnionConfigs is an implicit subunion of [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). ManagedAgentsSessionAgentToolUnionConfigs provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsAgentToolConfigArray OfManagedAgentsMCPToolConfigArray\] + +```go +type ManagedAgentsSessionAgentToolUnionConfigs struct { + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolConfigUnion] instead of an object. + OfManagedAgentsAgentToolConfigArray []ManagedAgentsAgentToolConfigUnion `json:",inline"` + // This field will be present if the value is a [[]ManagedAgentsMCPToolConfig] + // instead of an object. + OfManagedAgentsMCPToolConfigArray []ManagedAgentsMCPToolConfig `json:",inline"` + JSON struct { + OfManagedAgentsAgentToolConfigArray respjson.Field + OfManagedAgentsMCPToolConfigArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionAgentToolUnionConfigs\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentToolUnionConfigs) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentToolUnionDefaultConfig]() + +ManagedAgentsSessionAgentToolUnionDefaultConfig is an implicit subunion of [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). ManagedAgentsSessionAgentToolUnionDefaultConfig provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). + +```go +type ManagedAgentsSessionAgentToolUnionDefaultConfig struct { + Enabled bool `json:"enabled"` + // This field is a union of + // [ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion], + // [ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion] + PermissionPolicy ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy `json:"permission_policy"` + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionAgentToolUnionDefaultConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentToolUnionDefaultConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy]() + +ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy is an implicit subunion of [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionAgentToolUnion](<#ManagedAgentsSessionAgentToolUnion>). + +```go +type ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentToolUnionDefaultConfigPermissionPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentType]() + + + +```go +type ManagedAgentsSessionAgentType string +``` + + + +```go +const ( + ManagedAgentsSessionAgentTypeAgent ManagedAgentsSessionAgentType = "agent" +) +``` + + +## type [ManagedAgentsSessionAgentUpdateParam]() + +Mid\-session agent configuration update. Only \`tools\` and \`mcp\_servers\` are updatable. Full replacement: the provided array becomes the new value. To preserve existing entries, GET the session, modify the array, and POST it back. + +```go +type ManagedAgentsSessionAgentUpdateParam struct { + Model ManagedAgentsModelConfigParams `json:"model,omitzero"` + System param.Opt[string] `json:"system,omitzero"` + Skills []ManagedAgentsSkillParamsUnion `json:"skills,omitzero"` + + // Replacement MCP server list. Full replacement: the provided array becomes the + // new value. Send an empty array to clear; omit to preserve. + MCPServers []ManagedAgentsURLMCPServerParams `json:"mcp_servers,omitzero"` + // Replacement tool list. Full replacement: the provided array becomes the new + // value. Send an empty array to clear; omit to preserve. + Tools []ManagedAgentsSessionAgentUpdateToolUnionParam `json:"tools,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSessionAgentUpdateParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsSessionAgentUpdateParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSessionAgentUpdateParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionAgentUpdateParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionAgentUpdateToolUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsSessionAgentUpdateToolUnionParam struct { + OfAgentToolset20260401 *ManagedAgentsAgentToolset20260401Params `json:",omitzero,inline"` + OfMCPToolset *ManagedAgentsMCPToolsetParams `json:",omitzero,inline"` + OfCustom *ManagedAgentsCustomToolParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetConfigs]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetConfigs() (res managedAgentsSessionAgentUpdateToolUnionParamConfigs) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetDefaultConfig]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetDefaultConfig() (res managedAgentsSessionAgentUpdateToolUnionParamDefaultConfig) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetDescription]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetInputSchema]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetInputSchema() *ManagedAgentsCustomToolInputSchemaParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetMCPServerName]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetMCPServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetName]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [GetType]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSessionAgentUpdateToolUnionParam\) [MarshalJSON]() + +```go +func (u ManagedAgentsSessionAgentUpdateToolUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsSessionAgentUpdateToolUnionParam\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsSessionAgentUpdateToolUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionBudgetReached]() + +The agent stopped because the session's tracked list cost reached its budget, or because its usage includes a model with no list price \(which the budget cannot measure\). Raise the budget to continue — or, if raising is rejected because a model has no list price, remove the budget. + +```go +type ManagedAgentsSessionBudgetReached struct { + // Any of "budget_reached". + Type ManagedAgentsSessionBudgetReachedType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionBudgetReached\) [RawJSON]() + +```go +func (r ManagedAgentsSessionBudgetReached) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionBudgetReached\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionBudgetReached) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionBudgetReachedType]() + + + +```go +type ManagedAgentsSessionBudgetReachedType string +``` + + + +```go +const ( + ManagedAgentsSessionBudgetReachedTypeBudgetReached ManagedAgentsSessionBudgetReachedType = "budget_reached" +) +``` + + +## type [ManagedAgentsSessionCreationRejectedRunError]() + +The session create request was rejected with a non\-retryable validation error. + +```go +type ManagedAgentsSessionCreationRejectedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "session_creation_rejected_error". + Type ManagedAgentsSessionCreationRejectedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionCreationRejectedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsSessionCreationRejectedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionCreationRejectedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionCreationRejectedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionCreationRejectedRunErrorType]() + + + +```go +type ManagedAgentsSessionCreationRejectedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsSessionCreationRejectedRunErrorTypeSessionCreationRejectedError ManagedAgentsSessionCreationRejectedRunErrorType = "session_creation_rejected_error" +) +``` + + +## type [ManagedAgentsSessionDeletedEvent]() + +Emitted when a session has been deleted. Terminates any active event stream — no further events will be emitted for this session. + +```go +type ManagedAgentsSessionDeletedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.deleted". + Type ManagedAgentsSessionDeletedEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionDeletedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionDeletedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionDeletedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionDeletedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionDeletedEventType]() + + + +```go +type ManagedAgentsSessionDeletedEventType string +``` + + + +```go +const ( + ManagedAgentsSessionDeletedEventTypeSessionDeleted ManagedAgentsSessionDeletedEventType = "session.deleted" +) +``` + + +## type [ManagedAgentsSessionEndTurn]() + +The agent completed its turn naturally and is ready for the next user message. + +```go +type ManagedAgentsSessionEndTurn struct { + // Any of "end_turn". + Type ManagedAgentsSessionEndTurnType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionEndTurn\) [RawJSON]() + +```go +func (r ManagedAgentsSessionEndTurn) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionEndTurn\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionEndTurn) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionEndTurnType]() + + + +```go +type ManagedAgentsSessionEndTurnType string +``` + + + +```go +const ( + ManagedAgentsSessionEndTurnTypeEndTurn ManagedAgentsSessionEndTurnType = "end_turn" +) +``` + + +## type [ManagedAgentsSessionErrorEvent]() + +An error event indicating a problem occurred during session execution. + +```go +type ManagedAgentsSessionErrorEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // An unknown or unexpected error occurred during session execution. A fallback + // variant; clients that don't recognize a new error code can match on + // `retry_status` and `message` alone. + Error ManagedAgentsSessionErrorEventErrorUnion `json:"error" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.error". + Type ManagedAgentsSessionErrorEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Error respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionErrorEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionErrorEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionErrorEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionErrorEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionErrorEventErrorUnion]() + +ManagedAgentsSessionErrorEventErrorUnion contains all possible properties and values from [ManagedAgentsUnknownError](<#ManagedAgentsUnknownError>), [ManagedAgentsModelOverloadedError](<#ManagedAgentsModelOverloadedError>), [ManagedAgentsModelRateLimitedError](<#ManagedAgentsModelRateLimitedError>), [ManagedAgentsModelRequestFailedError](<#ManagedAgentsModelRequestFailedError>), [ManagedAgentsMCPConnectionFailedError](<#ManagedAgentsMCPConnectionFailedError>), [ManagedAgentsMCPAuthenticationFailedError](<#ManagedAgentsMCPAuthenticationFailedError>), [ManagedAgentsBillingError](<#ManagedAgentsBillingError>), [ManagedAgentsCredentialHostUnreachableError](<#ManagedAgentsCredentialHostUnreachableError>). + +Use the [ManagedAgentsSessionErrorEventErrorUnion.AsAny](<#ManagedAgentsSessionErrorEventErrorUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionErrorEventErrorUnion struct { + Message string `json:"message"` + // This field is a union of [ManagedAgentsUnknownErrorRetryStatusUnion], + // [ManagedAgentsModelOverloadedErrorRetryStatusUnion], + // [ManagedAgentsModelRateLimitedErrorRetryStatusUnion], + // [ManagedAgentsModelRequestFailedErrorRetryStatusUnion], + // [ManagedAgentsMCPConnectionFailedErrorRetryStatusUnion], + // [ManagedAgentsMCPAuthenticationFailedErrorRetryStatusUnion], + // [ManagedAgentsBillingErrorRetryStatusUnion], + // [ManagedAgentsCredentialHostUnreachableErrorRetryStatusUnion] + RetryStatus ManagedAgentsSessionErrorEventErrorUnionRetryStatus `json:"retry_status"` + // Any of "unknown_error", "model_overloaded_error", "model_rate_limited_error", + // "model_request_failed_error", "mcp_connection_failed_error", + // "mcp_authentication_failed_error", "billing_error", + // "credential_host_unreachable_error". + Type string `json:"type"` + MCPServerName string `json:"mcp_server_name"` + // This field is from variant [ManagedAgentsCredentialHostUnreachableError]. + CredentialID string `json:"credential_id"` + // This field is from variant [ManagedAgentsCredentialHostUnreachableError]. + VaultID string `json:"vault_id"` + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + MCPServerName respjson.Field + CredentialID respjson.Field + VaultID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsAny() anyManagedAgentsSessionErrorEventError +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionErrorEventErrorUnion.AsAny().(type) { +case qoder.ManagedAgentsUnknownError: +case qoder.ManagedAgentsModelOverloadedError: +case qoder.ManagedAgentsModelRateLimitedError: +case qoder.ManagedAgentsModelRequestFailedError: +case qoder.ManagedAgentsMCPConnectionFailedError: +case qoder.ManagedAgentsMCPAuthenticationFailedError: +case qoder.ManagedAgentsBillingError: +case qoder.ManagedAgentsCredentialHostUnreachableError: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsBillingError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsBillingError() (v ManagedAgentsBillingError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsCredentialHostUnreachableError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsCredentialHostUnreachableError() (v ManagedAgentsCredentialHostUnreachableError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsMCPAuthenticationFailedError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsMCPAuthenticationFailedError() (v ManagedAgentsMCPAuthenticationFailedError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsMCPConnectionFailedError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsMCPConnectionFailedError() (v ManagedAgentsMCPConnectionFailedError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsModelOverloadedError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsModelOverloadedError() (v ManagedAgentsModelOverloadedError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsModelRateLimitedError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsModelRateLimitedError() (v ManagedAgentsModelRateLimitedError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsModelRequestFailedError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsModelRequestFailedError() (v ManagedAgentsModelRequestFailedError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [AsUnknownError]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) AsUnknownError() (v ManagedAgentsUnknownError) +``` + + + + +### func \(ManagedAgentsSessionErrorEventErrorUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionErrorEventErrorUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionErrorEventErrorUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionErrorEventErrorUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionErrorEventErrorUnionRetryStatus]() + +ManagedAgentsSessionErrorEventErrorUnionRetryStatus is an implicit subunion of [ManagedAgentsSessionErrorEventErrorUnion](<#ManagedAgentsSessionErrorEventErrorUnion>). ManagedAgentsSessionErrorEventErrorUnionRetryStatus provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionErrorEventErrorUnion](<#ManagedAgentsSessionErrorEventErrorUnion>). + +```go +type ManagedAgentsSessionErrorEventErrorUnionRetryStatus struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionErrorEventErrorUnionRetryStatus\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionErrorEventErrorUnionRetryStatus) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionErrorEventType]() + + + +```go +type ManagedAgentsSessionErrorEventType string +``` + + + +```go +const ( + ManagedAgentsSessionErrorEventTypeSessionError ManagedAgentsSessionErrorEventType = "session.error" +) +``` + + +## type [ManagedAgentsSessionEventUnion]() + +ManagedAgentsSessionEventUnion contains all possible properties and values from [ManagedAgentsUserMessageEvent](<#ManagedAgentsUserMessageEvent>), [ManagedAgentsUserInterruptEvent](<#ManagedAgentsUserInterruptEvent>), [ManagedAgentsUserToolConfirmationEvent](<#ManagedAgentsUserToolConfirmationEvent>), [ManagedAgentsUserCustomToolResultEvent](<#ManagedAgentsUserCustomToolResultEvent>), [ManagedAgentsAgentCustomToolUseEvent](<#ManagedAgentsAgentCustomToolUseEvent>), [ManagedAgentsAgentMessageEvent](<#ManagedAgentsAgentMessageEvent>), [ManagedAgentsAgentThinkingEvent](<#ManagedAgentsAgentThinkingEvent>), [ManagedAgentsAgentMCPToolUseEvent](<#ManagedAgentsAgentMCPToolUseEvent>), [ManagedAgentsAgentMCPToolResultEvent](<#ManagedAgentsAgentMCPToolResultEvent>), [ManagedAgentsAgentToolUseEvent](<#ManagedAgentsAgentToolUseEvent>), [ManagedAgentsAgentToolResultEvent](<#ManagedAgentsAgentToolResultEvent>), [ManagedAgentsAgentThreadMessageReceivedEvent](<#ManagedAgentsAgentThreadMessageReceivedEvent>), [ManagedAgentsAgentThreadMessageSentEvent](<#ManagedAgentsAgentThreadMessageSentEvent>), [ManagedAgentsAgentThreadContextCompactedEvent](<#ManagedAgentsAgentThreadContextCompactedEvent>), [ManagedAgentsSessionErrorEvent](<#ManagedAgentsSessionErrorEvent>), [ManagedAgentsSessionStatusRescheduledEvent](<#ManagedAgentsSessionStatusRescheduledEvent>), [ManagedAgentsSessionStatusRunningEvent](<#ManagedAgentsSessionStatusRunningEvent>), [ManagedAgentsSessionStatusIdleEvent](<#ManagedAgentsSessionStatusIdleEvent>), [ManagedAgentsSessionStatusTerminatedEvent](<#ManagedAgentsSessionStatusTerminatedEvent>), [ManagedAgentsSessionThreadCreatedEvent](<#ManagedAgentsSessionThreadCreatedEvent>), [ManagedAgentsSpanOutcomeEvaluationStartEvent](<#ManagedAgentsSpanOutcomeEvaluationStartEvent>), [ManagedAgentsSpanOutcomeEvaluationEndEvent](<#ManagedAgentsSpanOutcomeEvaluationEndEvent>), [ManagedAgentsSpanModelRequestStartEvent](<#ManagedAgentsSpanModelRequestStartEvent>), [ManagedAgentsSpanModelRequestEndEvent](<#ManagedAgentsSpanModelRequestEndEvent>), [ManagedAgentsSpanOutcomeEvaluationOngoingEvent](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent>), [ManagedAgentsUserDefineOutcomeEvent](<#ManagedAgentsUserDefineOutcomeEvent>), [ManagedAgentsSessionDeletedEvent](<#ManagedAgentsSessionDeletedEvent>), [ManagedAgentsSessionThreadStatusRunningEvent](<#ManagedAgentsSessionThreadStatusRunningEvent>), [ManagedAgentsSessionThreadStatusIdleEvent](<#ManagedAgentsSessionThreadStatusIdleEvent>), [ManagedAgentsSessionThreadStatusTerminatedEvent](<#ManagedAgentsSessionThreadStatusTerminatedEvent>), [ManagedAgentsUserToolResultEvent](<#ManagedAgentsUserToolResultEvent>), [ManagedAgentsSessionThreadStatusRescheduledEvent](<#ManagedAgentsSessionThreadStatusRescheduledEvent>), [ManagedAgentsSessionUpdatedEvent](<#ManagedAgentsSessionUpdatedEvent>), [ManagedAgentsSystemMessageEvent](<#ManagedAgentsSystemMessageEvent>), [ManagedAgentsSessionUsageEvent](<#ManagedAgentsSessionUsageEvent>). + +Use the [ManagedAgentsSessionEventUnion.AsAny](<#ManagedAgentsSessionEventUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionEventUnion struct { + ID string `json:"id"` + // This field is a union of [[]ManagedAgentsUserMessageEventContentUnion], + // [[]ManagedAgentsUserCustomToolResultEventContentUnion], + // [[]ManagedAgentsAgentMessageEventContentUnion], + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion], + // [[]ManagedAgentsAgentToolResultEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion], + // [[]ManagedAgentsUserToolResultEventContentUnion], + // [[]ManagedAgentsSystemContentBlock] + Content ManagedAgentsSessionEventUnionContent `json:"content"` + // Any of "user.message", "user.interrupt", "user.tool_confirmation", + // "user.custom_tool_result", "agent.custom_tool_use", "agent.message", + // "agent.thinking", "agent.mcp_tool_use", "agent.mcp_tool_result", + // "agent.tool_use", "agent.tool_result", "agent.thread_message_received", + // "agent.thread_message_sent", "agent.thread_context_compacted", "session.error", + // "session.status_rescheduled", "session.status_running", "session.status_idle", + // "session.status_terminated", "session.thread_created", + // "span.outcome_evaluation_start", "span.outcome_evaluation_end", + // "span.model_request_start", "span.model_request_end", + // "span.outcome_evaluation_ongoing", "user.define_outcome", "session.deleted", + // "session.thread_status_running", "session.thread_status_idle", + // "session.thread_status_terminated", "user.tool_result", + // "session.thread_status_rescheduled", "session.updated", "system.message", + // "session.usage". + Type string `json:"type"` + ProcessedAt time.Time `json:"processed_at"` + SessionThreadID string `json:"session_thread_id"` + Result string `json:"result"` + ToolUseID string `json:"tool_use_id"` + // This field is from variant [ManagedAgentsUserToolConfirmationEvent]. + DenyMessage string `json:"deny_message"` + // This field is from variant [ManagedAgentsUserCustomToolResultEvent]. + CustomToolUseID string `json:"custom_tool_use_id"` + IsError bool `json:"is_error"` + Input any `json:"input"` + Name string `json:"name"` + // This field is from variant [ManagedAgentsAgentMCPToolUseEvent]. + MCPServerName string `json:"mcp_server_name"` + EvaluatedPermission string `json:"evaluated_permission"` + // This field is from variant [ManagedAgentsAgentMCPToolResultEvent]. + MCPToolUseID string `json:"mcp_tool_use_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromSessionThreadID string `json:"from_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromAgentName string `json:"from_agent_name"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToSessionThreadID string `json:"to_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToAgentName string `json:"to_agent_name"` + // This field is from variant [ManagedAgentsSessionErrorEvent]. + Error ManagedAgentsSessionErrorEventErrorUnion `json:"error"` + // This field is a union of + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion] + StopReason ManagedAgentsSessionEventUnionStopReason `json:"stop_reason"` + AgentName string `json:"agent_name"` + Iteration int64 `json:"iteration"` + OutcomeID string `json:"outcome_id"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + Explanation string `json:"explanation"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + OutcomeEvaluationStartID string `json:"outcome_evaluation_start_id"` + // This field is a union of [ManagedAgentsSpanModelUsage], + // [ManagedAgentsSessionUsageSnapshot] + Usage ManagedAgentsSessionEventUnionUsage `json:"usage"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelRequestStartID string `json:"model_request_start_id"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelUsage ManagedAgentsSpanModelUsage `json:"model_usage"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + MaxIterations int64 `json:"max_iterations"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Rubric ManagedAgentsUserDefineOutcomeEventRubricUnion `json:"rubric"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Agent ManagedAgentsSessionAgent `json:"agent"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Budget ManagedAgentsBudgetLimit `json:"budget"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Metadata map[string]string `json:"metadata"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Title string `json:"title"` + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Result respjson.Field + ToolUseID respjson.Field + DenyMessage respjson.Field + CustomToolUseID respjson.Field + IsError respjson.Field + Input respjson.Field + Name respjson.Field + MCPServerName respjson.Field + EvaluatedPermission respjson.Field + MCPToolUseID respjson.Field + FromSessionThreadID respjson.Field + FromAgentName respjson.Field + ToSessionThreadID respjson.Field + ToAgentName respjson.Field + Error respjson.Field + StopReason respjson.Field + AgentName respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + Explanation respjson.Field + OutcomeEvaluationStartID respjson.Field + Usage respjson.Field + ModelRequestStartID respjson.Field + ModelUsage respjson.Field + Description respjson.Field + MaxIterations respjson.Field + Rubric respjson.Field + Agent respjson.Field + Budget respjson.Field + Metadata respjson.Field + Title respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentCustomToolUse]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentCustomToolUse() (v ManagedAgentsAgentCustomToolUseEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentMCPToolResult]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentMCPToolResult() (v ManagedAgentsAgentMCPToolResultEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentMCPToolUse]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentMCPToolUse() (v ManagedAgentsAgentMCPToolUseEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentMessage]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentMessage() (v ManagedAgentsAgentMessageEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentThinking]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentThinking() (v ManagedAgentsAgentThinkingEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentThreadContextCompacted]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentThreadContextCompacted() (v ManagedAgentsAgentThreadContextCompactedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentThreadMessageReceived]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentThreadMessageReceived() (v ManagedAgentsAgentThreadMessageReceivedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentThreadMessageSent]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentThreadMessageSent() (v ManagedAgentsAgentThreadMessageSentEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentToolResult]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentToolResult() (v ManagedAgentsAgentToolResultEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAgentToolUse]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAgentToolUse() (v ManagedAgentsAgentToolUseEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionEventUnion) AsAny() anyManagedAgentsSessionEvent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionEventUnion.AsAny().(type) { +case qoder.ManagedAgentsUserMessageEvent: +case qoder.ManagedAgentsUserInterruptEvent: +case qoder.ManagedAgentsUserToolConfirmationEvent: +case qoder.ManagedAgentsUserCustomToolResultEvent: +case qoder.ManagedAgentsAgentCustomToolUseEvent: +case qoder.ManagedAgentsAgentMessageEvent: +case qoder.ManagedAgentsAgentThinkingEvent: +case qoder.ManagedAgentsAgentMCPToolUseEvent: +case qoder.ManagedAgentsAgentMCPToolResultEvent: +case qoder.ManagedAgentsAgentToolUseEvent: +case qoder.ManagedAgentsAgentToolResultEvent: +case qoder.ManagedAgentsAgentThreadMessageReceivedEvent: +case qoder.ManagedAgentsAgentThreadMessageSentEvent: +case qoder.ManagedAgentsAgentThreadContextCompactedEvent: +case qoder.ManagedAgentsSessionErrorEvent: +case qoder.ManagedAgentsSessionStatusRescheduledEvent: +case qoder.ManagedAgentsSessionStatusRunningEvent: +case qoder.ManagedAgentsSessionStatusIdleEvent: +case qoder.ManagedAgentsSessionStatusTerminatedEvent: +case qoder.ManagedAgentsSessionThreadCreatedEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationStartEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationEndEvent: +case qoder.ManagedAgentsSpanModelRequestStartEvent: +case qoder.ManagedAgentsSpanModelRequestEndEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationOngoingEvent: +case qoder.ManagedAgentsUserDefineOutcomeEvent: +case qoder.ManagedAgentsSessionDeletedEvent: +case qoder.ManagedAgentsSessionThreadStatusRunningEvent: +case qoder.ManagedAgentsSessionThreadStatusIdleEvent: +case qoder.ManagedAgentsSessionThreadStatusTerminatedEvent: +case qoder.ManagedAgentsUserToolResultEvent: +case qoder.ManagedAgentsSessionThreadStatusRescheduledEvent: +case qoder.ManagedAgentsSessionUpdatedEvent: +case qoder.ManagedAgentsSystemMessageEvent: +case qoder.ManagedAgentsSessionUsageEvent: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionDeleted]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionDeleted() (v ManagedAgentsSessionDeletedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionError]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionError() (v ManagedAgentsSessionErrorEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionStatusIdle]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionStatusIdle() (v ManagedAgentsSessionStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionStatusRescheduled]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionStatusRescheduled() (v ManagedAgentsSessionStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionStatusRunning]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionStatusRunning() (v ManagedAgentsSessionStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionStatusTerminated]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionStatusTerminated() (v ManagedAgentsSessionStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionThreadCreated]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionThreadCreated() (v ManagedAgentsSessionThreadCreatedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionThreadStatusIdle]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionThreadStatusIdle() (v ManagedAgentsSessionThreadStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionThreadStatusRescheduled]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionThreadStatusRescheduled() (v ManagedAgentsSessionThreadStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionThreadStatusRunning]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionThreadStatusRunning() (v ManagedAgentsSessionThreadStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionThreadStatusTerminated]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionThreadStatusTerminated() (v ManagedAgentsSessionThreadStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionUpdated]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionUpdated() (v ManagedAgentsSessionUpdatedEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSessionUsage]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSessionUsage() (v ManagedAgentsSessionUsageEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSpanModelRequestEnd]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSpanModelRequestEnd() (v ManagedAgentsSpanModelRequestEndEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSpanModelRequestStart]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSpanModelRequestStart() (v ManagedAgentsSpanModelRequestStartEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSpanOutcomeEvaluationEnd]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSpanOutcomeEvaluationEnd() (v ManagedAgentsSpanOutcomeEvaluationEndEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSpanOutcomeEvaluationOngoing]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSpanOutcomeEvaluationOngoing() (v ManagedAgentsSpanOutcomeEvaluationOngoingEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSpanOutcomeEvaluationStart]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSpanOutcomeEvaluationStart() (v ManagedAgentsSpanOutcomeEvaluationStartEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsSystemMessage]() + +```go +func (u ManagedAgentsSessionEventUnion) AsSystemMessage() (v ManagedAgentsSystemMessageEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserCustomToolResult]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserCustomToolResult() (v ManagedAgentsUserCustomToolResultEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserDefineOutcome]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserDefineOutcome() (v ManagedAgentsUserDefineOutcomeEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserInterrupt]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserInterrupt() (v ManagedAgentsUserInterruptEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserMessage]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserMessage() (v ManagedAgentsUserMessageEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserToolConfirmation]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserToolConfirmation() (v ManagedAgentsUserToolConfirmationEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [AsUserToolResult]() + +```go +func (u ManagedAgentsSessionEventUnion) AsUserToolResult() (v ManagedAgentsUserToolResultEvent) +``` + + + + +### func \(ManagedAgentsSessionEventUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionEventUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionEventUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionEventUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionEventUnionContent]() + +ManagedAgentsSessionEventUnionContent is an implicit subunion of [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). ManagedAgentsSessionEventUnionContent provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsUserMessageEventContentArray OfManagedAgentsUserCustomToolResultEventContentArray OfManagedAgentsAgentMessageEventContentArray OfManagedAgentsAgentMCPToolResultEventContentArray OfManagedAgentsAgentToolResultEventContentArray OfManagedAgentsAgentThreadMessageReceivedEventContentArray OfManagedAgentsAgentThreadMessageSentEventContentArray OfManagedAgentsUserToolResultEventContentArray OfManagedAgentsSystemContentBlockArray\] + +```go +type ManagedAgentsSessionEventUnionContent struct { + // This field will be present if the value is a + // [[]ManagedAgentsUserMessageEventContentUnion] instead of an object. + OfManagedAgentsUserMessageEventContentArray []ManagedAgentsUserMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserCustomToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserCustomToolResultEventContentArray []ManagedAgentsUserCustomToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMessageEventContentUnion] instead of an object. + OfManagedAgentsAgentMessageEventContentArray []ManagedAgentsAgentMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentMCPToolResultEventContentArray []ManagedAgentsAgentMCPToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentToolResultEventContentArray []ManagedAgentsAgentToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageReceivedEventContentArray []ManagedAgentsAgentThreadMessageReceivedEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageSentEventContentArray []ManagedAgentsAgentThreadMessageSentEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserToolResultEventContentArray []ManagedAgentsUserToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsSystemContentBlock] instead of an object. + OfManagedAgentsSystemContentBlockArray []ManagedAgentsSystemContentBlock `json:",inline"` + JSON struct { + OfManagedAgentsUserMessageEventContentArray respjson.Field + OfManagedAgentsUserCustomToolResultEventContentArray respjson.Field + OfManagedAgentsAgentMessageEventContentArray respjson.Field + OfManagedAgentsAgentMCPToolResultEventContentArray respjson.Field + OfManagedAgentsAgentToolResultEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageReceivedEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageSentEventContentArray respjson.Field + OfManagedAgentsUserToolResultEventContentArray respjson.Field + OfManagedAgentsSystemContentBlockArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionEventUnionContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionEventUnionContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionEventUnionStopReason]() + +ManagedAgentsSessionEventUnionStopReason is an implicit subunion of [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). ManagedAgentsSessionEventUnionStopReason provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). + +```go +type ManagedAgentsSessionEventUnionStopReason struct { + Type string `json:"type"` + // This field is from variant + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion]. + EventIDs []string `json:"event_ids"` + JSON struct { + Type respjson.Field + EventIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionEventUnionStopReason\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionEventUnionStopReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionEventUnionUsage]() + +ManagedAgentsSessionEventUnionUsage is an implicit subunion of [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). ManagedAgentsSessionEventUnionUsage provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionEventUnion](<#ManagedAgentsSessionEventUnion>). + +```go +type ManagedAgentsSessionEventUnionUsage struct { + // This field is from variant [ManagedAgentsSpanModelUsage]. + CacheCreationInputTokens int64 `json:"cache_creation_input_tokens"` + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + InputTokens int64 `json:"input_tokens"` + OutputTokens int64 `json:"output_tokens"` + // This field is from variant [ManagedAgentsSpanModelUsage]. + Speed ManagedAgentsSpanModelUsageSpeed `json:"speed"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ActiveSeconds float64 `json:"active_seconds"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ListCost MonetaryAmount `json:"list_cost"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use"` + JSON struct { + CacheCreationInputTokens respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + OutputTokens respjson.Field + Speed respjson.Field + ActiveSeconds respjson.Field + CacheCreation respjson.Field + ListCost respjson.Field + ServerToolUse respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionEventUnionUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionEventUnionUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionMultiagentCoordinator]() + +Resolved coordinator topology with full agent definitions for each roster member. + +```go +type ManagedAgentsSessionMultiagentCoordinator struct { + // Full `agent` definitions the coordinator may spawn as session threads. + Agents []ManagedAgentsSessionMultiagentCoordinatorAgentUnion `json:"agents" api:"required"` + // Any of "coordinator". + Type ManagedAgentsSessionMultiagentCoordinatorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Agents respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionMultiagentCoordinator\) [RawJSON]() + +```go +func (r ManagedAgentsSessionMultiagentCoordinator) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionMultiagentCoordinator\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionMultiagentCoordinator) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionMultiagentCoordinatorAgentUnion]() + +ManagedAgentsSessionMultiagentCoordinatorAgentUnion contains all possible properties and values from [ManagedAgentsSessionThreadAgent](<#ManagedAgentsSessionThreadAgent>), [ManagedAgentsAdvisor](<#ManagedAgentsAdvisor>). + +Use the [ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAny](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionMultiagentCoordinatorAgentUnion struct { + // This field is from variant [ManagedAgentsSessionThreadAgent]. + ID string `json:"id"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + MCPServers []ManagedAgentsMCPServerURLDefinition `json:"mcp_servers"` + // This field is a union of [ManagedAgentsModelConfig], [string] + Model ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel `json:"model"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Name string `json:"name"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Skills []ManagedAgentsSessionThreadAgentSkillUnion `json:"skills"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + System string `json:"system"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Tools []ManagedAgentsSessionThreadAgentToolUnion `json:"tools"` + // Any of "agent", "advisor". + Type string `json:"type"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Version int64 `json:"version"` + JSON struct { + ID respjson.Field + Description respjson.Field + MCPServers respjson.Field + Model respjson.Field + Name respjson.Field + Skills respjson.Field + System respjson.Field + Tools respjson.Field + Type respjson.Field + Version respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) [AsAdvisor]() + +```go +func (u ManagedAgentsSessionMultiagentCoordinatorAgentUnion) AsAdvisor() (v ManagedAgentsAdvisor) +``` + + + + +### func \(ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) [AsAgent]() + +```go +func (u ManagedAgentsSessionMultiagentCoordinatorAgentUnion) AsAgent() (v ManagedAgentsSessionThreadAgent) +``` + + + + +### func \(ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionMultiagentCoordinatorAgentUnion) AsAny() anyManagedAgentsSessionMultiagentCoordinatorAgent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionMultiagentCoordinatorAgentUnion.AsAny().(type) { +case qoder.ManagedAgentsSessionThreadAgent: +case qoder.ManagedAgentsAdvisor: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionMultiagentCoordinatorAgentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionMultiagentCoordinatorAgentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionMultiagentCoordinatorAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel]() + +ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel is an implicit subunion of [ManagedAgentsSessionMultiagentCoordinatorAgentUnion](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion>). ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionMultiagentCoordinatorAgentUnion](<#ManagedAgentsSessionMultiagentCoordinatorAgentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + // This field is from variant [ManagedAgentsModelConfig]. + ID ManagedAgentsModel `json:"id"` + // This field is from variant [ManagedAgentsModelConfig]. + Effort ManagedAgentsModelConfigEffortUnion `json:"effort"` + // This field is from variant [ManagedAgentsModelConfig]. + InferenceGeo string `json:"inference_geo"` + // This field is from variant [ManagedAgentsModelConfig]. + Speed ManagedAgentsModelConfigSpeed `json:"speed"` + JSON struct { + OfString respjson.Field + ID respjson.Field + Effort respjson.Field + InferenceGeo respjson.Field + Speed respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionMultiagentCoordinatorAgentUnionModel) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionMultiagentCoordinatorType]() + + + +```go +type ManagedAgentsSessionMultiagentCoordinatorType string +``` + + + +```go +const ( + ManagedAgentsSessionMultiagentCoordinatorTypeCoordinator ManagedAgentsSessionMultiagentCoordinatorType = "coordinator" +) +``` + + +## type [ManagedAgentsSessionRateLimitedRunError]() + +Session creation was rejected due to rate limiting. The schedule keeps firing; subsequent runs may succeed. + +```go +type ManagedAgentsSessionRateLimitedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "session_rate_limited_error". + Type ManagedAgentsSessionRateLimitedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionRateLimitedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsSessionRateLimitedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionRateLimitedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionRateLimitedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionRateLimitedRunErrorType]() + + + +```go +type ManagedAgentsSessionRateLimitedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsSessionRateLimitedRunErrorTypeSessionRateLimitedError ManagedAgentsSessionRateLimitedRunErrorType = "session_rate_limited_error" +) +``` + + +## type [ManagedAgentsSessionRequiresAction]() + +The agent is idle waiting on one or more blocking user\-input events \(tool confirmation, custom tool result, etc.\). Resolving all of them transitions the session back to running. + +```go +type ManagedAgentsSessionRequiresAction struct { + // The ids of events the agent is blocked on. Resolving fewer than all re-emits + // `session.status_idle` with the remainder. + EventIDs []string `json:"event_ids" api:"required"` + // Any of "requires_action". + Type ManagedAgentsSessionRequiresActionType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + EventIDs respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionRequiresAction\) [RawJSON]() + +```go +func (r ManagedAgentsSessionRequiresAction) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionRequiresAction\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionRequiresAction) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionRequiresActionType]() + + + +```go +type ManagedAgentsSessionRequiresActionType string +``` + + + +```go +const ( + ManagedAgentsSessionRequiresActionTypeRequiresAction ManagedAgentsSessionRequiresActionType = "requires_action" +) +``` + + +## type [ManagedAgentsSessionResourceConfigUnion]() + +ManagedAgentsSessionResourceConfigUnion contains all possible properties and values from [ManagedAgentsGitHubRepositoryResourceConfig](<#ManagedAgentsGitHubRepositoryResourceConfig>), [ManagedAgentsFileResourceConfig](<#ManagedAgentsFileResourceConfig>), [ManagedAgentsMemoryStoreResourceConfig](<#ManagedAgentsMemoryStoreResourceConfig>). + +Use the [ManagedAgentsSessionResourceConfigUnion.AsAny](<#ManagedAgentsSessionResourceConfigUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionResourceConfigUnion struct { + // Any of "github_repository", "file", "memory_store". + Type string `json:"type"` + // This field is from variant [ManagedAgentsGitHubRepositoryResourceConfig]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsGitHubRepositoryResourceConfig]. + Checkout ManagedAgentsGitHubRepositoryResourceConfigCheckoutUnion `json:"checkout"` + MountPath string `json:"mount_path"` + // This field is from variant [ManagedAgentsFileResourceConfig]. + FileID string `json:"file_id"` + // This field is from variant [ManagedAgentsMemoryStoreResourceConfig]. + MemoryStoreID string `json:"memory_store_id"` + // This field is from variant [ManagedAgentsMemoryStoreResourceConfig]. + Access ManagedAgentsMemoryStoreResourceConfigAccess `json:"access"` + // This field is from variant [ManagedAgentsMemoryStoreResourceConfig]. + Instructions string `json:"instructions"` + JSON struct { + Type respjson.Field + URL respjson.Field + Checkout respjson.Field + MountPath respjson.Field + FileID respjson.Field + MemoryStoreID respjson.Field + Access respjson.Field + Instructions respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionResourceConfigUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionResourceConfigUnion) AsAny() anyManagedAgentsSessionResourceConfig +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionResourceConfigUnion.AsAny().(type) { +case qoder.ManagedAgentsGitHubRepositoryResourceConfig: +case qoder.ManagedAgentsFileResourceConfig: +case qoder.ManagedAgentsMemoryStoreResourceConfig: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionResourceConfigUnion\) [AsFile]() + +```go +func (u ManagedAgentsSessionResourceConfigUnion) AsFile() (v ManagedAgentsFileResourceConfig) +``` + + + + +### func \(ManagedAgentsSessionResourceConfigUnion\) [AsGitHubRepository]() + +```go +func (u ManagedAgentsSessionResourceConfigUnion) AsGitHubRepository() (v ManagedAgentsGitHubRepositoryResourceConfig) +``` + + + + +### func \(ManagedAgentsSessionResourceConfigUnion\) [AsMemoryStore]() + +```go +func (u ManagedAgentsSessionResourceConfigUnion) AsMemoryStore() (v ManagedAgentsMemoryStoreResourceConfig) +``` + + + + +### func \(ManagedAgentsSessionResourceConfigUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionResourceConfigUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionResourceConfigUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionResourceConfigUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError]() + +A referenced resource no longer exists and its kind was not reported. + +```go +type ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError struct { + // Any of "session_resource_not_found_error". + Type ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorTypeSessionResourceNotFoundError ManagedAgentsSessionResourceNotFoundDeploymentPausedReasonErrorType = "session_resource_not_found_error" +) +``` + + +## type [ManagedAgentsSessionResourceNotFoundRunError]() + +A referenced resource no longer exists and its kind was not reported. + +```go +type ManagedAgentsSessionResourceNotFoundRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "session_resource_not_found_error". + Type ManagedAgentsSessionResourceNotFoundRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionResourceNotFoundRunError\) [RawJSON]() + +```go +func (r ManagedAgentsSessionResourceNotFoundRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionResourceNotFoundRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionResourceNotFoundRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionResourceNotFoundRunErrorType]() + + + +```go +type ManagedAgentsSessionResourceNotFoundRunErrorType string +``` + + + +```go +const ( + ManagedAgentsSessionResourceNotFoundRunErrorTypeSessionResourceNotFoundError ManagedAgentsSessionResourceNotFoundRunErrorType = "session_resource_not_found_error" +) +``` + + +## type [ManagedAgentsSessionResourceUnion]() + +ManagedAgentsSessionResourceUnion contains all possible properties and values from [ManagedAgentsGitHubRepositoryResource](<#ManagedAgentsGitHubRepositoryResource>), [ManagedAgentsFileResource](<#ManagedAgentsFileResource>), [ManagedAgentsMemoryStoreResource](<#ManagedAgentsMemoryStoreResource>). + +Use the [ManagedAgentsSessionResourceUnion.AsAny](<#ManagedAgentsSessionResourceUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionResourceUnion struct { + ID string `json:"id"` + CreatedAt time.Time `json:"created_at"` + MountPath string `json:"mount_path"` + // Any of "github_repository", "file", "memory_store". + Type string `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + Checkout ManagedAgentsGitHubRepositoryResourceCheckoutUnion `json:"checkout"` + // This field is from variant [ManagedAgentsFileResource]. + FileID string `json:"file_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + MemoryStoreID string `json:"memory_store_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Access ManagedAgentsMemoryStoreResourceAccess `json:"access"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Instructions string `json:"instructions"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Name string `json:"name"` + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + MountPath respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + URL respjson.Field + Checkout respjson.Field + FileID respjson.Field + MemoryStoreID respjson.Field + Access respjson.Field + Description respjson.Field + Instructions respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionResourceUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionResourceUnion) AsAny() anyManagedAgentsSessionResource +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionResourceUnion.AsAny().(type) { +case qoder.ManagedAgentsGitHubRepositoryResource: +case qoder.ManagedAgentsFileResource: +case qoder.ManagedAgentsMemoryStoreResource: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionResourceUnion\) [AsFile]() + +```go +func (u ManagedAgentsSessionResourceUnion) AsFile() (v ManagedAgentsFileResource) +``` + + + + +### func \(ManagedAgentsSessionResourceUnion\) [AsGitHubRepository]() + +```go +func (u ManagedAgentsSessionResourceUnion) AsGitHubRepository() (v ManagedAgentsGitHubRepositoryResource) +``` + + + + +### func \(ManagedAgentsSessionResourceUnion\) [AsMemoryStore]() + +```go +func (u ManagedAgentsSessionResourceUnion) AsMemoryStore() (v ManagedAgentsMemoryStoreResource) +``` + + + + +### func \(ManagedAgentsSessionResourceUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionResourceUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionResourceUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionResourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionRetriesExhausted]() + +The turn ended because repeated errors exhausted the retry budget or an error escalated to \`retry\_status: 'exhausted'\`. + +```go +type ManagedAgentsSessionRetriesExhausted struct { + // Any of "retries_exhausted". + Type ManagedAgentsSessionRetriesExhaustedType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionRetriesExhausted\) [RawJSON]() + +```go +func (r ManagedAgentsSessionRetriesExhausted) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionRetriesExhausted\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionRetriesExhausted) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionRetriesExhaustedType]() + + + +```go +type ManagedAgentsSessionRetriesExhaustedType string +``` + + + +```go +const ( + ManagedAgentsSessionRetriesExhaustedTypeRetriesExhausted ManagedAgentsSessionRetriesExhaustedType = "retries_exhausted" +) +``` + + +## type [ManagedAgentsSessionStats]() + +Timing statistics for a session. + +```go +type ManagedAgentsSessionStats struct { + // Cumulative time in seconds the session spent in `running` status. Excludes idle + // time. + ActiveSeconds float64 `json:"active_seconds"` + // Elapsed time since session creation in seconds. For terminated sessions, frozen + // at the final update. + DurationSeconds float64 `json:"duration_seconds"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ActiveSeconds respjson.Field + DurationSeconds respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStats\) [RawJSON]() + +```go +func (r ManagedAgentsSessionStats) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStats\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStats) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatus]() + +SessionStatus enum + +```go +type ManagedAgentsSessionStatus string +``` + + + +```go +const ( + ManagedAgentsSessionStatusRescheduling ManagedAgentsSessionStatus = "rescheduling" + ManagedAgentsSessionStatusRunning ManagedAgentsSessionStatus = "running" + ManagedAgentsSessionStatusIdle ManagedAgentsSessionStatus = "idle" + ManagedAgentsSessionStatusTerminated ManagedAgentsSessionStatus = "terminated" +) +``` + + +## type [ManagedAgentsSessionStatusIdleEvent]() + +Indicates the agent has paused and is awaiting user input. + +```go +type ManagedAgentsSessionStatusIdleEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // The agent completed its turn naturally and is ready for the next user message. + StopReason ManagedAgentsSessionStatusIdleEventStopReasonUnion `json:"stop_reason" api:"required"` + // Any of "session.status_idle". + Type ManagedAgentsSessionStatusIdleEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + StopReason respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStatusIdleEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionStatusIdleEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStatusIdleEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStatusIdleEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatusIdleEventStopReasonUnion]() + +ManagedAgentsSessionStatusIdleEventStopReasonUnion contains all possible properties and values from [ManagedAgentsSessionEndTurn](<#ManagedAgentsSessionEndTurn>), [ManagedAgentsSessionRequiresAction](<#ManagedAgentsSessionRequiresAction>), [ManagedAgentsSessionRetriesExhausted](<#ManagedAgentsSessionRetriesExhausted>), [ManagedAgentsSessionBudgetReached](<#ManagedAgentsSessionBudgetReached>). + +Use the [ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsAny](<#ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionStatusIdleEventStopReasonUnion struct { + // Any of "end_turn", "requires_action", "retries_exhausted", "budget_reached". + Type string `json:"type"` + // This field is from variant [ManagedAgentsSessionRequiresAction]. + EventIDs []string `json:"event_ids"` + JSON struct { + Type respjson.Field + EventIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) AsAny() anyManagedAgentsSessionStatusIdleEventStopReason +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionStatusIdleEventStopReasonUnion.AsAny().(type) { +case qoder.ManagedAgentsSessionEndTurn: +case qoder.ManagedAgentsSessionRequiresAction: +case qoder.ManagedAgentsSessionRetriesExhausted: +case qoder.ManagedAgentsSessionBudgetReached: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [AsBudgetReached]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) AsBudgetReached() (v ManagedAgentsSessionBudgetReached) +``` + + + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [AsEndTurn]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) AsEndTurn() (v ManagedAgentsSessionEndTurn) +``` + + + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [AsRequiresAction]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) AsRequiresAction() (v ManagedAgentsSessionRequiresAction) +``` + + + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [AsRetriesExhausted]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) AsRetriesExhausted() (v ManagedAgentsSessionRetriesExhausted) +``` + + + + +### func \(ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionStatusIdleEventStopReasonUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStatusIdleEventStopReasonUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStatusIdleEventStopReasonUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatusIdleEventType]() + + + +```go +type ManagedAgentsSessionStatusIdleEventType string +``` + + + +```go +const ( + ManagedAgentsSessionStatusIdleEventTypeSessionStatusIdle ManagedAgentsSessionStatusIdleEventType = "session.status_idle" +) +``` + + +## type [ManagedAgentsSessionStatusRescheduledEvent]() + +Indicates the session is recovering from an error state and is rescheduled for execution. + +```go +type ManagedAgentsSessionStatusRescheduledEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.status_rescheduled". + Type ManagedAgentsSessionStatusRescheduledEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStatusRescheduledEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionStatusRescheduledEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStatusRescheduledEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStatusRescheduledEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatusRescheduledEventType]() + + + +```go +type ManagedAgentsSessionStatusRescheduledEventType string +``` + + + +```go +const ( + ManagedAgentsSessionStatusRescheduledEventTypeSessionStatusRescheduled ManagedAgentsSessionStatusRescheduledEventType = "session.status_rescheduled" +) +``` + + +## type [ManagedAgentsSessionStatusRunningEvent]() + +Indicates the session is actively running and the agent is working. + +```go +type ManagedAgentsSessionStatusRunningEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.status_running". + Type ManagedAgentsSessionStatusRunningEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStatusRunningEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionStatusRunningEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStatusRunningEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStatusRunningEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatusRunningEventType]() + + + +```go +type ManagedAgentsSessionStatusRunningEventType string +``` + + + +```go +const ( + ManagedAgentsSessionStatusRunningEventTypeSessionStatusRunning ManagedAgentsSessionStatusRunningEventType = "session.status_running" +) +``` + + +## type [ManagedAgentsSessionStatusTerminatedEvent]() + +Indicates the session has terminated, either due to an error or completion. + +```go +type ManagedAgentsSessionStatusTerminatedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.status_terminated". + Type ManagedAgentsSessionStatusTerminatedEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionStatusTerminatedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionStatusTerminatedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionStatusTerminatedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionStatusTerminatedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionStatusTerminatedEventType]() + + + +```go +type ManagedAgentsSessionStatusTerminatedEventType string +``` + + + +```go +const ( + ManagedAgentsSessionStatusTerminatedEventTypeSessionStatusTerminated ManagedAgentsSessionStatusTerminatedEventType = "session.status_terminated" +) +``` + + +## type [ManagedAgentsSessionThread]() + +An execution thread within a \`session\`. Each session has one primary thread plus zero or more child threads spawned by the coordinator. + +```go +type ManagedAgentsSessionThread struct { + // Unique identifier for this thread. + ID string `json:"id" api:"required"` + // The resolved agent a session thread runs: a saved-agent snapshot, the platform + // advisor entry, or an inline-defined (ephemeral) agent snapshot. + Agent ManagedAgentsSessionThreadAgentUnion `json:"agent" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Parent thread that spawned this thread. Null for the primary thread. + ParentThreadID string `json:"parent_thread_id" api:"required"` + // The session this thread belongs to. + SessionID string `json:"session_id" api:"required"` + // Timing statistics for a session thread. + Stats ManagedAgentsSessionThreadStats `json:"stats" api:"required"` + // SessionThreadStatus enum + // + // Any of "running", "idle", "rescheduling", "terminated". + Status ManagedAgentsSessionThreadStatus `json:"status" api:"required"` + // Any of "session_thread". + Type ManagedAgentsSessionThreadType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // Cumulative token usage for a session thread across all turns. + Usage ManagedAgentsSessionThreadUsage `json:"usage" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Agent respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + ParentThreadID respjson.Field + SessionID respjson.Field + Stats respjson.Field + Status respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + Usage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThread\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThread) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThread\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThread) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgent]() + +Resolved \`agent\` definition for a single \`session\_thread\`. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it from \`Session.agent\`. + +```go +type ManagedAgentsSessionThreadAgent struct { + ID string `json:"id" api:"required"` + Description string `json:"description" api:"required"` + MCPServers []ManagedAgentsMCPServerURLDefinition `json:"mcp_servers" api:"required"` + // Model identifier and configuration. + Model ManagedAgentsModelConfig `json:"model" api:"required"` + Name string `json:"name" api:"required"` + Skills []ManagedAgentsSessionThreadAgentSkillUnion `json:"skills" api:"required"` + System string `json:"system" api:"required"` + Tools []ManagedAgentsSessionThreadAgentToolUnion `json:"tools" api:"required"` + // Any of "agent". + Type ManagedAgentsSessionThreadAgentType `json:"type" api:"required"` + Version int64 `json:"version" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Description respjson.Field + MCPServers respjson.Field + Model respjson.Field + Name respjson.Field + Skills respjson.Field + System respjson.Field + Tools respjson.Field + Type respjson.Field + Version respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadAgent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadAgent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadAgent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentSkillUnion]() + +ManagedAgentsSessionThreadAgentSkillUnion contains all possible properties and values from [ManagedAgentsQoderSkill](<#ManagedAgentsQoderSkill>), [ManagedAgentsCustomSkill](<#ManagedAgentsCustomSkill>). + +Use the [ManagedAgentsSessionThreadAgentSkillUnion.AsAny](<#ManagedAgentsSessionThreadAgentSkillUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionThreadAgentSkillUnion struct { + SkillID string `json:"skill_id"` + // Any of "qoder", "custom". + Type string `json:"type"` + Version string `json:"version"` + JSON struct { + SkillID respjson.Field + Type respjson.Field + Version respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadAgentSkillUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionThreadAgentSkillUnion) AsAny() anyManagedAgentsSessionThreadAgentSkill +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionThreadAgentSkillUnion.AsAny().(type) { +case qoder.ManagedAgentsQoderSkill: +case qoder.ManagedAgentsCustomSkill: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionThreadAgentSkillUnion\) [AsCustom]() + +```go +func (u ManagedAgentsSessionThreadAgentSkillUnion) AsCustom() (v ManagedAgentsCustomSkill) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentSkillUnion\) [AsQoder]() + +```go +func (u ManagedAgentsSessionThreadAgentSkillUnion) AsQoder() (v ManagedAgentsQoderSkill) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentSkillUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionThreadAgentSkillUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadAgentSkillUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentSkillUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentToolUnion]() + +ManagedAgentsSessionThreadAgentToolUnion contains all possible properties and values from [ManagedAgentsAgentToolset20260401](<#ManagedAgentsAgentToolset20260401>), [ManagedAgentsMCPToolset](<#ManagedAgentsMCPToolset>), [ManagedAgentsCustomTool](<#ManagedAgentsCustomTool>). + +Use the [ManagedAgentsSessionThreadAgentToolUnion.AsAny](<#ManagedAgentsSessionThreadAgentToolUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionThreadAgentToolUnion struct { + EnabledTools []string `json:"enabled_tools"` + DisallowedTools []string `json:"disallowed_tools"` + // This field is a union of [[]ManagedAgentsAgentToolConfigUnion], + // [[]ManagedAgentsMCPToolConfig] + Configs ManagedAgentsSessionThreadAgentToolUnionConfigs `json:"configs"` + // This field is a union of [ManagedAgentsAgentToolsetDefaultConfig], + // [ManagedAgentsMCPToolsetDefaultConfig] + DefaultConfig ManagedAgentsSessionThreadAgentToolUnionDefaultConfig `json:"default_config"` + // Any of "agent_toolset_20260401", "mcp_toolset", "custom". + Type string `json:"type"` + // This field is from variant [ManagedAgentsMCPToolset]. + MCPServerName string `json:"mcp_server_name"` + // This field is from variant [ManagedAgentsCustomTool]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsCustomTool]. + InputSchema ManagedAgentsCustomToolInputSchema `json:"input_schema"` + // This field is from variant [ManagedAgentsCustomTool]. + Name string `json:"name"` + JSON struct { + EnabledTools respjson.Field + DisallowedTools respjson.Field + Configs respjson.Field + DefaultConfig respjson.Field + Type respjson.Field + MCPServerName respjson.Field + Description respjson.Field + InputSchema respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadAgentToolUnion\) [AsAgentToolset20260401]() + +```go +func (u ManagedAgentsSessionThreadAgentToolUnion) AsAgentToolset20260401() (v ManagedAgentsAgentToolset20260401) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentToolUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionThreadAgentToolUnion) AsAny() anyManagedAgentsSessionThreadAgentTool +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionThreadAgentToolUnion.AsAny().(type) { +case qoder.ManagedAgentsAgentToolset20260401: +case qoder.ManagedAgentsMCPToolset: +case qoder.ManagedAgentsCustomTool: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionThreadAgentToolUnion\) [AsCustom]() + +```go +func (u ManagedAgentsSessionThreadAgentToolUnion) AsCustom() (v ManagedAgentsCustomTool) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentToolUnion\) [AsMCPToolset]() + +```go +func (u ManagedAgentsSessionThreadAgentToolUnion) AsMCPToolset() (v ManagedAgentsMCPToolset) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentToolUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionThreadAgentToolUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadAgentToolUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentToolUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentToolUnionConfigs]() + +ManagedAgentsSessionThreadAgentToolUnionConfigs is an implicit subunion of [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). ManagedAgentsSessionThreadAgentToolUnionConfigs provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsAgentToolConfigArray OfManagedAgentsMCPToolConfigArray\] + +```go +type ManagedAgentsSessionThreadAgentToolUnionConfigs struct { + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolConfigUnion] instead of an object. + OfManagedAgentsAgentToolConfigArray []ManagedAgentsAgentToolConfigUnion `json:",inline"` + // This field will be present if the value is a [[]ManagedAgentsMCPToolConfig] + // instead of an object. + OfManagedAgentsMCPToolConfigArray []ManagedAgentsMCPToolConfig `json:",inline"` + JSON struct { + OfManagedAgentsAgentToolConfigArray respjson.Field + OfManagedAgentsMCPToolConfigArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionThreadAgentToolUnionConfigs\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentToolUnionConfigs) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentToolUnionDefaultConfig]() + +ManagedAgentsSessionThreadAgentToolUnionDefaultConfig is an implicit subunion of [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). ManagedAgentsSessionThreadAgentToolUnionDefaultConfig provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). + +```go +type ManagedAgentsSessionThreadAgentToolUnionDefaultConfig struct { + Enabled bool `json:"enabled"` + // This field is a union of + // [ManagedAgentsAgentToolsetDefaultConfigPermissionPolicyUnion], + // [ManagedAgentsMCPToolsetDefaultConfigPermissionPolicyUnion] + PermissionPolicy ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy `json:"permission_policy"` + JSON struct { + Enabled respjson.Field + PermissionPolicy respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionThreadAgentToolUnionDefaultConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentToolUnionDefaultConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy]() + +ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy is an implicit subunion of [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionThreadAgentToolUnion](<#ManagedAgentsSessionThreadAgentToolUnion>). + +```go +type ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy struct { + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentToolUnionDefaultConfigPermissionPolicy) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentType]() + + + +```go +type ManagedAgentsSessionThreadAgentType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadAgentTypeAgent ManagedAgentsSessionThreadAgentType = "agent" +) +``` + + +## type [ManagedAgentsSessionThreadAgentUnion]() + +ManagedAgentsSessionThreadAgentUnion contains all possible properties and values from [ManagedAgentsSessionThreadAgent](<#ManagedAgentsSessionThreadAgent>), [ManagedAgentsAdvisor](<#ManagedAgentsAdvisor>). + +Use the [ManagedAgentsSessionThreadAgentUnion.AsAny](<#ManagedAgentsSessionThreadAgentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionThreadAgentUnion struct { + // This field is from variant [ManagedAgentsSessionThreadAgent]. + ID string `json:"id"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + MCPServers []ManagedAgentsMCPServerURLDefinition `json:"mcp_servers"` + // This field is a union of [ManagedAgentsModelConfig], [string] + Model ManagedAgentsSessionThreadAgentUnionModel `json:"model"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Name string `json:"name"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Skills []ManagedAgentsSessionThreadAgentSkillUnion `json:"skills"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + System string `json:"system"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Tools []ManagedAgentsSessionThreadAgentToolUnion `json:"tools"` + // Any of "agent", "advisor". + Type string `json:"type"` + // This field is from variant [ManagedAgentsSessionThreadAgent]. + Version int64 `json:"version"` + JSON struct { + ID respjson.Field + Description respjson.Field + MCPServers respjson.Field + Model respjson.Field + Name respjson.Field + Skills respjson.Field + System respjson.Field + Tools respjson.Field + Type respjson.Field + Version respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadAgentUnion\) [AsAdvisor]() + +```go +func (u ManagedAgentsSessionThreadAgentUnion) AsAdvisor() (v ManagedAgentsAdvisor) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentUnion\) [AsAgent]() + +```go +func (u ManagedAgentsSessionThreadAgentUnion) AsAgent() (v ManagedAgentsSessionThreadAgent) +``` + + + + +### func \(ManagedAgentsSessionThreadAgentUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionThreadAgentUnion) AsAny() anyManagedAgentsSessionThreadAgent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionThreadAgentUnion.AsAny().(type) { +case qoder.ManagedAgentsSessionThreadAgent: +case qoder.ManagedAgentsAdvisor: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionThreadAgentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionThreadAgentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadAgentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadAgentUnionModel]() + +ManagedAgentsSessionThreadAgentUnionModel is an implicit subunion of [ManagedAgentsSessionThreadAgentUnion](<#ManagedAgentsSessionThreadAgentUnion>). ManagedAgentsSessionThreadAgentUnionModel provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsSessionThreadAgentUnion](<#ManagedAgentsSessionThreadAgentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsSessionThreadAgentUnionModel struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + // This field is from variant [ManagedAgentsModelConfig]. + ID ManagedAgentsModel `json:"id"` + // This field is from variant [ManagedAgentsModelConfig]. + Effort ManagedAgentsModelConfigEffortUnion `json:"effort"` + // This field is from variant [ManagedAgentsModelConfig]. + InferenceGeo string `json:"inference_geo"` + // This field is from variant [ManagedAgentsModelConfig]. + Speed ManagedAgentsModelConfigSpeed `json:"speed"` + JSON struct { + OfString respjson.Field + ID respjson.Field + Effort respjson.Field + InferenceGeo respjson.Field + Speed respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsSessionThreadAgentUnionModel\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadAgentUnionModel) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadCreatedEvent]() + +Emitted when a subagent is spawned as a new thread. Written to the parent thread's output stream so clients observing the session see child creation. + +```go +type ManagedAgentsSessionThreadCreatedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Name of the callable agent the thread runs. + AgentName string `json:"agent_name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public `sthr_` ID of the newly created thread. + SessionThreadID string `json:"session_thread_id" api:"required"` + // Any of "session.thread_created". + Type ManagedAgentsSessionThreadCreatedEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AgentName respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadCreatedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadCreatedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadCreatedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadCreatedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadCreatedEventType]() + + + +```go +type ManagedAgentsSessionThreadCreatedEventType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadCreatedEventTypeSessionThreadCreated ManagedAgentsSessionThreadCreatedEventType = "session.thread_created" +) +``` + + +## type [ManagedAgentsSessionThreadStats]() + +Timing statistics for a session thread. + +```go +type ManagedAgentsSessionThreadStats struct { + // Cumulative time in seconds the thread spent actively running. Excludes idle + // time. + ActiveSeconds float64 `json:"active_seconds"` + // Elapsed time since thread creation in seconds. For archived threads, frozen at + // the final update. + DurationSeconds float64 `json:"duration_seconds"` + // Time in seconds for the thread to begin running. Zero for child threads, which + // start immediately. + StartupSeconds float64 `json:"startup_seconds"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ActiveSeconds respjson.Field + DurationSeconds respjson.Field + StartupSeconds respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStats\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadStats) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStats\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStats) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatus]() + +SessionThreadStatus enum + +```go +type ManagedAgentsSessionThreadStatus string +``` + + + +```go +const ( + ManagedAgentsSessionThreadStatusRunning ManagedAgentsSessionThreadStatus = "running" + ManagedAgentsSessionThreadStatusIdle ManagedAgentsSessionThreadStatus = "idle" + ManagedAgentsSessionThreadStatusRescheduling ManagedAgentsSessionThreadStatus = "rescheduling" + ManagedAgentsSessionThreadStatusTerminated ManagedAgentsSessionThreadStatus = "terminated" +) +``` + + +## type [ManagedAgentsSessionThreadStatusIdleEvent]() + +A session thread has yielded and is awaiting input. Emitted on the thread's own stream and cross\-posted to the primary stream for child threads. + +```go +type ManagedAgentsSessionThreadStatusIdleEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Name of the agent the thread runs. + AgentName string `json:"agent_name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public sthr\_ ID of the thread that went idle. + SessionThreadID string `json:"session_thread_id" api:"required"` + // The agent completed its turn naturally and is ready for the next user message. + StopReason ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion `json:"stop_reason" api:"required"` + // Any of "session.thread_status_idle". + Type ManagedAgentsSessionThreadStatusIdleEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AgentName respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + StopReason respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStatusIdleEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadStatusIdleEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStatusIdleEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStatusIdleEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion]() + +ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion contains all possible properties and values from [ManagedAgentsSessionEndTurn](<#ManagedAgentsSessionEndTurn>), [ManagedAgentsSessionRequiresAction](<#ManagedAgentsSessionRequiresAction>), [ManagedAgentsSessionRetriesExhausted](<#ManagedAgentsSessionRetriesExhausted>), [ManagedAgentsSessionBudgetReached](<#ManagedAgentsSessionBudgetReached>). + +Use the [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsAny](<#ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion struct { + // Any of "end_turn", "requires_action", "retries_exhausted", "budget_reached". + Type string `json:"type"` + // This field is from variant [ManagedAgentsSessionRequiresAction]. + EventIDs []string `json:"event_ids"` + JSON struct { + Type respjson.Field + EventIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [AsAny]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) AsAny() anyManagedAgentsSessionThreadStatusIdleEventStopReason +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion.AsAny().(type) { +case qoder.ManagedAgentsSessionEndTurn: +case qoder.ManagedAgentsSessionRequiresAction: +case qoder.ManagedAgentsSessionRetriesExhausted: +case qoder.ManagedAgentsSessionBudgetReached: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [AsBudgetReached]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) AsBudgetReached() (v ManagedAgentsSessionBudgetReached) +``` + + + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [AsEndTurn]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) AsEndTurn() (v ManagedAgentsSessionEndTurn) +``` + + + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [AsRequiresAction]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) AsRequiresAction() (v ManagedAgentsSessionRequiresAction) +``` + + + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [AsRetriesExhausted]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) AsRetriesExhausted() (v ManagedAgentsSessionRetriesExhausted) +``` + + + + +### func \(ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [RawJSON]() + +```go +func (u ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatusIdleEventType]() + + + +```go +type ManagedAgentsSessionThreadStatusIdleEventType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadStatusIdleEventTypeSessionThreadStatusIdle ManagedAgentsSessionThreadStatusIdleEventType = "session.thread_status_idle" +) +``` + + +## type [ManagedAgentsSessionThreadStatusRescheduledEvent]() + +A session thread hit a transient error and is retrying automatically. Emitted on the thread's own stream and cross\-posted to the primary stream for child threads. + +```go +type ManagedAgentsSessionThreadStatusRescheduledEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Name of the agent the thread runs. + AgentName string `json:"agent_name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public sthr\_ ID of the thread that is retrying. + SessionThreadID string `json:"session_thread_id" api:"required"` + // Any of "session.thread_status_rescheduled". + Type ManagedAgentsSessionThreadStatusRescheduledEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AgentName respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStatusRescheduledEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadStatusRescheduledEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStatusRescheduledEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStatusRescheduledEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatusRescheduledEventType]() + + + +```go +type ManagedAgentsSessionThreadStatusRescheduledEventType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadStatusRescheduledEventTypeSessionThreadStatusRescheduled ManagedAgentsSessionThreadStatusRescheduledEventType = "session.thread_status_rescheduled" +) +``` + + +## type [ManagedAgentsSessionThreadStatusRunningEvent]() + +A session thread has begun executing. Emitted on the thread's own stream and cross\-posted to the primary stream for child threads. + +```go +type ManagedAgentsSessionThreadStatusRunningEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Name of the agent the thread runs. + AgentName string `json:"agent_name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public sthr\_ ID of the thread that started running. + SessionThreadID string `json:"session_thread_id" api:"required"` + // Any of "session.thread_status_running". + Type ManagedAgentsSessionThreadStatusRunningEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AgentName respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStatusRunningEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadStatusRunningEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStatusRunningEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStatusRunningEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatusRunningEventType]() + + + +```go +type ManagedAgentsSessionThreadStatusRunningEventType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadStatusRunningEventTypeSessionThreadStatusRunning ManagedAgentsSessionThreadStatusRunningEventType = "session.thread_status_running" +) +``` + + +## type [ManagedAgentsSessionThreadStatusTerminatedEvent]() + +A session thread has terminated and will accept no further input. Emitted on the thread's own stream and cross\-posted to the primary stream for child threads. + +```go +type ManagedAgentsSessionThreadStatusTerminatedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Name of the agent the thread runs. + AgentName string `json:"agent_name" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Public sthr\_ ID of the thread that terminated. + SessionThreadID string `json:"session_thread_id" api:"required"` + // Any of "session.thread_status_terminated". + Type ManagedAgentsSessionThreadStatusTerminatedEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AgentName respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadStatusTerminatedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadStatusTerminatedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadStatusTerminatedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadStatusTerminatedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionThreadStatusTerminatedEventType]() + + + +```go +type ManagedAgentsSessionThreadStatusTerminatedEventType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadStatusTerminatedEventTypeSessionThreadStatusTerminated ManagedAgentsSessionThreadStatusTerminatedEventType = "session.thread_status_terminated" +) +``` + + +## type [ManagedAgentsSessionThreadType]() + + + +```go +type ManagedAgentsSessionThreadType string +``` + + + +```go +const ( + ManagedAgentsSessionThreadTypeSessionThread ManagedAgentsSessionThreadType = "session_thread" +) +``` + + +## type [ManagedAgentsSessionThreadUsage]() + +Cumulative token usage for a session thread across all turns. + +```go +type ManagedAgentsSessionThreadUsage struct { + // Cumulative time in seconds this thread spent in running status. Equal to + // `stats.active_seconds`; surfaced here so a thread's usage carries every quantity + // its cost is priced on. + ActiveSeconds float64 `json:"active_seconds"` + // Prompt-cache creation token usage broken down by cache lifetime. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // Total tokens read from prompt cache. + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + // Total input tokens consumed across all turns. + InputTokens int64 `json:"input_tokens"` + // A monetary amount in a specific currency. + ListCost MonetaryAmount `json:"list_cost" api:"nullable"` + // Total output tokens generated across all turns. + OutputTokens int64 `json:"output_tokens"` + // Cumulative count of server-executed tool invocations, broken down by tool. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ActiveSeconds respjson.Field + CacheCreation respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + ListCost respjson.Field + OutputTokens respjson.Field + ServerToolUse respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionThreadUsage\) [RawJSON]() + +```go +func (r ManagedAgentsSessionThreadUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionThreadUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionThreadUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionType]() + + + +```go +type ManagedAgentsSessionType string +``` + + + +```go +const ( + ManagedAgentsSessionTypeSession ManagedAgentsSessionType = "session" +) +``` + + +## type [ManagedAgentsSessionUpdatedEvent]() + +Emitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn. + +```go +type ManagedAgentsSessionUpdatedEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.updated". + Type ManagedAgentsSessionUpdatedEventType `json:"type" api:"required"` + // Resolved `agent` definition for a `session`. Snapshot of the `agent` at + // `session` creation time. + Agent ManagedAgentsSessionAgent `json:"agent" api:"nullable"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimit `json:"budget" api:"nullable"` + // The session's full metadata bag after the update. Present when the update set + // non-empty metadata; absent when metadata was unchanged or cleared to empty. + Metadata map[string]string `json:"metadata"` + // The session's new title. Present only when the update changed it. + Title string `json:"title" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + Agent respjson.Field + Budget respjson.Field + Metadata respjson.Field + Title respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionUpdatedEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionUpdatedEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionUpdatedEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionUpdatedEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionUpdatedEventType]() + + + +```go +type ManagedAgentsSessionUpdatedEventType string +``` + + + +```go +const ( + ManagedAgentsSessionUpdatedEventTypeSessionUpdated ManagedAgentsSessionUpdatedEventType = "session.updated" +) +``` + + +## type [ManagedAgentsSessionUsage]() + +Cumulative token usage for a session across all turns. + +```go +type ManagedAgentsSessionUsage struct { + // Cumulative time in seconds during which the session had at least one thread in + // running status. Overlapping activity from concurrent threads is counted once, + // unlike `stats.active_seconds`, which sums each thread's own active time. This is + // the duration the session's runtime cost is priced on. + ActiveSeconds float64 `json:"active_seconds"` + // Prompt-cache creation token usage broken down by cache lifetime. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // Total tokens read from prompt cache. + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + // Total input tokens consumed across all turns. + InputTokens int64 `json:"input_tokens"` + // A monetary amount in a specific currency. + ListCost MonetaryAmount `json:"list_cost" api:"nullable"` + // Total output tokens generated across all turns. + OutputTokens int64 `json:"output_tokens"` + // Cumulative count of server-executed tool invocations, broken down by tool. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ActiveSeconds respjson.Field + CacheCreation respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + ListCost respjson.Field + OutputTokens respjson.Field + ServerToolUse respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionUsage\) [RawJSON]() + +```go +func (r ManagedAgentsSessionUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionUsageEvent]() + +Periodic snapshot of the session's cumulative usage and tracked list cost. + +```go +type ManagedAgentsSessionUsageEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "session.usage". + Type ManagedAgentsSessionUsageEventType `json:"type" api:"required"` + // Point-in-time snapshot of a session's cumulative usage. + Usage ManagedAgentsSessionUsageSnapshot `json:"usage" api:"required"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimit `json:"budget" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + Usage respjson.Field + Budget respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionUsageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSessionUsageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionUsageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionUsageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSessionUsageEventType]() + + + +```go +type ManagedAgentsSessionUsageEventType string +``` + + + +```go +const ( + ManagedAgentsSessionUsageEventTypeSessionUsage ManagedAgentsSessionUsageEventType = "session.usage" +) +``` + + +## type [ManagedAgentsSessionUsageSnapshot]() + +Point\-in\-time snapshot of a session's cumulative usage. + +```go +type ManagedAgentsSessionUsageSnapshot struct { + // Cumulative time in seconds during which the session had at least one thread in + // running status. Overlapping activity from concurrent threads is counted once. + // This is the duration the session's runtime cost is priced on. + ActiveSeconds float64 `json:"active_seconds"` + // Prompt-cache creation token usage broken down by cache lifetime. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // Total tokens read from prompt cache. + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + // Total input tokens consumed across all turns. + InputTokens int64 `json:"input_tokens"` + // A monetary amount in a specific currency. + ListCost MonetaryAmount `json:"list_cost"` + // Total output tokens generated across all turns. + OutputTokens int64 `json:"output_tokens"` + // Cumulative count of server-executed tool invocations, broken down by tool. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ActiveSeconds respjson.Field + CacheCreation respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + ListCost respjson.Field + OutputTokens respjson.Field + ServerToolUse respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSessionUsageSnapshot\) [RawJSON]() + +```go +func (r ManagedAgentsSessionUsageSnapshot) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSessionUsageSnapshot\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSessionUsageSnapshot) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSkillNotFoundDeploymentPausedReasonError]() + +A skill referenced by the deployment's agent no longer exists. + +```go +type ManagedAgentsSkillNotFoundDeploymentPausedReasonError struct { + // Any of "skill_not_found_error". + Type ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSkillNotFoundDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsSkillNotFoundDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSkillNotFoundDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSkillNotFoundDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorTypeSkillNotFoundError ManagedAgentsSkillNotFoundDeploymentPausedReasonErrorType = "skill_not_found_error" +) +``` + + +## type [ManagedAgentsSkillNotFoundRunError]() + +A skill referenced by the deployment's agent no longer exists. + +```go +type ManagedAgentsSkillNotFoundRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "skill_not_found_error". + Type ManagedAgentsSkillNotFoundRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSkillNotFoundRunError\) [RawJSON]() + +```go +func (r ManagedAgentsSkillNotFoundRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSkillNotFoundRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSkillNotFoundRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSkillNotFoundRunErrorType]() + + + +```go +type ManagedAgentsSkillNotFoundRunErrorType string +``` + + + +```go +const ( + ManagedAgentsSkillNotFoundRunErrorTypeSkillNotFoundError ManagedAgentsSkillNotFoundRunErrorType = "skill_not_found_error" +) +``` + + +## type [ManagedAgentsSkillParamsUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsSkillParamsUnion struct { + OfQoder *ManagedAgentsQoderSkillParams `json:",omitzero,inline"` + OfCustom *ManagedAgentsCustomSkillParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [ManagedAgentsSkillParamsOfCustom]() + +```go +func ManagedAgentsSkillParamsOfCustom(skillID string) ManagedAgentsSkillParamsUnion +``` + + + + +### func [ManagedAgentsSkillParamsOfQoder]() + +```go +func ManagedAgentsSkillParamsOfQoder(skillID string) ManagedAgentsSkillParamsUnion +``` + + + + +### func \(ManagedAgentsSkillParamsUnion\) [GetSkillID]() + +```go +func (u ManagedAgentsSkillParamsUnion) GetSkillID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSkillParamsUnion\) [GetType]() + +```go +func (u ManagedAgentsSkillParamsUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSkillParamsUnion\) [GetVersion]() + +```go +func (u ManagedAgentsSkillParamsUnion) GetVersion() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsSkillParamsUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsSkillParamsUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsSkillParamsUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsSkillParamsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanModelRequestEndEvent]() + +Emitted when a model request completes. + +```go +type ManagedAgentsSpanModelRequestEndEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Whether the model request resulted in an error. + IsError bool `json:"is_error" api:"required"` + // The id of the corresponding `span.model_request_start` event. + ModelRequestStartID string `json:"model_request_start_id" api:"required"` + // Token usage for a single model request. + ModelUsage ManagedAgentsSpanModelUsage `json:"model_usage" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "span.model_request_end". + Type ManagedAgentsSpanModelRequestEndEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + IsError respjson.Field + ModelRequestStartID respjson.Field + ModelUsage respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanModelRequestEndEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSpanModelRequestEndEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanModelRequestEndEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanModelRequestEndEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanModelRequestEndEventType]() + + + +```go +type ManagedAgentsSpanModelRequestEndEventType string +``` + + + +```go +const ( + ManagedAgentsSpanModelRequestEndEventTypeSpanModelRequestEnd ManagedAgentsSpanModelRequestEndEventType = "span.model_request_end" +) +``` + + +## type [ManagedAgentsSpanModelRequestStartEvent]() + +Emitted when a model request is initiated by the agent. + +```go +type ManagedAgentsSpanModelRequestStartEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "span.model_request_start". + Type ManagedAgentsSpanModelRequestStartEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanModelRequestStartEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSpanModelRequestStartEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanModelRequestStartEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanModelRequestStartEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanModelRequestStartEventType]() + + + +```go +type ManagedAgentsSpanModelRequestStartEventType string +``` + + + +```go +const ( + ManagedAgentsSpanModelRequestStartEventTypeSpanModelRequestStart ManagedAgentsSpanModelRequestStartEventType = "span.model_request_start" +) +``` + + +## type [ManagedAgentsSpanModelUsage]() + +Token usage for a single model request. + +```go +type ManagedAgentsSpanModelUsage struct { + // Tokens used to create prompt cache in this request. + CacheCreationInputTokens int64 `json:"cache_creation_input_tokens" api:"required"` + // Tokens read from prompt cache in this request. + CacheReadInputTokens int64 `json:"cache_read_input_tokens" api:"required"` + // Input tokens consumed by this request. + InputTokens int64 `json:"input_tokens" api:"required"` + // Output tokens generated by this request. + OutputTokens int64 `json:"output_tokens" api:"required"` + // Inference speed mode. `fast` provides significantly faster output token + // generation at premium pricing. Not all models support `fast`; invalid + // combinations are rejected at create time. + // + // Any of "standard", "fast". + Speed ManagedAgentsSpanModelUsageSpeed `json:"speed" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + CacheCreationInputTokens respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + OutputTokens respjson.Field + Speed respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanModelUsage\) [RawJSON]() + +```go +func (r ManagedAgentsSpanModelUsage) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanModelUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanModelUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanModelUsageSpeed]() + +Inference speed mode. \`fast\` provides significantly faster output token generation at premium pricing. Not all models support \`fast\`; invalid combinations are rejected at create time. + +```go +type ManagedAgentsSpanModelUsageSpeed string +``` + + + +```go +const ( + ManagedAgentsSpanModelUsageSpeedStandard ManagedAgentsSpanModelUsageSpeed = "standard" + ManagedAgentsSpanModelUsageSpeedFast ManagedAgentsSpanModelUsageSpeed = "fast" +) +``` + + +## type [ManagedAgentsSpanOutcomeEvaluationEndEvent]() + +Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of \`needs\_revision\` means another evaluation cycle follows; \`satisfied\`, \`max\_iterations\_reached\`, \`failed\`, or \`interrupted\` are terminal — no further evaluation cycles follow. + +```go +type ManagedAgentsSpanOutcomeEvaluationEndEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Human-readable explanation of the verdict. For `needs_revision`, describes which + // criteria failed and why. + Explanation string `json:"explanation" api:"required"` + // 0-indexed revision cycle, matching the corresponding + // `span.outcome_evaluation_start`. + Iteration int64 `json:"iteration" api:"required"` + // The id of the corresponding `span.outcome_evaluation_start` event. + OutcomeEvaluationStartID string `json:"outcome_evaluation_start_id" api:"required"` + // The `outc_` ID of the outcome being evaluated. + OutcomeID string `json:"outcome_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Evaluation verdict. 'satisfied': criteria met, session goes idle. + // 'needs_revision': criteria not met, another revision cycle follows. + // 'max_iterations_reached': evaluation budget exhausted with criteria still unmet + // — one final acknowledgment turn follows before the session goes idle, but no + // further evaluation runs. 'failed': grader determined the rubric does not apply + // to the deliverables. 'interrupted': user sent an interrupt while evaluation was + // in progress. + Result string `json:"result" api:"required"` + // Any of "span.outcome_evaluation_end". + Type ManagedAgentsSpanOutcomeEvaluationEndEventType `json:"type" api:"required"` + // Token usage for a single model request. + Usage ManagedAgentsSpanModelUsage `json:"usage" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Explanation respjson.Field + Iteration respjson.Field + OutcomeEvaluationStartID respjson.Field + OutcomeID respjson.Field + ProcessedAt respjson.Field + Result respjson.Field + Type respjson.Field + Usage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanOutcomeEvaluationEndEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSpanOutcomeEvaluationEndEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanOutcomeEvaluationEndEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanOutcomeEvaluationEndEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanOutcomeEvaluationEndEventType]() + + + +```go +type ManagedAgentsSpanOutcomeEvaluationEndEventType string +``` + + + +```go +const ( + ManagedAgentsSpanOutcomeEvaluationEndEventTypeSpanOutcomeEvaluationEnd ManagedAgentsSpanOutcomeEvaluationEndEventType = "span.outcome_evaluation_end" +) +``` + + +## type [ManagedAgentsSpanOutcomeEvaluationOngoingEvent]() + +Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Distinguishes 'evaluation is actively running' from 'evaluation is stuck' between the corresponding \`span.outcome\_evaluation\_start\` and \`span.outcome\_evaluation\_end\` events. + +```go +type ManagedAgentsSpanOutcomeEvaluationOngoingEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // 0-indexed revision cycle, matching the corresponding + // `span.outcome_evaluation_start`. + Iteration int64 `json:"iteration" api:"required"` + // The `outc_` ID of the outcome being evaluated. + OutcomeID string `json:"outcome_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "span.outcome_evaluation_ongoing". + Type ManagedAgentsSpanOutcomeEvaluationOngoingEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanOutcomeEvaluationOngoingEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSpanOutcomeEvaluationOngoingEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanOutcomeEvaluationOngoingEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanOutcomeEvaluationOngoingEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanOutcomeEvaluationOngoingEventType]() + + + +```go +type ManagedAgentsSpanOutcomeEvaluationOngoingEventType string +``` + + + +```go +const ( + ManagedAgentsSpanOutcomeEvaluationOngoingEventTypeSpanOutcomeEvaluationOngoing ManagedAgentsSpanOutcomeEvaluationOngoingEventType = "span.outcome_evaluation_ongoing" +) +``` + + +## type [ManagedAgentsSpanOutcomeEvaluationStartEvent]() + +Emitted when an outcome evaluation cycle begins. + +```go +type ManagedAgentsSpanOutcomeEvaluationStartEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // 0-indexed revision cycle. 0 is the first evaluation; 1 is the re-evaluation + // after the first revision; etc. + Iteration int64 `json:"iteration" api:"required"` + // The `outc_` ID of the outcome being evaluated. + OutcomeID string `json:"outcome_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Any of "span.outcome_evaluation_start". + Type ManagedAgentsSpanOutcomeEvaluationStartEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + ProcessedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSpanOutcomeEvaluationStartEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSpanOutcomeEvaluationStartEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSpanOutcomeEvaluationStartEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSpanOutcomeEvaluationStartEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSpanOutcomeEvaluationStartEventType]() + + + +```go +type ManagedAgentsSpanOutcomeEvaluationStartEventType string +``` + + + +```go +const ( + ManagedAgentsSpanOutcomeEvaluationStartEventTypeSpanOutcomeEvaluationStart ManagedAgentsSpanOutcomeEvaluationStartEventType = "span.outcome_evaluation_start" +) +``` + + +## type [ManagedAgentsStartEvent]() + +Opens a preview of a buffered event. Carries the previewed event's type and id only. Followed by zero or more event\_delta events with the same event id, normally concluded by the buffered event carrying that id. If the producing model request ends without that event \(an error or interrupt mid\-stream\), its terminal span.model\_request\_end closes the preview. Only sent on stream connections that opt in via event\_deltas; never appears in event history. + +```go +type ManagedAgentsStartEvent struct { + // The previewed event's type and id. The event type determines which delta types + // the preview's event_delta events carry: agent.message events stream + // content_delta fragments; agent.thinking previews are start-only — no deltas + // follow, and the buffered agent.thinking with the same id concludes them. + Event ManagedAgentsStartEventPreviewUnion `json:"event" api:"required"` + // Any of "event_start". + Type ManagedAgentsStartEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Event respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsStartEvent\) [RawJSON]() + +```go +func (r ManagedAgentsStartEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsStartEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStartEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStartEventPreviewUnion]() + +ManagedAgentsStartEventPreviewUnion contains all possible properties and values from [ManagedAgentsAgentMessagePreview](<#ManagedAgentsAgentMessagePreview>), [ManagedAgentsAgentThinkingPreview](<#ManagedAgentsAgentThinkingPreview>). + +Use the [ManagedAgentsStartEventPreviewUnion.AsAny](<#ManagedAgentsStartEventPreviewUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsStartEventPreviewUnion struct { + ID string `json:"id"` + // Any of "agent.message", "agent.thinking". + Type string `json:"type"` + JSON struct { + ID respjson.Field + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsStartEventPreviewUnion\) [AsAgentMessage]() + +```go +func (u ManagedAgentsStartEventPreviewUnion) AsAgentMessage() (v ManagedAgentsAgentMessagePreview) +``` + + + + +### func \(ManagedAgentsStartEventPreviewUnion\) [AsAgentThinking]() + +```go +func (u ManagedAgentsStartEventPreviewUnion) AsAgentThinking() (v ManagedAgentsAgentThinkingPreview) +``` + + + + +### func \(ManagedAgentsStartEventPreviewUnion\) [AsAny]() + +```go +func (u ManagedAgentsStartEventPreviewUnion) AsAny() anyManagedAgentsStartEventPreview +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsStartEventPreviewUnion.AsAny().(type) { +case qoder.ManagedAgentsAgentMessagePreview: +case qoder.ManagedAgentsAgentThinkingPreview: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsStartEventPreviewUnion\) [RawJSON]() + +```go +func (u ManagedAgentsStartEventPreviewUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsStartEventPreviewUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStartEventPreviewUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStartEventType]() + + + +```go +type ManagedAgentsStartEventType string +``` + + + +```go +const ( + ManagedAgentsStartEventTypeEventStart ManagedAgentsStartEventType = "event_start" +) +``` + + +## type [ManagedAgentsStaticBearerAuthResponse]() + +Static bearer token credential details for an MCP server. + +```go +type ManagedAgentsStaticBearerAuthResponse struct { + // URL of the MCP server this credential authenticates against. + MCPServerURL string `json:"mcp_server_url" api:"required"` + // Any of "static_bearer". + Type ManagedAgentsStaticBearerAuthResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MCPServerURL respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsStaticBearerAuthResponse\) [RawJSON]() + +```go +func (r ManagedAgentsStaticBearerAuthResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsStaticBearerAuthResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStaticBearerAuthResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStaticBearerAuthResponseType]() + + + +```go +type ManagedAgentsStaticBearerAuthResponseType string +``` + + + +```go +const ( + ManagedAgentsStaticBearerAuthResponseTypeStaticBearer ManagedAgentsStaticBearerAuthResponseType = "static_bearer" +) +``` + + +## type [ManagedAgentsStaticBearerCreateParams]() + +Parameters for creating a static bearer token credential. + +The properties Token, MCPServerURL, Type are required. + +```go +type ManagedAgentsStaticBearerCreateParams struct { + // Static bearer token value. + Token string `json:"token" api:"required"` + // URL of the MCP server this credential authenticates against. + MCPServerURL string `json:"mcp_server_url" api:"required"` + // Any of "static_bearer". + Type ManagedAgentsStaticBearerCreateParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsStaticBearerCreateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsStaticBearerCreateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsStaticBearerCreateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStaticBearerCreateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStaticBearerCreateParamsType]() + + + +```go +type ManagedAgentsStaticBearerCreateParamsType string +``` + + + +```go +const ( + ManagedAgentsStaticBearerCreateParamsTypeStaticBearer ManagedAgentsStaticBearerCreateParamsType = "static_bearer" +) +``` + + +## type [ManagedAgentsStaticBearerUpdateParams]() + +Parameters for updating a static bearer token credential. The \`mcp\_server\_url\` is immutable. + +The property Type is required. + +```go +type ManagedAgentsStaticBearerUpdateParams struct { + // Any of "static_bearer". + Type ManagedAgentsStaticBearerUpdateParamsType `json:"type,omitzero" api:"required"` + // Updated static bearer token value. + Token param.Opt[string] `json:"token,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsStaticBearerUpdateParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsStaticBearerUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsStaticBearerUpdateParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStaticBearerUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStaticBearerUpdateParamsType]() + + + +```go +type ManagedAgentsStaticBearerUpdateParamsType string +``` + + + +```go +const ( + ManagedAgentsStaticBearerUpdateParamsTypeStaticBearer ManagedAgentsStaticBearerUpdateParamsType = "static_bearer" +) +``` + + +## type [ManagedAgentsStreamSessionEventsUnion]() + +ManagedAgentsStreamSessionEventsUnion contains all possible properties and values from [ManagedAgentsUserMessageEvent](<#ManagedAgentsUserMessageEvent>), [ManagedAgentsUserInterruptEvent](<#ManagedAgentsUserInterruptEvent>), [ManagedAgentsUserToolConfirmationEvent](<#ManagedAgentsUserToolConfirmationEvent>), [ManagedAgentsUserCustomToolResultEvent](<#ManagedAgentsUserCustomToolResultEvent>), [ManagedAgentsAgentCustomToolUseEvent](<#ManagedAgentsAgentCustomToolUseEvent>), [ManagedAgentsAgentMessageEvent](<#ManagedAgentsAgentMessageEvent>), [ManagedAgentsAgentThinkingEvent](<#ManagedAgentsAgentThinkingEvent>), [ManagedAgentsAgentMCPToolUseEvent](<#ManagedAgentsAgentMCPToolUseEvent>), [ManagedAgentsAgentMCPToolResultEvent](<#ManagedAgentsAgentMCPToolResultEvent>), [ManagedAgentsAgentToolUseEvent](<#ManagedAgentsAgentToolUseEvent>), [ManagedAgentsAgentToolResultEvent](<#ManagedAgentsAgentToolResultEvent>), [ManagedAgentsAgentThreadMessageReceivedEvent](<#ManagedAgentsAgentThreadMessageReceivedEvent>), [ManagedAgentsAgentThreadMessageSentEvent](<#ManagedAgentsAgentThreadMessageSentEvent>), [ManagedAgentsAgentThreadContextCompactedEvent](<#ManagedAgentsAgentThreadContextCompactedEvent>), [ManagedAgentsSessionErrorEvent](<#ManagedAgentsSessionErrorEvent>), [ManagedAgentsSessionStatusRescheduledEvent](<#ManagedAgentsSessionStatusRescheduledEvent>), [ManagedAgentsSessionStatusRunningEvent](<#ManagedAgentsSessionStatusRunningEvent>), [ManagedAgentsSessionStatusIdleEvent](<#ManagedAgentsSessionStatusIdleEvent>), [ManagedAgentsSessionStatusTerminatedEvent](<#ManagedAgentsSessionStatusTerminatedEvent>), [ManagedAgentsSessionThreadCreatedEvent](<#ManagedAgentsSessionThreadCreatedEvent>), [ManagedAgentsSpanOutcomeEvaluationStartEvent](<#ManagedAgentsSpanOutcomeEvaluationStartEvent>), [ManagedAgentsSpanOutcomeEvaluationEndEvent](<#ManagedAgentsSpanOutcomeEvaluationEndEvent>), [ManagedAgentsSpanModelRequestStartEvent](<#ManagedAgentsSpanModelRequestStartEvent>), [ManagedAgentsSpanModelRequestEndEvent](<#ManagedAgentsSpanModelRequestEndEvent>), [ManagedAgentsSpanOutcomeEvaluationOngoingEvent](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent>), [ManagedAgentsUserDefineOutcomeEvent](<#ManagedAgentsUserDefineOutcomeEvent>), [ManagedAgentsSessionDeletedEvent](<#ManagedAgentsSessionDeletedEvent>), [ManagedAgentsSessionThreadStatusRunningEvent](<#ManagedAgentsSessionThreadStatusRunningEvent>), [ManagedAgentsSessionThreadStatusIdleEvent](<#ManagedAgentsSessionThreadStatusIdleEvent>), [ManagedAgentsSessionThreadStatusTerminatedEvent](<#ManagedAgentsSessionThreadStatusTerminatedEvent>), [ManagedAgentsUserToolResultEvent](<#ManagedAgentsUserToolResultEvent>), [ManagedAgentsSessionThreadStatusRescheduledEvent](<#ManagedAgentsSessionThreadStatusRescheduledEvent>), [ManagedAgentsSessionUpdatedEvent](<#ManagedAgentsSessionUpdatedEvent>), [ManagedAgentsStartEvent](<#ManagedAgentsStartEvent>), [ManagedAgentsDeltaEvent](<#ManagedAgentsDeltaEvent>), [ManagedAgentsSystemMessageEvent](<#ManagedAgentsSystemMessageEvent>), [ManagedAgentsSessionUsageEvent](<#ManagedAgentsSessionUsageEvent>). + +Use the [ManagedAgentsStreamSessionEventsUnion.AsAny](<#ManagedAgentsStreamSessionEventsUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsStreamSessionEventsUnion struct { + ID string `json:"id"` + // This field is a union of [[]ManagedAgentsUserMessageEventContentUnion], + // [[]ManagedAgentsUserCustomToolResultEventContentUnion], + // [[]ManagedAgentsAgentMessageEventContentUnion], + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion], + // [[]ManagedAgentsAgentToolResultEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion], + // [[]ManagedAgentsUserToolResultEventContentUnion], + // [[]ManagedAgentsSystemContentBlock] + Content ManagedAgentsStreamSessionEventsUnionContent `json:"content"` + // Any of "user.message", "user.interrupt", "user.tool_confirmation", + // "user.custom_tool_result", "agent.custom_tool_use", "agent.message", + // "agent.thinking", "agent.mcp_tool_use", "agent.mcp_tool_result", + // "agent.tool_use", "agent.tool_result", "agent.thread_message_received", + // "agent.thread_message_sent", "agent.thread_context_compacted", "session.error", + // "session.status_rescheduled", "session.status_running", "session.status_idle", + // "session.status_terminated", "session.thread_created", + // "span.outcome_evaluation_start", "span.outcome_evaluation_end", + // "span.model_request_start", "span.model_request_end", + // "span.outcome_evaluation_ongoing", "user.define_outcome", "session.deleted", + // "session.thread_status_running", "session.thread_status_idle", + // "session.thread_status_terminated", "user.tool_result", + // "session.thread_status_rescheduled", "session.updated", "event_start", + // "event_delta", "system.message", "session.usage". + Type string `json:"type"` + ProcessedAt time.Time `json:"processed_at"` + SessionThreadID string `json:"session_thread_id"` + Result string `json:"result"` + ToolUseID string `json:"tool_use_id"` + // This field is from variant [ManagedAgentsUserToolConfirmationEvent]. + DenyMessage string `json:"deny_message"` + // This field is from variant [ManagedAgentsUserCustomToolResultEvent]. + CustomToolUseID string `json:"custom_tool_use_id"` + IsError bool `json:"is_error"` + Input any `json:"input"` + Name string `json:"name"` + // This field is from variant [ManagedAgentsAgentMCPToolUseEvent]. + MCPServerName string `json:"mcp_server_name"` + EvaluatedPermission string `json:"evaluated_permission"` + // This field is from variant [ManagedAgentsAgentMCPToolResultEvent]. + MCPToolUseID string `json:"mcp_tool_use_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromSessionThreadID string `json:"from_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromAgentName string `json:"from_agent_name"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToSessionThreadID string `json:"to_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToAgentName string `json:"to_agent_name"` + // This field is from variant [ManagedAgentsSessionErrorEvent]. + Error ManagedAgentsSessionErrorEventErrorUnion `json:"error"` + // This field is a union of + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion] + StopReason ManagedAgentsStreamSessionEventsUnionStopReason `json:"stop_reason"` + AgentName string `json:"agent_name"` + Iteration int64 `json:"iteration"` + OutcomeID string `json:"outcome_id"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + Explanation string `json:"explanation"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + OutcomeEvaluationStartID string `json:"outcome_evaluation_start_id"` + // This field is a union of [ManagedAgentsSpanModelUsage], + // [ManagedAgentsSessionUsageSnapshot] + Usage ManagedAgentsStreamSessionEventsUnionUsage `json:"usage"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelRequestStartID string `json:"model_request_start_id"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelUsage ManagedAgentsSpanModelUsage `json:"model_usage"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + MaxIterations int64 `json:"max_iterations"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Rubric ManagedAgentsUserDefineOutcomeEventRubricUnion `json:"rubric"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Agent ManagedAgentsSessionAgent `json:"agent"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Budget ManagedAgentsBudgetLimit `json:"budget"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Metadata map[string]string `json:"metadata"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Title string `json:"title"` + // This field is from variant [ManagedAgentsStartEvent]. + Event ManagedAgentsStartEventPreviewUnion `json:"event"` + // This field is from variant [ManagedAgentsDeltaEvent]. + Delta ManagedAgentsDeltaContent `json:"delta"` + // This field is from variant [ManagedAgentsDeltaEvent]. + EventID string `json:"event_id"` + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Result respjson.Field + ToolUseID respjson.Field + DenyMessage respjson.Field + CustomToolUseID respjson.Field + IsError respjson.Field + Input respjson.Field + Name respjson.Field + MCPServerName respjson.Field + EvaluatedPermission respjson.Field + MCPToolUseID respjson.Field + FromSessionThreadID respjson.Field + FromAgentName respjson.Field + ToSessionThreadID respjson.Field + ToAgentName respjson.Field + Error respjson.Field + StopReason respjson.Field + AgentName respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + Explanation respjson.Field + OutcomeEvaluationStartID respjson.Field + Usage respjson.Field + ModelRequestStartID respjson.Field + ModelUsage respjson.Field + Description respjson.Field + MaxIterations respjson.Field + Rubric respjson.Field + Agent respjson.Field + Budget respjson.Field + Metadata respjson.Field + Title respjson.Field + Event respjson.Field + Delta respjson.Field + EventID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentCustomToolUse]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentCustomToolUse() (v ManagedAgentsAgentCustomToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentMCPToolResult]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentMCPToolResult() (v ManagedAgentsAgentMCPToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentMCPToolUse]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentMCPToolUse() (v ManagedAgentsAgentMCPToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentMessage]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentMessage() (v ManagedAgentsAgentMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentThinking]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentThinking() (v ManagedAgentsAgentThinkingEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentThreadContextCompacted]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentThreadContextCompacted() (v ManagedAgentsAgentThreadContextCompactedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentThreadMessageReceived]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentThreadMessageReceived() (v ManagedAgentsAgentThreadMessageReceivedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentThreadMessageSent]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentThreadMessageSent() (v ManagedAgentsAgentThreadMessageSentEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentToolResult]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentToolResult() (v ManagedAgentsAgentToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAgentToolUse]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAgentToolUse() (v ManagedAgentsAgentToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsAny]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsAny() anyManagedAgentsStreamSessionEvents +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsStreamSessionEventsUnion.AsAny().(type) { +case qoder.ManagedAgentsUserMessageEvent: +case qoder.ManagedAgentsUserInterruptEvent: +case qoder.ManagedAgentsUserToolConfirmationEvent: +case qoder.ManagedAgentsUserCustomToolResultEvent: +case qoder.ManagedAgentsAgentCustomToolUseEvent: +case qoder.ManagedAgentsAgentMessageEvent: +case qoder.ManagedAgentsAgentThinkingEvent: +case qoder.ManagedAgentsAgentMCPToolUseEvent: +case qoder.ManagedAgentsAgentMCPToolResultEvent: +case qoder.ManagedAgentsAgentToolUseEvent: +case qoder.ManagedAgentsAgentToolResultEvent: +case qoder.ManagedAgentsAgentThreadMessageReceivedEvent: +case qoder.ManagedAgentsAgentThreadMessageSentEvent: +case qoder.ManagedAgentsAgentThreadContextCompactedEvent: +case qoder.ManagedAgentsSessionErrorEvent: +case qoder.ManagedAgentsSessionStatusRescheduledEvent: +case qoder.ManagedAgentsSessionStatusRunningEvent: +case qoder.ManagedAgentsSessionStatusIdleEvent: +case qoder.ManagedAgentsSessionStatusTerminatedEvent: +case qoder.ManagedAgentsSessionThreadCreatedEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationStartEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationEndEvent: +case qoder.ManagedAgentsSpanModelRequestStartEvent: +case qoder.ManagedAgentsSpanModelRequestEndEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationOngoingEvent: +case qoder.ManagedAgentsUserDefineOutcomeEvent: +case qoder.ManagedAgentsSessionDeletedEvent: +case qoder.ManagedAgentsSessionThreadStatusRunningEvent: +case qoder.ManagedAgentsSessionThreadStatusIdleEvent: +case qoder.ManagedAgentsSessionThreadStatusTerminatedEvent: +case qoder.ManagedAgentsUserToolResultEvent: +case qoder.ManagedAgentsSessionThreadStatusRescheduledEvent: +case qoder.ManagedAgentsSessionUpdatedEvent: +case qoder.ManagedAgentsStartEvent: +case qoder.ManagedAgentsDeltaEvent: +case qoder.ManagedAgentsSystemMessageEvent: +case qoder.ManagedAgentsSessionUsageEvent: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsEventDelta]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsEventDelta() (v ManagedAgentsDeltaEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsEventStart]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsEventStart() (v ManagedAgentsStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionDeleted]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionDeleted() (v ManagedAgentsSessionDeletedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionError]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionError() (v ManagedAgentsSessionErrorEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionStatusIdle]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionStatusIdle() (v ManagedAgentsSessionStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionStatusRescheduled]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionStatusRescheduled() (v ManagedAgentsSessionStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionStatusRunning]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionStatusRunning() (v ManagedAgentsSessionStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionStatusTerminated]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionStatusTerminated() (v ManagedAgentsSessionStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionThreadCreated]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionThreadCreated() (v ManagedAgentsSessionThreadCreatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionThreadStatusIdle]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionThreadStatusIdle() (v ManagedAgentsSessionThreadStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionThreadStatusRescheduled]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionThreadStatusRescheduled() (v ManagedAgentsSessionThreadStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionThreadStatusRunning]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionThreadStatusRunning() (v ManagedAgentsSessionThreadStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionThreadStatusTerminated]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionThreadStatusTerminated() (v ManagedAgentsSessionThreadStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionUpdated]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionUpdated() (v ManagedAgentsSessionUpdatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSessionUsage]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSessionUsage() (v ManagedAgentsSessionUsageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSpanModelRequestEnd]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSpanModelRequestEnd() (v ManagedAgentsSpanModelRequestEndEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSpanModelRequestStart]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSpanModelRequestStart() (v ManagedAgentsSpanModelRequestStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSpanOutcomeEvaluationEnd]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSpanOutcomeEvaluationEnd() (v ManagedAgentsSpanOutcomeEvaluationEndEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSpanOutcomeEvaluationOngoing]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSpanOutcomeEvaluationOngoing() (v ManagedAgentsSpanOutcomeEvaluationOngoingEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSpanOutcomeEvaluationStart]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSpanOutcomeEvaluationStart() (v ManagedAgentsSpanOutcomeEvaluationStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsSystemMessage]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsSystemMessage() (v ManagedAgentsSystemMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserCustomToolResult]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserCustomToolResult() (v ManagedAgentsUserCustomToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserDefineOutcome]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserDefineOutcome() (v ManagedAgentsUserDefineOutcomeEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserInterrupt]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserInterrupt() (v ManagedAgentsUserInterruptEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserMessage]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserMessage() (v ManagedAgentsUserMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserToolConfirmation]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserToolConfirmation() (v ManagedAgentsUserToolConfirmationEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [AsUserToolResult]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) AsUserToolResult() (v ManagedAgentsUserToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionEventsUnion\) [RawJSON]() + +```go +func (u ManagedAgentsStreamSessionEventsUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsStreamSessionEventsUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionEventsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionEventsUnionContent]() + +ManagedAgentsStreamSessionEventsUnionContent is an implicit subunion of [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). ManagedAgentsStreamSessionEventsUnionContent provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsUserMessageEventContentArray OfManagedAgentsUserCustomToolResultEventContentArray OfManagedAgentsAgentMessageEventContentArray OfManagedAgentsAgentMCPToolResultEventContentArray OfManagedAgentsAgentToolResultEventContentArray OfManagedAgentsAgentThreadMessageReceivedEventContentArray OfManagedAgentsAgentThreadMessageSentEventContentArray OfManagedAgentsUserToolResultEventContentArray OfManagedAgentsSystemContentBlockArray\] + +```go +type ManagedAgentsStreamSessionEventsUnionContent struct { + // This field will be present if the value is a + // [[]ManagedAgentsUserMessageEventContentUnion] instead of an object. + OfManagedAgentsUserMessageEventContentArray []ManagedAgentsUserMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserCustomToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserCustomToolResultEventContentArray []ManagedAgentsUserCustomToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMessageEventContentUnion] instead of an object. + OfManagedAgentsAgentMessageEventContentArray []ManagedAgentsAgentMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentMCPToolResultEventContentArray []ManagedAgentsAgentMCPToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentToolResultEventContentArray []ManagedAgentsAgentToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageReceivedEventContentArray []ManagedAgentsAgentThreadMessageReceivedEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageSentEventContentArray []ManagedAgentsAgentThreadMessageSentEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserToolResultEventContentArray []ManagedAgentsUserToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsSystemContentBlock] instead of an object. + OfManagedAgentsSystemContentBlockArray []ManagedAgentsSystemContentBlock `json:",inline"` + JSON struct { + OfManagedAgentsUserMessageEventContentArray respjson.Field + OfManagedAgentsUserCustomToolResultEventContentArray respjson.Field + OfManagedAgentsAgentMessageEventContentArray respjson.Field + OfManagedAgentsAgentMCPToolResultEventContentArray respjson.Field + OfManagedAgentsAgentToolResultEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageReceivedEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageSentEventContentArray respjson.Field + OfManagedAgentsUserToolResultEventContentArray respjson.Field + OfManagedAgentsSystemContentBlockArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionEventsUnionContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionEventsUnionContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionEventsUnionStopReason]() + +ManagedAgentsStreamSessionEventsUnionStopReason is an implicit subunion of [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). ManagedAgentsStreamSessionEventsUnionStopReason provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). + +```go +type ManagedAgentsStreamSessionEventsUnionStopReason struct { + Type string `json:"type"` + // This field is from variant + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion]. + EventIDs []string `json:"event_ids"` + JSON struct { + Type respjson.Field + EventIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionEventsUnionStopReason\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionEventsUnionStopReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionEventsUnionUsage]() + +ManagedAgentsStreamSessionEventsUnionUsage is an implicit subunion of [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). ManagedAgentsStreamSessionEventsUnionUsage provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionEventsUnion](<#ManagedAgentsStreamSessionEventsUnion>). + +```go +type ManagedAgentsStreamSessionEventsUnionUsage struct { + // This field is from variant [ManagedAgentsSpanModelUsage]. + CacheCreationInputTokens int64 `json:"cache_creation_input_tokens"` + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + InputTokens int64 `json:"input_tokens"` + OutputTokens int64 `json:"output_tokens"` + // This field is from variant [ManagedAgentsSpanModelUsage]. + Speed ManagedAgentsSpanModelUsageSpeed `json:"speed"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ActiveSeconds float64 `json:"active_seconds"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ListCost MonetaryAmount `json:"list_cost"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use"` + JSON struct { + CacheCreationInputTokens respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + OutputTokens respjson.Field + Speed respjson.Field + ActiveSeconds respjson.Field + CacheCreation respjson.Field + ListCost respjson.Field + ServerToolUse respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionEventsUnionUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionEventsUnionUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionThreadEventsUnion]() + +ManagedAgentsStreamSessionThreadEventsUnion contains all possible properties and values from [ManagedAgentsUserMessageEvent](<#ManagedAgentsUserMessageEvent>), [ManagedAgentsUserInterruptEvent](<#ManagedAgentsUserInterruptEvent>), [ManagedAgentsUserToolConfirmationEvent](<#ManagedAgentsUserToolConfirmationEvent>), [ManagedAgentsUserCustomToolResultEvent](<#ManagedAgentsUserCustomToolResultEvent>), [ManagedAgentsAgentCustomToolUseEvent](<#ManagedAgentsAgentCustomToolUseEvent>), [ManagedAgentsAgentMessageEvent](<#ManagedAgentsAgentMessageEvent>), [ManagedAgentsAgentThinkingEvent](<#ManagedAgentsAgentThinkingEvent>), [ManagedAgentsAgentMCPToolUseEvent](<#ManagedAgentsAgentMCPToolUseEvent>), [ManagedAgentsAgentMCPToolResultEvent](<#ManagedAgentsAgentMCPToolResultEvent>), [ManagedAgentsAgentToolUseEvent](<#ManagedAgentsAgentToolUseEvent>), [ManagedAgentsAgentToolResultEvent](<#ManagedAgentsAgentToolResultEvent>), [ManagedAgentsAgentThreadMessageReceivedEvent](<#ManagedAgentsAgentThreadMessageReceivedEvent>), [ManagedAgentsAgentThreadMessageSentEvent](<#ManagedAgentsAgentThreadMessageSentEvent>), [ManagedAgentsAgentThreadContextCompactedEvent](<#ManagedAgentsAgentThreadContextCompactedEvent>), [ManagedAgentsSessionErrorEvent](<#ManagedAgentsSessionErrorEvent>), [ManagedAgentsSessionStatusRescheduledEvent](<#ManagedAgentsSessionStatusRescheduledEvent>), [ManagedAgentsSessionStatusRunningEvent](<#ManagedAgentsSessionStatusRunningEvent>), [ManagedAgentsSessionStatusIdleEvent](<#ManagedAgentsSessionStatusIdleEvent>), [ManagedAgentsSessionStatusTerminatedEvent](<#ManagedAgentsSessionStatusTerminatedEvent>), [ManagedAgentsSessionThreadCreatedEvent](<#ManagedAgentsSessionThreadCreatedEvent>), [ManagedAgentsSpanOutcomeEvaluationStartEvent](<#ManagedAgentsSpanOutcomeEvaluationStartEvent>), [ManagedAgentsSpanOutcomeEvaluationEndEvent](<#ManagedAgentsSpanOutcomeEvaluationEndEvent>), [ManagedAgentsSpanModelRequestStartEvent](<#ManagedAgentsSpanModelRequestStartEvent>), [ManagedAgentsSpanModelRequestEndEvent](<#ManagedAgentsSpanModelRequestEndEvent>), [ManagedAgentsSpanOutcomeEvaluationOngoingEvent](<#ManagedAgentsSpanOutcomeEvaluationOngoingEvent>), [ManagedAgentsUserDefineOutcomeEvent](<#ManagedAgentsUserDefineOutcomeEvent>), [ManagedAgentsSessionDeletedEvent](<#ManagedAgentsSessionDeletedEvent>), [ManagedAgentsSessionThreadStatusRunningEvent](<#ManagedAgentsSessionThreadStatusRunningEvent>), [ManagedAgentsSessionThreadStatusIdleEvent](<#ManagedAgentsSessionThreadStatusIdleEvent>), [ManagedAgentsSessionThreadStatusTerminatedEvent](<#ManagedAgentsSessionThreadStatusTerminatedEvent>), [ManagedAgentsUserToolResultEvent](<#ManagedAgentsUserToolResultEvent>), [ManagedAgentsSessionThreadStatusRescheduledEvent](<#ManagedAgentsSessionThreadStatusRescheduledEvent>), [ManagedAgentsSessionUpdatedEvent](<#ManagedAgentsSessionUpdatedEvent>), [ManagedAgentsStartEvent](<#ManagedAgentsStartEvent>), [ManagedAgentsDeltaEvent](<#ManagedAgentsDeltaEvent>), [ManagedAgentsSystemMessageEvent](<#ManagedAgentsSystemMessageEvent>), [ManagedAgentsSessionUsageEvent](<#ManagedAgentsSessionUsageEvent>). + +Use the [ManagedAgentsStreamSessionThreadEventsUnion.AsAny](<#ManagedAgentsStreamSessionThreadEventsUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsStreamSessionThreadEventsUnion struct { + ID string `json:"id"` + // This field is a union of [[]ManagedAgentsUserMessageEventContentUnion], + // [[]ManagedAgentsUserCustomToolResultEventContentUnion], + // [[]ManagedAgentsAgentMessageEventContentUnion], + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion], + // [[]ManagedAgentsAgentToolResultEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion], + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion], + // [[]ManagedAgentsUserToolResultEventContentUnion], + // [[]ManagedAgentsSystemContentBlock] + Content ManagedAgentsStreamSessionThreadEventsUnionContent `json:"content"` + // Any of "user.message", "user.interrupt", "user.tool_confirmation", + // "user.custom_tool_result", "agent.custom_tool_use", "agent.message", + // "agent.thinking", "agent.mcp_tool_use", "agent.mcp_tool_result", + // "agent.tool_use", "agent.tool_result", "agent.thread_message_received", + // "agent.thread_message_sent", "agent.thread_context_compacted", "session.error", + // "session.status_rescheduled", "session.status_running", "session.status_idle", + // "session.status_terminated", "session.thread_created", + // "span.outcome_evaluation_start", "span.outcome_evaluation_end", + // "span.model_request_start", "span.model_request_end", + // "span.outcome_evaluation_ongoing", "user.define_outcome", "session.deleted", + // "session.thread_status_running", "session.thread_status_idle", + // "session.thread_status_terminated", "user.tool_result", + // "session.thread_status_rescheduled", "session.updated", "event_start", + // "event_delta", "system.message", "session.usage". + Type string `json:"type"` + ProcessedAt time.Time `json:"processed_at"` + SessionThreadID string `json:"session_thread_id"` + Result string `json:"result"` + ToolUseID string `json:"tool_use_id"` + // This field is from variant [ManagedAgentsUserToolConfirmationEvent]. + DenyMessage string `json:"deny_message"` + // This field is from variant [ManagedAgentsUserCustomToolResultEvent]. + CustomToolUseID string `json:"custom_tool_use_id"` + IsError bool `json:"is_error"` + Input any `json:"input"` + Name string `json:"name"` + // This field is from variant [ManagedAgentsAgentMCPToolUseEvent]. + MCPServerName string `json:"mcp_server_name"` + EvaluatedPermission string `json:"evaluated_permission"` + // This field is from variant [ManagedAgentsAgentMCPToolResultEvent]. + MCPToolUseID string `json:"mcp_tool_use_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromSessionThreadID string `json:"from_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageReceivedEvent]. + FromAgentName string `json:"from_agent_name"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToSessionThreadID string `json:"to_session_thread_id"` + // This field is from variant [ManagedAgentsAgentThreadMessageSentEvent]. + ToAgentName string `json:"to_agent_name"` + // This field is from variant [ManagedAgentsSessionErrorEvent]. + Error ManagedAgentsSessionErrorEventErrorUnion `json:"error"` + // This field is a union of + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion] + StopReason ManagedAgentsStreamSessionThreadEventsUnionStopReason `json:"stop_reason"` + AgentName string `json:"agent_name"` + Iteration int64 `json:"iteration"` + OutcomeID string `json:"outcome_id"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + Explanation string `json:"explanation"` + // This field is from variant [ManagedAgentsSpanOutcomeEvaluationEndEvent]. + OutcomeEvaluationStartID string `json:"outcome_evaluation_start_id"` + // This field is a union of [ManagedAgentsSpanModelUsage], + // [ManagedAgentsSessionUsageSnapshot] + Usage ManagedAgentsStreamSessionThreadEventsUnionUsage `json:"usage"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelRequestStartID string `json:"model_request_start_id"` + // This field is from variant [ManagedAgentsSpanModelRequestEndEvent]. + ModelUsage ManagedAgentsSpanModelUsage `json:"model_usage"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + MaxIterations int64 `json:"max_iterations"` + // This field is from variant [ManagedAgentsUserDefineOutcomeEvent]. + Rubric ManagedAgentsUserDefineOutcomeEventRubricUnion `json:"rubric"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Agent ManagedAgentsSessionAgent `json:"agent"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Budget ManagedAgentsBudgetLimit `json:"budget"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Metadata map[string]string `json:"metadata"` + // This field is from variant [ManagedAgentsSessionUpdatedEvent]. + Title string `json:"title"` + // This field is from variant [ManagedAgentsStartEvent]. + Event ManagedAgentsStartEventPreviewUnion `json:"event"` + // This field is from variant [ManagedAgentsDeltaEvent]. + Delta ManagedAgentsDeltaContent `json:"delta"` + // This field is from variant [ManagedAgentsDeltaEvent]. + EventID string `json:"event_id"` + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + Result respjson.Field + ToolUseID respjson.Field + DenyMessage respjson.Field + CustomToolUseID respjson.Field + IsError respjson.Field + Input respjson.Field + Name respjson.Field + MCPServerName respjson.Field + EvaluatedPermission respjson.Field + MCPToolUseID respjson.Field + FromSessionThreadID respjson.Field + FromAgentName respjson.Field + ToSessionThreadID respjson.Field + ToAgentName respjson.Field + Error respjson.Field + StopReason respjson.Field + AgentName respjson.Field + Iteration respjson.Field + OutcomeID respjson.Field + Explanation respjson.Field + OutcomeEvaluationStartID respjson.Field + Usage respjson.Field + ModelRequestStartID respjson.Field + ModelUsage respjson.Field + Description respjson.Field + MaxIterations respjson.Field + Rubric respjson.Field + Agent respjson.Field + Budget respjson.Field + Metadata respjson.Field + Title respjson.Field + Event respjson.Field + Delta respjson.Field + EventID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentCustomToolUse]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentCustomToolUse() (v ManagedAgentsAgentCustomToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentMCPToolResult]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentMCPToolResult() (v ManagedAgentsAgentMCPToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentMCPToolUse]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentMCPToolUse() (v ManagedAgentsAgentMCPToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentMessage]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentMessage() (v ManagedAgentsAgentMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentThinking]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentThinking() (v ManagedAgentsAgentThinkingEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentThreadContextCompacted]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentThreadContextCompacted() (v ManagedAgentsAgentThreadContextCompactedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentThreadMessageReceived]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentThreadMessageReceived() (v ManagedAgentsAgentThreadMessageReceivedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentThreadMessageSent]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentThreadMessageSent() (v ManagedAgentsAgentThreadMessageSentEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentToolResult]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentToolResult() (v ManagedAgentsAgentToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAgentToolUse]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAgentToolUse() (v ManagedAgentsAgentToolUseEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsAny]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsAny() anyManagedAgentsStreamSessionThreadEvents +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsStreamSessionThreadEventsUnion.AsAny().(type) { +case qoder.ManagedAgentsUserMessageEvent: +case qoder.ManagedAgentsUserInterruptEvent: +case qoder.ManagedAgentsUserToolConfirmationEvent: +case qoder.ManagedAgentsUserCustomToolResultEvent: +case qoder.ManagedAgentsAgentCustomToolUseEvent: +case qoder.ManagedAgentsAgentMessageEvent: +case qoder.ManagedAgentsAgentThinkingEvent: +case qoder.ManagedAgentsAgentMCPToolUseEvent: +case qoder.ManagedAgentsAgentMCPToolResultEvent: +case qoder.ManagedAgentsAgentToolUseEvent: +case qoder.ManagedAgentsAgentToolResultEvent: +case qoder.ManagedAgentsAgentThreadMessageReceivedEvent: +case qoder.ManagedAgentsAgentThreadMessageSentEvent: +case qoder.ManagedAgentsAgentThreadContextCompactedEvent: +case qoder.ManagedAgentsSessionErrorEvent: +case qoder.ManagedAgentsSessionStatusRescheduledEvent: +case qoder.ManagedAgentsSessionStatusRunningEvent: +case qoder.ManagedAgentsSessionStatusIdleEvent: +case qoder.ManagedAgentsSessionStatusTerminatedEvent: +case qoder.ManagedAgentsSessionThreadCreatedEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationStartEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationEndEvent: +case qoder.ManagedAgentsSpanModelRequestStartEvent: +case qoder.ManagedAgentsSpanModelRequestEndEvent: +case qoder.ManagedAgentsSpanOutcomeEvaluationOngoingEvent: +case qoder.ManagedAgentsUserDefineOutcomeEvent: +case qoder.ManagedAgentsSessionDeletedEvent: +case qoder.ManagedAgentsSessionThreadStatusRunningEvent: +case qoder.ManagedAgentsSessionThreadStatusIdleEvent: +case qoder.ManagedAgentsSessionThreadStatusTerminatedEvent: +case qoder.ManagedAgentsUserToolResultEvent: +case qoder.ManagedAgentsSessionThreadStatusRescheduledEvent: +case qoder.ManagedAgentsSessionUpdatedEvent: +case qoder.ManagedAgentsStartEvent: +case qoder.ManagedAgentsDeltaEvent: +case qoder.ManagedAgentsSystemMessageEvent: +case qoder.ManagedAgentsSessionUsageEvent: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsEventDelta]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsEventDelta() (v ManagedAgentsDeltaEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsEventStart]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsEventStart() (v ManagedAgentsStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionDeleted]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionDeleted() (v ManagedAgentsSessionDeletedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionError]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionError() (v ManagedAgentsSessionErrorEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionStatusIdle]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionStatusIdle() (v ManagedAgentsSessionStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionStatusRescheduled]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionStatusRescheduled() (v ManagedAgentsSessionStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionStatusRunning]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionStatusRunning() (v ManagedAgentsSessionStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionStatusTerminated]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionStatusTerminated() (v ManagedAgentsSessionStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionThreadCreated]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionThreadCreated() (v ManagedAgentsSessionThreadCreatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionThreadStatusIdle]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionThreadStatusIdle() (v ManagedAgentsSessionThreadStatusIdleEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionThreadStatusRescheduled]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionThreadStatusRescheduled() (v ManagedAgentsSessionThreadStatusRescheduledEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionThreadStatusRunning]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionThreadStatusRunning() (v ManagedAgentsSessionThreadStatusRunningEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionThreadStatusTerminated]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionThreadStatusTerminated() (v ManagedAgentsSessionThreadStatusTerminatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionUpdated]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionUpdated() (v ManagedAgentsSessionUpdatedEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSessionUsage]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSessionUsage() (v ManagedAgentsSessionUsageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSpanModelRequestEnd]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSpanModelRequestEnd() (v ManagedAgentsSpanModelRequestEndEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSpanModelRequestStart]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSpanModelRequestStart() (v ManagedAgentsSpanModelRequestStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSpanOutcomeEvaluationEnd]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSpanOutcomeEvaluationEnd() (v ManagedAgentsSpanOutcomeEvaluationEndEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSpanOutcomeEvaluationOngoing]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSpanOutcomeEvaluationOngoing() (v ManagedAgentsSpanOutcomeEvaluationOngoingEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSpanOutcomeEvaluationStart]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSpanOutcomeEvaluationStart() (v ManagedAgentsSpanOutcomeEvaluationStartEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsSystemMessage]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsSystemMessage() (v ManagedAgentsSystemMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserCustomToolResult]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserCustomToolResult() (v ManagedAgentsUserCustomToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserDefineOutcome]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserDefineOutcome() (v ManagedAgentsUserDefineOutcomeEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserInterrupt]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserInterrupt() (v ManagedAgentsUserInterruptEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserMessage]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserMessage() (v ManagedAgentsUserMessageEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserToolConfirmation]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserToolConfirmation() (v ManagedAgentsUserToolConfirmationEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [AsUserToolResult]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) AsUserToolResult() (v ManagedAgentsUserToolResultEvent) +``` + + + + +### func \(ManagedAgentsStreamSessionThreadEventsUnion\) [RawJSON]() + +```go +func (u ManagedAgentsStreamSessionThreadEventsUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsStreamSessionThreadEventsUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionThreadEventsUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionThreadEventsUnionContent]() + +ManagedAgentsStreamSessionThreadEventsUnionContent is an implicit subunion of [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). ManagedAgentsStreamSessionThreadEventsUnionContent provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfManagedAgentsUserMessageEventContentArray OfManagedAgentsUserCustomToolResultEventContentArray OfManagedAgentsAgentMessageEventContentArray OfManagedAgentsAgentMCPToolResultEventContentArray OfManagedAgentsAgentToolResultEventContentArray OfManagedAgentsAgentThreadMessageReceivedEventContentArray OfManagedAgentsAgentThreadMessageSentEventContentArray OfManagedAgentsUserToolResultEventContentArray OfManagedAgentsSystemContentBlockArray\] + +```go +type ManagedAgentsStreamSessionThreadEventsUnionContent struct { + // This field will be present if the value is a + // [[]ManagedAgentsUserMessageEventContentUnion] instead of an object. + OfManagedAgentsUserMessageEventContentArray []ManagedAgentsUserMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserCustomToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserCustomToolResultEventContentArray []ManagedAgentsUserCustomToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMessageEventContentUnion] instead of an object. + OfManagedAgentsAgentMessageEventContentArray []ManagedAgentsAgentMessageEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentMCPToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentMCPToolResultEventContentArray []ManagedAgentsAgentMCPToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentToolResultEventContentUnion] instead of an object. + OfManagedAgentsAgentToolResultEventContentArray []ManagedAgentsAgentToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageReceivedEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageReceivedEventContentArray []ManagedAgentsAgentThreadMessageReceivedEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsAgentThreadMessageSentEventContentUnion] instead of an + // object. + OfManagedAgentsAgentThreadMessageSentEventContentArray []ManagedAgentsAgentThreadMessageSentEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsUserToolResultEventContentUnion] instead of an object. + OfManagedAgentsUserToolResultEventContentArray []ManagedAgentsUserToolResultEventContentUnion `json:",inline"` + // This field will be present if the value is a + // [[]ManagedAgentsSystemContentBlock] instead of an object. + OfManagedAgentsSystemContentBlockArray []ManagedAgentsSystemContentBlock `json:",inline"` + JSON struct { + OfManagedAgentsUserMessageEventContentArray respjson.Field + OfManagedAgentsUserCustomToolResultEventContentArray respjson.Field + OfManagedAgentsAgentMessageEventContentArray respjson.Field + OfManagedAgentsAgentMCPToolResultEventContentArray respjson.Field + OfManagedAgentsAgentToolResultEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageReceivedEventContentArray respjson.Field + OfManagedAgentsAgentThreadMessageSentEventContentArray respjson.Field + OfManagedAgentsUserToolResultEventContentArray respjson.Field + OfManagedAgentsSystemContentBlockArray respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionThreadEventsUnionContent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionThreadEventsUnionContent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionThreadEventsUnionStopReason]() + +ManagedAgentsStreamSessionThreadEventsUnionStopReason is an implicit subunion of [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). ManagedAgentsStreamSessionThreadEventsUnionStopReason provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). + +```go +type ManagedAgentsStreamSessionThreadEventsUnionStopReason struct { + Type string `json:"type"` + // This field is from variant + // [ManagedAgentsSessionStatusIdleEventStopReasonUnion], + // [ManagedAgentsSessionThreadStatusIdleEventStopReasonUnion]. + EventIDs []string `json:"event_ids"` + JSON struct { + Type respjson.Field + EventIDs respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionThreadEventsUnionStopReason\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionThreadEventsUnionStopReason) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsStreamSessionThreadEventsUnionUsage]() + +ManagedAgentsStreamSessionThreadEventsUnionUsage is an implicit subunion of [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). ManagedAgentsStreamSessionThreadEventsUnionUsage provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsStreamSessionThreadEventsUnion](<#ManagedAgentsStreamSessionThreadEventsUnion>). + +```go +type ManagedAgentsStreamSessionThreadEventsUnionUsage struct { + // This field is from variant [ManagedAgentsSpanModelUsage]. + CacheCreationInputTokens int64 `json:"cache_creation_input_tokens"` + CacheReadInputTokens int64 `json:"cache_read_input_tokens"` + InputTokens int64 `json:"input_tokens"` + OutputTokens int64 `json:"output_tokens"` + // This field is from variant [ManagedAgentsSpanModelUsage]. + Speed ManagedAgentsSpanModelUsageSpeed `json:"speed"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ActiveSeconds float64 `json:"active_seconds"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + CacheCreation ManagedAgentsCacheCreationUsage `json:"cache_creation"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ListCost MonetaryAmount `json:"list_cost"` + // This field is from variant [ManagedAgentsSessionUsageSnapshot]. + ServerToolUse ManagedAgentsServerToolUsage `json:"server_tool_use"` + JSON struct { + CacheCreationInputTokens respjson.Field + CacheReadInputTokens respjson.Field + InputTokens respjson.Field + OutputTokens respjson.Field + Speed respjson.Field + ActiveSeconds respjson.Field + CacheCreation respjson.Field + ListCost respjson.Field + ServerToolUse respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsStreamSessionThreadEventsUnionUsage\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsStreamSessionThreadEventsUnionUsage) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSystemContentBlock]() + +Regular text content. + +```go +type ManagedAgentsSystemContentBlock struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsSystemContentBlockType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Text respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSystemContentBlock\) [RawJSON]() + +```go +func (r ManagedAgentsSystemContentBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsSystemContentBlock\) [ToParam]() + +```go +func (r ManagedAgentsSystemContentBlock) ToParam() ManagedAgentsSystemContentBlockParam +``` + +ToParam converts this ManagedAgentsSystemContentBlock to a ManagedAgentsSystemContentBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsSystemContentBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsSystemContentBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSystemContentBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSystemContentBlockParam]() + +Regular text content. + +The properties Text, Type are required. + +```go +type ManagedAgentsSystemContentBlockParam struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsSystemContentBlockType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSystemContentBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsSystemContentBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSystemContentBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSystemContentBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSystemContentBlockType]() + + + +```go +type ManagedAgentsSystemContentBlockType string +``` + + + +```go +const ( + ManagedAgentsSystemContentBlockTypeText ManagedAgentsSystemContentBlockType = "text" +) +``` + + +## type [ManagedAgentsSystemMessageEvent]() + +A mid\-conversation system message event. Carries system\-role content that is appended to the session as a \`role: "system"\` turn. + +```go +type ManagedAgentsSystemMessageEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // System content blocks. Text-only. + Content []ManagedAgentsSystemContentBlock `json:"content" api:"required"` + // Any of "system.message". + Type ManagedAgentsSystemMessageEventType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsSystemMessageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsSystemMessageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsSystemMessageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSystemMessageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSystemMessageEventParams]() + +Privileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a \`role: "system"\` turn rather than replacing the top\-level system prompt. At most one per request: it must be the final event and immediately follow the \`user.message\`, \`user.tool\_result\`, or \`user.custom\_tool\_result\` it accompanies. Only supported on models that accept mid\-conversation system messages. + +The properties Content, Type are required. + +```go +type ManagedAgentsSystemMessageEventParams struct { + // System content blocks to append. Text-only. + Content []ManagedAgentsSystemContentBlockParam `json:"content,omitzero" api:"required"` + // Any of "system.message". + Type ManagedAgentsSystemMessageEventParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsSystemMessageEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsSystemMessageEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsSystemMessageEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsSystemMessageEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsSystemMessageEventParamsType]() + + + +```go +type ManagedAgentsSystemMessageEventParamsType string +``` + + + +```go +const ( + ManagedAgentsSystemMessageEventParamsTypeSystemMessage ManagedAgentsSystemMessageEventParamsType = "system.message" +) +``` + + +## type [ManagedAgentsSystemMessageEventType]() + + + +```go +type ManagedAgentsSystemMessageEventType string +``` + + + +```go +const ( + ManagedAgentsSystemMessageEventTypeSystemMessage ManagedAgentsSystemMessageEventType = "system.message" +) +``` + + +## type [ManagedAgentsTextBlock]() + +Regular text content. + +```go +type ManagedAgentsTextBlock struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsTextBlockType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Text respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTextBlock\) [RawJSON]() + +```go +func (r ManagedAgentsTextBlock) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsTextBlock\) [ToParam]() + +```go +func (r ManagedAgentsTextBlock) ToParam() ManagedAgentsTextBlockParam +``` + +ToParam converts this ManagedAgentsTextBlock to a ManagedAgentsTextBlockParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsTextBlockParam.Overrides\(\) + + +### func \(\*ManagedAgentsTextBlock\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTextBlock) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTextBlockParam]() + +Regular text content. + +The properties Text, Type are required. + +```go +type ManagedAgentsTextBlockParam struct { + // The text content. + Text string `json:"text" api:"required"` + // Any of "text". + Type ManagedAgentsTextBlockType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTextBlockParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTextBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTextBlockParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTextBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTextBlockType]() + + + +```go +type ManagedAgentsTextBlockType string +``` + + + +```go +const ( + ManagedAgentsTextBlockTypeText ManagedAgentsTextBlockType = "text" +) +``` + + +## type [ManagedAgentsTextRubric]() + +Rubric content provided inline as text. + +```go +type ManagedAgentsTextRubric struct { + // Rubric content. Plain text or markdown — the grader treats it as freeform text. + Content string `json:"content" api:"required"` + // Any of "text". + Type ManagedAgentsTextRubricType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Content respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTextRubric\) [RawJSON]() + +```go +func (r ManagedAgentsTextRubric) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsTextRubric\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTextRubric) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTextRubricParams]() + +Rubric content provided inline as text. + +The properties Content, Type are required. + +```go +type ManagedAgentsTextRubricParams struct { + // Rubric content. Plain text or markdown — the grader treats it as freeform text. + // Maximum 262144 characters. + Content string `json:"content" api:"required"` + // Any of "text". + Type ManagedAgentsTextRubricParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTextRubricParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsTextRubricParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTextRubricParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTextRubricParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTextRubricParamsType]() + + + +```go +type ManagedAgentsTextRubricParamsType string +``` + + + +```go +const ( + ManagedAgentsTextRubricParamsTypeText ManagedAgentsTextRubricParamsType = "text" +) +``` + + +## type [ManagedAgentsTextRubricType]() + + + +```go +type ManagedAgentsTextRubricType string +``` + + + +```go +const ( + ManagedAgentsTextRubricTypeText ManagedAgentsTextRubricType = "text" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthBasicParam]() + +Token endpoint uses HTTP Basic authentication with client credentials. + +The properties ClientSecret, Type are required. + +```go +type ManagedAgentsTokenEndpointAuthBasicParam struct { + // OAuth client secret. + ClientSecret string `json:"client_secret" api:"required"` + // Any of "client_secret_basic". + Type ManagedAgentsTokenEndpointAuthBasicParamType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthBasicParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthBasicParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTokenEndpointAuthBasicParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthBasicParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthBasicParamType]() + + + +```go +type ManagedAgentsTokenEndpointAuthBasicParamType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthBasicParamTypeClientSecretBasic ManagedAgentsTokenEndpointAuthBasicParamType = "client_secret_basic" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthBasicResponse]() + +Token endpoint uses HTTP Basic authentication with client credentials. + +```go +type ManagedAgentsTokenEndpointAuthBasicResponse struct { + // Any of "client_secret_basic". + Type ManagedAgentsTokenEndpointAuthBasicResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthBasicResponse\) [RawJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthBasicResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsTokenEndpointAuthBasicResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthBasicResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthBasicResponseType]() + + + +```go +type ManagedAgentsTokenEndpointAuthBasicResponseType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthBasicResponseTypeClientSecretBasic ManagedAgentsTokenEndpointAuthBasicResponseType = "client_secret_basic" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthBasicUpdateParam]() + +Updated HTTP Basic authentication parameters for the token endpoint. + +The property Type is required. + +```go +type ManagedAgentsTokenEndpointAuthBasicUpdateParam struct { + // Any of "client_secret_basic". + Type ManagedAgentsTokenEndpointAuthBasicUpdateParamType `json:"type,omitzero" api:"required"` + // Updated OAuth client secret. + ClientSecret param.Opt[string] `json:"client_secret,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthBasicUpdateParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthBasicUpdateParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTokenEndpointAuthBasicUpdateParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthBasicUpdateParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthBasicUpdateParamType]() + + + +```go +type ManagedAgentsTokenEndpointAuthBasicUpdateParamType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthBasicUpdateParamTypeClientSecretBasic ManagedAgentsTokenEndpointAuthBasicUpdateParamType = "client_secret_basic" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthNoneParam]() + +Token endpoint requires no client authentication. + +The property Type is required. + +```go +type ManagedAgentsTokenEndpointAuthNoneParam struct { + // Any of "none". + Type ManagedAgentsTokenEndpointAuthNoneParamType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthNoneParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthNoneParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTokenEndpointAuthNoneParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthNoneParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthNoneParamType]() + + + +```go +type ManagedAgentsTokenEndpointAuthNoneParamType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthNoneParamTypeNone ManagedAgentsTokenEndpointAuthNoneParamType = "none" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthNoneResponse]() + +Token endpoint requires no client authentication. + +```go +type ManagedAgentsTokenEndpointAuthNoneResponse struct { + // Any of "none". + Type ManagedAgentsTokenEndpointAuthNoneResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthNoneResponse\) [RawJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthNoneResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsTokenEndpointAuthNoneResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthNoneResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthNoneResponseType]() + + + +```go +type ManagedAgentsTokenEndpointAuthNoneResponseType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthNoneResponseTypeNone ManagedAgentsTokenEndpointAuthNoneResponseType = "none" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthPostParam]() + +Token endpoint uses POST body authentication with client credentials. + +The properties ClientSecret, Type are required. + +```go +type ManagedAgentsTokenEndpointAuthPostParam struct { + // OAuth client secret. + ClientSecret string `json:"client_secret" api:"required"` + // Any of "client_secret_post". + Type ManagedAgentsTokenEndpointAuthPostParamType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthPostParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthPostParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTokenEndpointAuthPostParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthPostParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthPostParamType]() + + + +```go +type ManagedAgentsTokenEndpointAuthPostParamType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthPostParamTypeClientSecretPost ManagedAgentsTokenEndpointAuthPostParamType = "client_secret_post" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthPostResponse]() + +Token endpoint uses POST body authentication with client credentials. + +```go +type ManagedAgentsTokenEndpointAuthPostResponse struct { + // Any of "client_secret_post". + Type ManagedAgentsTokenEndpointAuthPostResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthPostResponse\) [RawJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthPostResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsTokenEndpointAuthPostResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthPostResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthPostResponseType]() + + + +```go +type ManagedAgentsTokenEndpointAuthPostResponseType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthPostResponseTypeClientSecretPost ManagedAgentsTokenEndpointAuthPostResponseType = "client_secret_post" +) +``` + + +## type [ManagedAgentsTokenEndpointAuthPostUpdateParam]() + +Updated POST body authentication parameters for the token endpoint. + +The property Type is required. + +```go +type ManagedAgentsTokenEndpointAuthPostUpdateParam struct { + // Any of "client_secret_post". + Type ManagedAgentsTokenEndpointAuthPostUpdateParamType `json:"type,omitzero" api:"required"` + // Updated OAuth client secret. + ClientSecret param.Opt[string] `json:"client_secret,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsTokenEndpointAuthPostUpdateParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsTokenEndpointAuthPostUpdateParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsTokenEndpointAuthPostUpdateParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTokenEndpointAuthPostUpdateParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTokenEndpointAuthPostUpdateParamType]() + + + +```go +type ManagedAgentsTokenEndpointAuthPostUpdateParamType string +``` + + + +```go +const ( + ManagedAgentsTokenEndpointAuthPostUpdateParamTypeClientSecretPost ManagedAgentsTokenEndpointAuthPostUpdateParamType = "client_secret_post" +) +``` + + +## type [ManagedAgentsTriggerContextUnion]() + +ManagedAgentsTriggerContextUnion contains all possible properties and values from [ManagedAgentsScheduleTriggerContext](<#ManagedAgentsScheduleTriggerContext>), [ManagedAgentsManualTriggerContext](<#ManagedAgentsManualTriggerContext>). + +Use the [ManagedAgentsTriggerContextUnion.AsAny](<#ManagedAgentsTriggerContextUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsTriggerContextUnion struct { + // This field is from variant [ManagedAgentsScheduleTriggerContext]. + ScheduledAt time.Time `json:"scheduled_at"` + // Any of "schedule", "manual". + Type string `json:"type"` + JSON struct { + ScheduledAt respjson.Field + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsTriggerContextUnion\) [AsAny]() + +```go +func (u ManagedAgentsTriggerContextUnion) AsAny() anyManagedAgentsTriggerContext +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsTriggerContextUnion.AsAny().(type) { +case qoder.ManagedAgentsScheduleTriggerContext: +case qoder.ManagedAgentsManualTriggerContext: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsTriggerContextUnion\) [AsManual]() + +```go +func (u ManagedAgentsTriggerContextUnion) AsManual() (v ManagedAgentsManualTriggerContext) +``` + + + + +### func \(ManagedAgentsTriggerContextUnion\) [AsSchedule]() + +```go +func (u ManagedAgentsTriggerContextUnion) AsSchedule() (v ManagedAgentsScheduleTriggerContext) +``` + + + + +### func \(ManagedAgentsTriggerContextUnion\) [RawJSON]() + +```go +func (u ManagedAgentsTriggerContextUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsTriggerContextUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsTriggerContextUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsTriggerType]() + +What triggered a deployment run. + +```go +type ManagedAgentsTriggerType string +``` + + + +```go +const ( + ManagedAgentsTriggerTypeSchedule ManagedAgentsTriggerType = "schedule" + ManagedAgentsTriggerTypeManual ManagedAgentsTriggerType = "manual" +) +``` + + +## type [ManagedAgentsURLDocumentSource]() + +Document referenced by URL. + +```go +type ManagedAgentsURLDocumentSource struct { + // Any of "url". + Type ManagedAgentsURLDocumentSourceType `json:"type" api:"required"` + // URL of the document to fetch. + URL string `json:"url" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + URL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsURLDocumentSource\) [RawJSON]() + +```go +func (r ManagedAgentsURLDocumentSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsURLDocumentSource\) [ToParam]() + +```go +func (r ManagedAgentsURLDocumentSource) ToParam() ManagedAgentsURLDocumentSourceParam +``` + +ToParam converts this ManagedAgentsURLDocumentSource to a ManagedAgentsURLDocumentSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsURLDocumentSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsURLDocumentSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsURLDocumentSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsURLDocumentSourceParam]() + +Document referenced by URL. + +The properties Type, URL are required. + +```go +type ManagedAgentsURLDocumentSourceParam struct { + // Any of "url". + Type ManagedAgentsURLDocumentSourceType `json:"type,omitzero" api:"required"` + // URL of the document to fetch. + URL string `json:"url" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsURLDocumentSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsURLDocumentSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsURLDocumentSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsURLDocumentSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsURLDocumentSourceType]() + + + +```go +type ManagedAgentsURLDocumentSourceType string +``` + + + +```go +const ( + ManagedAgentsURLDocumentSourceTypeURL ManagedAgentsURLDocumentSourceType = "url" +) +``` + + +## type [ManagedAgentsURLImageSource]() + +Image referenced by URL. + +```go +type ManagedAgentsURLImageSource struct { + // Any of "url". + Type ManagedAgentsURLImageSourceType `json:"type" api:"required"` + // URL of the image to fetch. + URL string `json:"url" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + URL respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsURLImageSource\) [RawJSON]() + +```go +func (r ManagedAgentsURLImageSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsURLImageSource\) [ToParam]() + +```go +func (r ManagedAgentsURLImageSource) ToParam() ManagedAgentsURLImageSourceParam +``` + +ToParam converts this ManagedAgentsURLImageSource to a ManagedAgentsURLImageSourceParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsURLImageSourceParam.Overrides\(\) + + +### func \(\*ManagedAgentsURLImageSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsURLImageSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsURLImageSourceParam]() + +Image referenced by URL. + +The properties Type, URL are required. + +```go +type ManagedAgentsURLImageSourceParam struct { + // Any of "url". + Type ManagedAgentsURLImageSourceType `json:"type,omitzero" api:"required"` + // URL of the image to fetch. + URL string `json:"url" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsURLImageSourceParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsURLImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsURLImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsURLImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsURLImageSourceType]() + + + +```go +type ManagedAgentsURLImageSourceType string +``` + + + +```go +const ( + ManagedAgentsURLImageSourceTypeURL ManagedAgentsURLImageSourceType = "url" +) +``` + + +## type [ManagedAgentsURLMCPServerParams]() + +URL\-based MCP server connection. + +The properties Name, Type, URL are required. + +```go +type ManagedAgentsURLMCPServerParams struct { + // Unique name for this server, referenced by mcp_toolset configurations. 1-255 + // characters. + Name string `json:"name" api:"required"` + // Any of "url". + Type ManagedAgentsURLMCPServerParamsType `json:"type,omitzero" api:"required"` + // Endpoint URL for the MCP server. + URL string `json:"url" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsURLMCPServerParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsURLMCPServerParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsURLMCPServerParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsURLMCPServerParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsURLMCPServerParamsType]() + + + +```go +type ManagedAgentsURLMCPServerParamsType string +``` + + + +```go +const ( + ManagedAgentsURLMCPServerParamsTypeURL ManagedAgentsURLMCPServerParamsType = "url" +) +``` + + +## type [ManagedAgentsUnknownDeploymentPausedReasonError]() + +An unrecognized error auto\-paused the deployment. A fallback variant; matches a run whose \`error.type\` is \`unknown\_error\`. + +```go +type ManagedAgentsUnknownDeploymentPausedReasonError struct { + // Any of "unknown_error". + Type ManagedAgentsUnknownDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUnknownDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsUnknownDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUnknownDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnknownDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnknownDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsUnknownDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsUnknownDeploymentPausedReasonErrorTypeUnknownError ManagedAgentsUnknownDeploymentPausedReasonErrorType = "unknown_error" +) +``` + + +## type [ManagedAgentsUnknownError]() + +An unknown or unexpected error occurred during session execution. A fallback variant; clients that don't recognize a new error code can match on \`retry\_status\` and \`message\` alone. + +```go +type ManagedAgentsUnknownError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // What the client should do next in response to this error. + RetryStatus ManagedAgentsUnknownErrorRetryStatusUnion `json:"retry_status" api:"required"` + // Any of "unknown_error". + Type ManagedAgentsUnknownErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + RetryStatus respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUnknownError\) [RawJSON]() + +```go +func (r ManagedAgentsUnknownError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUnknownError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnknownError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnknownErrorRetryStatusUnion]() + +ManagedAgentsUnknownErrorRetryStatusUnion contains all possible properties and values from [ManagedAgentsRetryStatusRetrying](<#ManagedAgentsRetryStatusRetrying>), [ManagedAgentsRetryStatusExhausted](<#ManagedAgentsRetryStatusExhausted>), [ManagedAgentsRetryStatusTerminal](<#ManagedAgentsRetryStatusTerminal>). + +Use the [ManagedAgentsUnknownErrorRetryStatusUnion.AsAny](<#ManagedAgentsUnknownErrorRetryStatusUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsUnknownErrorRetryStatusUnion struct { + // Any of "retrying", "exhausted", "terminal". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUnknownErrorRetryStatusUnion\) [AsAny]() + +```go +func (u ManagedAgentsUnknownErrorRetryStatusUnion) AsAny() anyManagedAgentsUnknownErrorRetryStatus +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsUnknownErrorRetryStatusUnion.AsAny().(type) { +case qoder.ManagedAgentsRetryStatusRetrying: +case qoder.ManagedAgentsRetryStatusExhausted: +case qoder.ManagedAgentsRetryStatusTerminal: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsUnknownErrorRetryStatusUnion\) [AsExhausted]() + +```go +func (u ManagedAgentsUnknownErrorRetryStatusUnion) AsExhausted() (v ManagedAgentsRetryStatusExhausted) +``` + + + + +### func \(ManagedAgentsUnknownErrorRetryStatusUnion\) [AsRetrying]() + +```go +func (u ManagedAgentsUnknownErrorRetryStatusUnion) AsRetrying() (v ManagedAgentsRetryStatusRetrying) +``` + + + + +### func \(ManagedAgentsUnknownErrorRetryStatusUnion\) [AsTerminal]() + +```go +func (u ManagedAgentsUnknownErrorRetryStatusUnion) AsTerminal() (v ManagedAgentsRetryStatusTerminal) +``` + + + + +### func \(ManagedAgentsUnknownErrorRetryStatusUnion\) [RawJSON]() + +```go +func (u ManagedAgentsUnknownErrorRetryStatusUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUnknownErrorRetryStatusUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnknownErrorRetryStatusUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnknownErrorType]() + + + +```go +type ManagedAgentsUnknownErrorType string +``` + + + +```go +const ( + ManagedAgentsUnknownErrorTypeUnknownError ManagedAgentsUnknownErrorType = "unknown_error" +) +``` + + +## type [ManagedAgentsUnknownRunError]() + +An unknown or unexpected error caused the run to fail. A fallback variant; clients that do not recognize a new error type can match on message alone. + +```go +type ManagedAgentsUnknownRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "unknown_error". + Type ManagedAgentsUnknownRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUnknownRunError\) [RawJSON]() + +```go +func (r ManagedAgentsUnknownRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUnknownRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnknownRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnknownRunErrorType]() + + + +```go +type ManagedAgentsUnknownRunErrorType string +``` + + + +```go +const ( + ManagedAgentsUnknownRunErrorTypeUnknownError ManagedAgentsUnknownRunErrorType = "unknown_error" +) +``` + + +## type [ManagedAgentsUnrestrictedCredentialNetworkingParams]() + +Substitute the secret on any host the session's Environment network policy permits egress to. The Environment's network policy is the only boundary on where the secret can reach. + +The property Type is required. + +```go +type ManagedAgentsUnrestrictedCredentialNetworkingParams struct { + // Any of "unrestricted". + Type ManagedAgentsUnrestrictedCredentialNetworkingParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUnrestrictedCredentialNetworkingParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUnrestrictedCredentialNetworkingParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUnrestrictedCredentialNetworkingParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnrestrictedCredentialNetworkingParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnrestrictedCredentialNetworkingParamsType]() + + + +```go +type ManagedAgentsUnrestrictedCredentialNetworkingParamsType string +``` + + + +```go +const ( + ManagedAgentsUnrestrictedCredentialNetworkingParamsTypeUnrestricted ManagedAgentsUnrestrictedCredentialNetworkingParamsType = "unrestricted" +) +``` + + +## type [ManagedAgentsUnrestrictedCredentialNetworkingResponse]() + +The secret is substituted on any host the session's Environment network policy permits egress to. + +```go +type ManagedAgentsUnrestrictedCredentialNetworkingResponse struct { + // Any of "unrestricted". + Type ManagedAgentsUnrestrictedCredentialNetworkingResponseType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUnrestrictedCredentialNetworkingResponse\) [RawJSON]() + +```go +func (r ManagedAgentsUnrestrictedCredentialNetworkingResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUnrestrictedCredentialNetworkingResponse\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUnrestrictedCredentialNetworkingResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUnrestrictedCredentialNetworkingResponseType]() + + + +```go +type ManagedAgentsUnrestrictedCredentialNetworkingResponseType string +``` + + + +```go +const ( + ManagedAgentsUnrestrictedCredentialNetworkingResponseTypeUnrestricted ManagedAgentsUnrestrictedCredentialNetworkingResponseType = "unrestricted" +) +``` + + +## type [ManagedAgentsUserActor]() + +Attribution for a write made by a human user through the Qoder Console. + +```go +type ManagedAgentsUserActor struct { + // Any of "user_actor". + Type ManagedAgentsUserActorType `json:"type" api:"required"` + // ID of the user who performed the write (a `user_...` value). + UserID string `json:"user_id" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + UserID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserActor\) [RawJSON]() + +```go +func (r ManagedAgentsUserActor) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserActor\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserActor) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserActorType]() + + + +```go +type ManagedAgentsUserActorType string +``` + + + +```go +const ( + ManagedAgentsUserActorTypeUserActor ManagedAgentsUserActorType = "user_actor" +) +``` + + +## type [ManagedAgentsUserCustomToolResultEvent]() + +Event sent by the client providing the result of a custom tool execution. + +```go +type ManagedAgentsUserCustomToolResultEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // The id of the `agent.custom_tool_use` event this result corresponds to, which + // can be found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + CustomToolUseID string `json:"custom_tool_use_id" api:"required"` + // Any of "user.custom_tool_result". + Type ManagedAgentsUserCustomToolResultEventType `json:"type" api:"required"` + // The result content returned by the tool. + Content []ManagedAgentsUserCustomToolResultEventContentUnion `json:"content"` + // Whether the tool execution resulted in an error. + IsError bool `json:"is_error" api:"nullable"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // Routes this result to a subagent thread. Copy from the `agent.custom_tool_use` + // event's `session_thread_id`. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + CustomToolUseID respjson.Field + Type respjson.Field + Content respjson.Field + IsError respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserCustomToolResultEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserCustomToolResultEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserCustomToolResultEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserCustomToolResultEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserCustomToolResultEventContentUnion]() + +ManagedAgentsUserCustomToolResultEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsSearchResultBlock](<#ManagedAgentsSearchResultBlock>). + +Use the [ManagedAgentsUserCustomToolResultEventContentUnion.AsAny](<#ManagedAgentsUserCustomToolResultEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsUserCustomToolResultEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "search_result". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion], [string] + Source ManagedAgentsUserCustomToolResultEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + Title string `json:"title"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Citations ManagedAgentsSearchResultCitations `json:"citations"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Content []ManagedAgentsSearchResultContent `json:"content"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + Citations respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) AsAny() anyManagedAgentsUserCustomToolResultEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsUserCustomToolResultEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsSearchResultBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [AsSearchResult]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) AsSearchResult() (v ManagedAgentsSearchResultBlock) +``` + + + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsUserCustomToolResultEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsUserCustomToolResultEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserCustomToolResultEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserCustomToolResultEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserCustomToolResultEventContentUnionSource]() + +ManagedAgentsUserCustomToolResultEventContentUnionSource is an implicit subunion of [ManagedAgentsUserCustomToolResultEventContentUnion](<#ManagedAgentsUserCustomToolResultEventContentUnion>). ManagedAgentsUserCustomToolResultEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsUserCustomToolResultEventContentUnion](<#ManagedAgentsUserCustomToolResultEventContentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsUserCustomToolResultEventContentUnionSource struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + OfString respjson.Field + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsUserCustomToolResultEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserCustomToolResultEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserCustomToolResultEventParams]() + +Parameters for providing the result of a custom tool execution. + +The properties CustomToolUseID, Type are required. + +```go +type ManagedAgentsUserCustomToolResultEventParams struct { + // The id of the `agent.custom_tool_use` event this result corresponds to, which + // can be found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + CustomToolUseID string `json:"custom_tool_use_id" api:"required"` + // Any of "user.custom_tool_result". + Type ManagedAgentsUserCustomToolResultEventParamsType `json:"type,omitzero" api:"required"` + // Whether the tool execution resulted in an error. + IsError param.Opt[bool] `json:"is_error,omitzero"` + // The result content returned by the tool. + Content []ManagedAgentsUserCustomToolResultEventParamsContentUnion `json:"content,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserCustomToolResultEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserCustomToolResultEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserCustomToolResultEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserCustomToolResultEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserCustomToolResultEventParamsContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsUserCustomToolResultEventParamsContentUnion struct { + OfText *ManagedAgentsTextBlockParam `json:",omitzero,inline"` + OfImage *ManagedAgentsImageBlockParam `json:",omitzero,inline"` + OfDocument *ManagedAgentsDocumentBlockParam `json:",omitzero,inline"` + OfSearchResult *ManagedAgentsSearchResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetCitations]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetCitations() *ManagedAgentsSearchResultCitationsParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetContent]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetContent() []ManagedAgentsSearchResultContentParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetContext]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetContext() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetSource]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetSource() (res managedAgentsUserCustomToolResultEventParamsContentUnionSource) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetText]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetTitle]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [GetType]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsUserCustomToolResultEventParamsContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsUserCustomToolResultEventParamsContentUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsUserCustomToolResultEventParamsContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserCustomToolResultEventParamsType]() + + + +```go +type ManagedAgentsUserCustomToolResultEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserCustomToolResultEventParamsTypeUserCustomToolResult ManagedAgentsUserCustomToolResultEventParamsType = "user.custom_tool_result" +) +``` + + +## type [ManagedAgentsUserCustomToolResultEventType]() + + + +```go +type ManagedAgentsUserCustomToolResultEventType string +``` + + + +```go +const ( + ManagedAgentsUserCustomToolResultEventTypeUserCustomToolResult ManagedAgentsUserCustomToolResultEventType = "user.custom_tool_result" +) +``` + + +## type [ManagedAgentsUserDefineOutcomeEvent]() + +Echo of a \`user.define\_outcome\` input event. Carries the server\-generated \`outcome\_id\` that subsequent \`span.outcome\_evaluation\_\*\` events reference. + +```go +type ManagedAgentsUserDefineOutcomeEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // What the agent should produce. Copied from the input event. + Description string `json:"description" api:"required"` + // Evaluate-then-revise cycles before giving up. Default 3, max 20. + MaxIterations int64 `json:"max_iterations" api:"required"` + // Server-generated `outc_` ID for this outcome. Referenced by + // `span.outcome_evaluation_*` events and the session's `outcome_evaluations` list. + OutcomeID string `json:"outcome_id" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"required" format:"date-time"` + // Rubric for grading the quality of an outcome. + Rubric ManagedAgentsUserDefineOutcomeEventRubricUnion `json:"rubric" api:"required"` + // Any of "user.define_outcome". + Type ManagedAgentsUserDefineOutcomeEventType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Description respjson.Field + MaxIterations respjson.Field + OutcomeID respjson.Field + ProcessedAt respjson.Field + Rubric respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserDefineOutcomeEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserDefineOutcomeEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserDefineOutcomeEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserDefineOutcomeEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserDefineOutcomeEventParams]() + +Parameters for defining an outcome the agent should work toward. The agent begins work on receipt. + +The properties Description, Rubric, Type are required. + +```go +type ManagedAgentsUserDefineOutcomeEventParams struct { + // What the agent should produce. This is the task specification. + Description string `json:"description" api:"required"` + // Rubric for grading the quality of an outcome. + Rubric ManagedAgentsUserDefineOutcomeEventParamsRubricUnion `json:"rubric,omitzero" api:"required"` + // Any of "user.define_outcome". + Type ManagedAgentsUserDefineOutcomeEventParamsType `json:"type,omitzero" api:"required"` + // Eval→revision cycles before giving up. Default 3, max 20. + MaxIterations param.Opt[int64] `json:"max_iterations,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserDefineOutcomeEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserDefineOutcomeEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserDefineOutcomeEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserDefineOutcomeEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserDefineOutcomeEventParamsRubricUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsUserDefineOutcomeEventParamsRubricUnion struct { + OfFile *ManagedAgentsFileRubricParams `json:",omitzero,inline"` + OfText *ManagedAgentsTextRubricParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) [GetContent]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion) GetContent() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) [GetFileID]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) [GetType]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventParamsRubricUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsUserDefineOutcomeEventParamsRubricUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsUserDefineOutcomeEventParamsRubricUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserDefineOutcomeEventParamsType]() + + + +```go +type ManagedAgentsUserDefineOutcomeEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserDefineOutcomeEventParamsTypeUserDefineOutcome ManagedAgentsUserDefineOutcomeEventParamsType = "user.define_outcome" +) +``` + + +## type [ManagedAgentsUserDefineOutcomeEventRubricUnion]() + +ManagedAgentsUserDefineOutcomeEventRubricUnion contains all possible properties and values from [ManagedAgentsFileRubric](<#ManagedAgentsFileRubric>), [ManagedAgentsTextRubric](<#ManagedAgentsTextRubric>). + +Use the [ManagedAgentsUserDefineOutcomeEventRubricUnion.AsAny](<#ManagedAgentsUserDefineOutcomeEventRubricUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsUserDefineOutcomeEventRubricUnion struct { + // This field is from variant [ManagedAgentsFileRubric]. + FileID string `json:"file_id"` + // Any of "file", "text". + Type string `json:"type"` + // This field is from variant [ManagedAgentsTextRubric]. + Content string `json:"content"` + JSON struct { + FileID respjson.Field + Type respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserDefineOutcomeEventRubricUnion\) [AsAny]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventRubricUnion) AsAny() anyManagedAgentsUserDefineOutcomeEventRubric +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsUserDefineOutcomeEventRubricUnion.AsAny().(type) { +case qoder.ManagedAgentsFileRubric: +case qoder.ManagedAgentsTextRubric: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsUserDefineOutcomeEventRubricUnion\) [AsFile]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventRubricUnion) AsFile() (v ManagedAgentsFileRubric) +``` + + + + +### func \(ManagedAgentsUserDefineOutcomeEventRubricUnion\) [AsText]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventRubricUnion) AsText() (v ManagedAgentsTextRubric) +``` + + + + +### func \(ManagedAgentsUserDefineOutcomeEventRubricUnion\) [RawJSON]() + +```go +func (u ManagedAgentsUserDefineOutcomeEventRubricUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserDefineOutcomeEventRubricUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserDefineOutcomeEventRubricUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserDefineOutcomeEventType]() + + + +```go +type ManagedAgentsUserDefineOutcomeEventType string +``` + + + +```go +const ( + ManagedAgentsUserDefineOutcomeEventTypeUserDefineOutcome ManagedAgentsUserDefineOutcomeEventType = "user.define_outcome" +) +``` + + +## type [ManagedAgentsUserInterruptEvent]() + +An interrupt event that pauses agent execution and returns control to the user. + +```go +type ManagedAgentsUserInterruptEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Any of "user.interrupt". + Type ManagedAgentsUserInterruptEventType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // If absent, interrupts every non-archived thread in a multiagent session (or the + // primary alone in a single-agent session). If present, interrupts only the named + // thread. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserInterruptEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserInterruptEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserInterruptEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserInterruptEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserInterruptEventParams]() + +Parameters for sending an interrupt to pause the agent. + +The property Type is required. + +```go +type ManagedAgentsUserInterruptEventParams struct { + // Any of "user.interrupt". + Type ManagedAgentsUserInterruptEventParamsType `json:"type,omitzero" api:"required"` + // If absent, interrupts every non-archived thread in a multiagent session (or the + // primary alone in a single-agent session). If present, interrupts only the named + // thread. + SessionThreadID param.Opt[string] `json:"session_thread_id,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserInterruptEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserInterruptEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserInterruptEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserInterruptEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserInterruptEventParamsType]() + + + +```go +type ManagedAgentsUserInterruptEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserInterruptEventParamsTypeUserInterrupt ManagedAgentsUserInterruptEventParamsType = "user.interrupt" +) +``` + + +## type [ManagedAgentsUserInterruptEventType]() + + + +```go +type ManagedAgentsUserInterruptEventType string +``` + + + +```go +const ( + ManagedAgentsUserInterruptEventTypeUserInterrupt ManagedAgentsUserInterruptEventType = "user.interrupt" +) +``` + + +## type [ManagedAgentsUserLocation]() + +Approximate user location for search result localization. + +```go +type ManagedAgentsUserLocation struct { + // Location precision. Only "approximate" is supported. + Type constant.Approximate `json:"type" default:"approximate"` + // City name. + City string `json:"city" api:"nullable"` + // Two-letter ISO 3166-1 country code, uppercase. + Country string `json:"country" api:"nullable"` + // Region or state name. + Region string `json:"region" api:"nullable"` + // IANA timezone identifier, e.g. "America/Los_Angeles". + Timezone string `json:"timezone" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + City respjson.Field + Country respjson.Field + Region respjson.Field + Timezone respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserLocation\) [RawJSON]() + +```go +func (r ManagedAgentsUserLocation) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(ManagedAgentsUserLocation\) [ToParam]() + +```go +func (r ManagedAgentsUserLocation) ToParam() ManagedAgentsUserLocationParam +``` + +ToParam converts this ManagedAgentsUserLocation to a ManagedAgentsUserLocationParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with ManagedAgentsUserLocationParam.Overrides\(\) + + +### func \(\*ManagedAgentsUserLocation\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserLocation) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserLocationParam]() + +Approximate user location for search result localization. + +The property Type is required. + +```go +type ManagedAgentsUserLocationParam struct { + // City name. + City param.Opt[string] `json:"city,omitzero"` + // Two-letter ISO 3166-1 country code, uppercase. + Country param.Opt[string] `json:"country,omitzero"` + // Region or state name. + Region param.Opt[string] `json:"region,omitzero"` + // IANA timezone identifier, e.g. "America/Los_Angeles". + Timezone param.Opt[string] `json:"timezone,omitzero"` + // Location precision. Only "approximate" is supported. + // + // This field can be elided, and will marshal its zero value as "approximate". + Type constant.Approximate `json:"type" default:"approximate"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserLocationParam\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserLocationParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserLocationParam\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserLocationParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEvent]() + +A user message event in the session conversation. + +```go +type ManagedAgentsUserMessageEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // Array of content blocks comprising the user message. + Content []ManagedAgentsUserMessageEventContentUnion `json:"content" api:"required"` + // Any of "user.message". + Type ManagedAgentsUserMessageEventType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Content respjson.Field + Type respjson.Field + ProcessedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserMessageEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserMessageEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserMessageEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserMessageEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEventContentUnion]() + +ManagedAgentsUserMessageEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsRedactedBlock](<#ManagedAgentsRedactedBlock>). + +Use the [ManagedAgentsUserMessageEventContentUnion.AsAny](<#ManagedAgentsUserMessageEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsUserMessageEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "redacted". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion] + Source ManagedAgentsUserMessageEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Title string `json:"title"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) AsAny() anyManagedAgentsUserMessageEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsUserMessageEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsRedactedBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [AsRedacted]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) AsRedacted() (v ManagedAgentsRedactedBlock) +``` + + + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsUserMessageEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsUserMessageEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserMessageEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserMessageEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEventContentUnionSource]() + +ManagedAgentsUserMessageEventContentUnionSource is an implicit subunion of [ManagedAgentsUserMessageEventContentUnion](<#ManagedAgentsUserMessageEventContentUnion>). ManagedAgentsUserMessageEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsUserMessageEventContentUnion](<#ManagedAgentsUserMessageEventContentUnion>). + +```go +type ManagedAgentsUserMessageEventContentUnionSource struct { + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsUserMessageEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserMessageEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEventParams]() + +Parameters for sending a user message to the session. + +The properties Content, Type are required. + +```go +type ManagedAgentsUserMessageEventParams struct { + // Array of content blocks for the user message. + Content []ManagedAgentsUserMessageEventParamsContentUnion `json:"content,omitzero" api:"required"` + // Any of "user.message". + Type ManagedAgentsUserMessageEventParamsType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserMessageEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserMessageEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserMessageEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserMessageEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEventParamsContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsUserMessageEventParamsContentUnion struct { + OfText *ManagedAgentsTextBlockParam `json:",omitzero,inline"` + OfImage *ManagedAgentsImageBlockParam `json:",omitzero,inline"` + OfDocument *ManagedAgentsDocumentBlockParam `json:",omitzero,inline"` + OfRedacted *ManagedAgentsRedactedBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [GetContext]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) GetContext() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [GetSource]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) GetSource() (res managedAgentsUserMessageEventParamsContentUnionSource) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [GetText]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [GetTitle]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [GetType]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserMessageEventParamsContentUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsUserMessageEventParamsContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsUserMessageEventParamsContentUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsUserMessageEventParamsContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserMessageEventParamsType]() + + + +```go +type ManagedAgentsUserMessageEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserMessageEventParamsTypeUserMessage ManagedAgentsUserMessageEventParamsType = "user.message" +) +``` + + +## type [ManagedAgentsUserMessageEventType]() + + + +```go +type ManagedAgentsUserMessageEventType string +``` + + + +```go +const ( + ManagedAgentsUserMessageEventTypeUserMessage ManagedAgentsUserMessageEventType = "user.message" +) +``` + + +## type [ManagedAgentsUserToolConfirmationEvent]() + +A tool confirmation event that approves or denies a pending tool execution. + +```go +type ManagedAgentsUserToolConfirmationEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // UserToolConfirmationResult enum + // + // Any of "allow", "deny". + Result ManagedAgentsUserToolConfirmationEventResult `json:"result" api:"required"` + // The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result + // corresponds to, which can be found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + ToolUseID string `json:"tool_use_id" api:"required"` + // Any of "user.tool_confirmation". + Type ManagedAgentsUserToolConfirmationEventType `json:"type" api:"required"` + // Optional message providing context for a 'deny' decision. Only allowed when + // result is 'deny'. + DenyMessage string `json:"deny_message" api:"nullable"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // When set, the confirmation routes to this subagent's thread rather than the + // primary. Echo this from the `session_thread_id` on the `agent.tool_use` or + // `agent.mcp_tool_use` event that prompted the approval. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Result respjson.Field + ToolUseID respjson.Field + Type respjson.Field + DenyMessage respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserToolConfirmationEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserToolConfirmationEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserToolConfirmationEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolConfirmationEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolConfirmationEventParams]() + +Parameters for confirming or denying a tool execution request. + +The properties Result, ToolUseID, Type are required. + +```go +type ManagedAgentsUserToolConfirmationEventParams struct { + // UserToolConfirmationResult enum + // + // Any of "allow", "deny". + Result ManagedAgentsUserToolConfirmationEventParamsResult `json:"result,omitzero" api:"required"` + // The id of the `agent.tool_use` or `agent.mcp_tool_use` event this result + // corresponds to, which can be found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + ToolUseID string `json:"tool_use_id" api:"required"` + // Any of "user.tool_confirmation". + Type ManagedAgentsUserToolConfirmationEventParamsType `json:"type,omitzero" api:"required"` + // Optional message providing context for a 'deny' decision. Only allowed when + // result is 'deny'. + DenyMessage param.Opt[string] `json:"deny_message,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserToolConfirmationEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserToolConfirmationEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserToolConfirmationEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolConfirmationEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolConfirmationEventParamsResult]() + +UserToolConfirmationResult enum + +```go +type ManagedAgentsUserToolConfirmationEventParamsResult string +``` + + + +```go +const ( + ManagedAgentsUserToolConfirmationEventParamsResultAllow ManagedAgentsUserToolConfirmationEventParamsResult = "allow" + ManagedAgentsUserToolConfirmationEventParamsResultDeny ManagedAgentsUserToolConfirmationEventParamsResult = "deny" +) +``` + + +## type [ManagedAgentsUserToolConfirmationEventParamsType]() + + + +```go +type ManagedAgentsUserToolConfirmationEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserToolConfirmationEventParamsTypeUserToolConfirmation ManagedAgentsUserToolConfirmationEventParamsType = "user.tool_confirmation" +) +``` + + +## type [ManagedAgentsUserToolConfirmationEventResult]() + +UserToolConfirmationResult enum + +```go +type ManagedAgentsUserToolConfirmationEventResult string +``` + + + +```go +const ( + ManagedAgentsUserToolConfirmationEventResultAllow ManagedAgentsUserToolConfirmationEventResult = "allow" + ManagedAgentsUserToolConfirmationEventResultDeny ManagedAgentsUserToolConfirmationEventResult = "deny" +) +``` + + +## type [ManagedAgentsUserToolConfirmationEventType]() + + + +```go +type ManagedAgentsUserToolConfirmationEventType string +``` + + + +```go +const ( + ManagedAgentsUserToolConfirmationEventTypeUserToolConfirmation ManagedAgentsUserToolConfirmationEventType = "user.tool_confirmation" +) +``` + + +## type [ManagedAgentsUserToolResultEvent]() + +Event sent by the client providing the result of an agent\-toolset tool execution. Only valid on \`self\_hosted\` environments, where sandbox\-routed tools are executed by the client rather than the server. + +```go +type ManagedAgentsUserToolResultEvent struct { + // Unique identifier for this event. + ID string `json:"id" api:"required"` + // The id of the `agent.tool_use` event this result corresponds to, which can be + // found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + ToolUseID string `json:"tool_use_id" api:"required"` + // Any of "user.tool_result". + Type ManagedAgentsUserToolResultEventType `json:"type" api:"required"` + // The result content returned by the tool. + Content []ManagedAgentsUserToolResultEventContentUnion `json:"content"` + // Whether the tool execution resulted in an error. + IsError bool `json:"is_error" api:"nullable"` + // A timestamp in RFC 3339 format + ProcessedAt time.Time `json:"processed_at" api:"nullable" format:"date-time"` + // Routes this result to a subagent thread. Copy from the `agent.tool_use` event's + // `session_thread_id`. + SessionThreadID string `json:"session_thread_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ToolUseID respjson.Field + Type respjson.Field + Content respjson.Field + IsError respjson.Field + ProcessedAt respjson.Field + SessionThreadID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserToolResultEvent\) [RawJSON]() + +```go +func (r ManagedAgentsUserToolResultEvent) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserToolResultEvent\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolResultEvent) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolResultEventContentUnion]() + +ManagedAgentsUserToolResultEventContentUnion contains all possible properties and values from [ManagedAgentsTextBlock](<#ManagedAgentsTextBlock>), [ManagedAgentsImageBlock](<#ManagedAgentsImageBlock>), [ManagedAgentsDocumentBlock](<#ManagedAgentsDocumentBlock>), [ManagedAgentsSearchResultBlock](<#ManagedAgentsSearchResultBlock>). + +Use the [ManagedAgentsUserToolResultEventContentUnion.AsAny](<#ManagedAgentsUserToolResultEventContentUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsUserToolResultEventContentUnion struct { + // This field is from variant [ManagedAgentsTextBlock]. + Text string `json:"text"` + // Any of "text", "image", "document", "search_result". + Type string `json:"type"` + // This field is a union of [ManagedAgentsImageBlockSourceUnion], + // [ManagedAgentsDocumentBlockSourceUnion], [string] + Source ManagedAgentsUserToolResultEventContentUnionSource `json:"source"` + // This field is from variant [ManagedAgentsDocumentBlock]. + Context string `json:"context"` + Title string `json:"title"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Citations ManagedAgentsSearchResultCitations `json:"citations"` + // This field is from variant [ManagedAgentsSearchResultBlock]. + Content []ManagedAgentsSearchResultContent `json:"content"` + JSON struct { + Text respjson.Field + Type respjson.Field + Source respjson.Field + Context respjson.Field + Title respjson.Field + Citations respjson.Field + Content respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [AsAny]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) AsAny() anyManagedAgentsUserToolResultEventContent +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsUserToolResultEventContentUnion.AsAny().(type) { +case qoder.ManagedAgentsTextBlock: +case qoder.ManagedAgentsImageBlock: +case qoder.ManagedAgentsDocumentBlock: +case qoder.ManagedAgentsSearchResultBlock: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [AsDocument]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) AsDocument() (v ManagedAgentsDocumentBlock) +``` + + + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [AsImage]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) AsImage() (v ManagedAgentsImageBlock) +``` + + + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [AsSearchResult]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) AsSearchResult() (v ManagedAgentsSearchResultBlock) +``` + + + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [AsText]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) AsText() (v ManagedAgentsTextBlock) +``` + + + + +### func \(ManagedAgentsUserToolResultEventContentUnion\) [RawJSON]() + +```go +func (u ManagedAgentsUserToolResultEventContentUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsUserToolResultEventContentUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolResultEventContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolResultEventContentUnionSource]() + +ManagedAgentsUserToolResultEventContentUnionSource is an implicit subunion of [ManagedAgentsUserToolResultEventContentUnion](<#ManagedAgentsUserToolResultEventContentUnion>). ManagedAgentsUserToolResultEventContentUnionSource provides convenient access to the sub\-properties of the union. + +For type safety it is recommended to directly use a variant of the [ManagedAgentsUserToolResultEventContentUnion](<#ManagedAgentsUserToolResultEventContentUnion>). + +If the underlying value is not a json object, one of the following properties will be valid: OfString\] + +```go +type ManagedAgentsUserToolResultEventContentUnionSource struct { + // This field will be present if the value is a [string] instead of an object. + OfString string `json:",inline"` + Data string `json:"data"` + MediaType string `json:"media_type"` + Type string `json:"type"` + URL string `json:"url"` + FileID string `json:"file_id"` + JSON struct { + OfString respjson.Field + Data respjson.Field + MediaType respjson.Field + Type respjson.Field + URL respjson.Field + FileID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(\*ManagedAgentsUserToolResultEventContentUnionSource\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolResultEventContentUnionSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolResultEventParams]() + +Parameters for providing the result of an agent\-toolset tool execution. Only valid on \`self\_hosted\` environments, where sandbox\-routed tools are executed by the client rather than the server. + +The properties ToolUseID, Type are required. + +```go +type ManagedAgentsUserToolResultEventParams struct { + // The id of the `agent.tool_use` event this result corresponds to, which can be + // found in the last `session.status_idle` + // [event's](https://docs.qoder.com/cloud-agents/api/sessions/schemas) + // `stop_reason.event_ids` field. + ToolUseID string `json:"tool_use_id" api:"required"` + // Any of "user.tool_result". + Type ManagedAgentsUserToolResultEventParamsType `json:"type,omitzero" api:"required"` + // Whether the tool execution resulted in an error. + IsError param.Opt[bool] `json:"is_error,omitzero"` + // The result content returned by the tool. + Content []ManagedAgentsUserToolResultEventParamsContentUnion `json:"content,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserToolResultEventParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsUserToolResultEventParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsUserToolResultEventParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsUserToolResultEventParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolResultEventParamsContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsUserToolResultEventParamsContentUnion struct { + OfText *ManagedAgentsTextBlockParam `json:",omitzero,inline"` + OfImage *ManagedAgentsImageBlockParam `json:",omitzero,inline"` + OfDocument *ManagedAgentsDocumentBlockParam `json:",omitzero,inline"` + OfSearchResult *ManagedAgentsSearchResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetCitations]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetCitations() *ManagedAgentsSearchResultCitationsParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetContent]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetContent() []ManagedAgentsSearchResultContentParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetContext]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetContext() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetSource]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetSource() (res managedAgentsUserToolResultEventParamsContentUnionSource) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetText]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetTitle]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [GetType]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsUserToolResultEventParamsContentUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsUserToolResultEventParamsContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsUserToolResultEventParamsContentUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsUserToolResultEventParamsContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsUserToolResultEventParamsType]() + + + +```go +type ManagedAgentsUserToolResultEventParamsType string +``` + + + +```go +const ( + ManagedAgentsUserToolResultEventParamsTypeUserToolResult ManagedAgentsUserToolResultEventParamsType = "user.tool_result" +) +``` + + +## type [ManagedAgentsUserToolResultEventType]() + + + +```go +type ManagedAgentsUserToolResultEventType string +``` + + + +```go +const ( + ManagedAgentsUserToolResultEventTypeUserToolResult ManagedAgentsUserToolResultEventType = "user.tool_result" +) +``` + + +## type [ManagedAgentsVault]() + +A vault that stores credentials for use by agents during sessions. + +```go +type ManagedAgentsVault struct { + // Unique identifier for the vault. + ID string `json:"id" api:"required"` + // A timestamp in RFC 3339 format + ArchivedAt time.Time `json:"archived_at" api:"required" format:"date-time"` + // A timestamp in RFC 3339 format + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Human-readable name for the vault. + DisplayName string `json:"display_name" api:"required"` + // Arbitrary key-value metadata attached to the vault. + Metadata map[string]string `json:"metadata" api:"required"` + // Any of "vault". + Type ManagedAgentsVaultType `json:"type" api:"required"` + // A timestamp in RFC 3339 format + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + ArchivedAt respjson.Field + CreatedAt respjson.Field + DisplayName respjson.Field + Metadata respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsVault\) [RawJSON]() + +```go +func (r ManagedAgentsVault) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsVault\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsVault) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsVaultArchivedDeploymentPausedReasonError]() + +A vault referenced by the deployment is archived. + +```go +type ManagedAgentsVaultArchivedDeploymentPausedReasonError struct { + // Any of "vault_archived_error". + Type ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsVaultArchivedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsVaultArchivedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsVaultArchivedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsVaultArchivedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsVaultArchivedDeploymentPausedReasonErrorTypeVaultArchivedError ManagedAgentsVaultArchivedDeploymentPausedReasonErrorType = "vault_archived_error" +) +``` + + +## type [ManagedAgentsVaultArchivedRunError]() + +A vault referenced by the deployment is archived. + +```go +type ManagedAgentsVaultArchivedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "vault_archived_error". + Type ManagedAgentsVaultArchivedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsVaultArchivedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsVaultArchivedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsVaultArchivedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsVaultArchivedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsVaultArchivedRunErrorType]() + + + +```go +type ManagedAgentsVaultArchivedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsVaultArchivedRunErrorTypeVaultArchivedError ManagedAgentsVaultArchivedRunErrorType = "vault_archived_error" +) +``` + + +## type [ManagedAgentsVaultNotFoundDeploymentPausedReasonError]() + +A vault referenced by the deployment no longer exists. + +```go +type ManagedAgentsVaultNotFoundDeploymentPausedReasonError struct { + // Any of "vault_not_found_error". + Type ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsVaultNotFoundDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsVaultNotFoundDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsVaultNotFoundDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsVaultNotFoundDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorTypeVaultNotFoundError ManagedAgentsVaultNotFoundDeploymentPausedReasonErrorType = "vault_not_found_error" +) +``` + + +## type [ManagedAgentsVaultNotFoundRunError]() + +A vault referenced by the deployment no longer exists. + +```go +type ManagedAgentsVaultNotFoundRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "vault_not_found_error". + Type ManagedAgentsVaultNotFoundRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsVaultNotFoundRunError\) [RawJSON]() + +```go +func (r ManagedAgentsVaultNotFoundRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsVaultNotFoundRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsVaultNotFoundRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsVaultNotFoundRunErrorType]() + + + +```go +type ManagedAgentsVaultNotFoundRunErrorType string +``` + + + +```go +const ( + ManagedAgentsVaultNotFoundRunErrorTypeVaultNotFoundError ManagedAgentsVaultNotFoundRunErrorType = "vault_not_found_error" +) +``` + + +## type [ManagedAgentsVaultType]() + + + +```go +type ManagedAgentsVaultType string +``` + + + +```go +const ( + ManagedAgentsVaultTypeVault ManagedAgentsVaultType = "vault" +) +``` + + +## type [ManagedAgentsWebFetchToolConfig]() + +Configuration for the web\_fetch tool. + +```go +type ManagedAgentsWebFetchToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.WebFetch `json:"name" default:"web_fetch"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWebFetchToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.WebFetch `json:"type" default:"web_fetch"` + AllowedDomains []string `json:"allowed_domains"` + BlockedDomains []string `json:"blocked_domains"` + MaxContentTokens int64 `json:"max_content_tokens" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + AllowedDomains respjson.Field + BlockedDomains respjson.Field + MaxContentTokens respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWebFetchToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsWebFetchToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWebFetchToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebFetchToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebFetchToolConfigParams]() + +Configuration override for the web\_fetch tool. + +The property Name is required. + +```go +type ManagedAgentsWebFetchToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Maximum number of tokens of fetched text content to include in context per call. + // Does not apply to binary content such as PDFs. + MaxContentTokens param.Opt[int64] `json:"max_content_tokens,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Only fetch URLs whose host is one of these domains or a subdomain of one. Each + // entry is a plain hostname like "docs.example.com" (no scheme, port, or path). At + // most 64 entries; an empty list is rejected (omit the field instead). Cannot be + // combined with blocked_domains. + AllowedDomains []string `json:"allowed_domains,omitzero"` + // Never fetch URLs whose host is one of these domains or a subdomain of one. Each + // entry is a plain hostname like "ads.example.com" (no scheme, port, or path). At + // most 64 entries; an empty list is rejected (omit the field instead). Cannot be + // combined with allowed_domains. + BlockedDomains []string `json:"blocked_domains,omitzero"` + // Any of "web_fetch". + Type ManagedAgentsWebFetchToolConfigParamsType `json:"type,omitzero"` + // Must be "web_fetch". + // + // This field can be elided, and will marshal its zero value as "web_fetch". + Name constant.WebFetch `json:"name" default:"web_fetch"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWebFetchToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsWebFetchToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsWebFetchToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebFetchToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsWebFetchToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebFetchToolConfigParamsType]() + + + +```go +type ManagedAgentsWebFetchToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsWebFetchToolConfigParamsTypeWebFetch ManagedAgentsWebFetchToolConfigParamsType = "web_fetch" +) +``` + + +## type [ManagedAgentsWebFetchToolConfigPermissionPolicyUnion]() + +ManagedAgentsWebFetchToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsWebFetchToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsWebFetchToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsWebFetchToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsWebFetchToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWebFetchToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebFetchToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebSearchToolConfig]() + +Configuration for the web\_search tool. + +```go +type ManagedAgentsWebSearchToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.WebSearch `json:"name" default:"web_search"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWebSearchToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.WebSearch `json:"type" default:"web_search"` + AllowedDomains []string `json:"allowed_domains"` + BlockedDomains []string `json:"blocked_domains"` + // Approximate user location for search result localization. + UserLocation ManagedAgentsUserLocation `json:"user_location" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + AllowedDomains respjson.Field + BlockedDomains respjson.Field + UserLocation respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWebSearchToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsWebSearchToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWebSearchToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebSearchToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebSearchToolConfigParams]() + +Configuration override for the web\_search tool. + +The property Name is required. + +```go +type ManagedAgentsWebSearchToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Only return search results whose host is one of these domains or a subdomain of + // one. Each entry is a plain hostname like "docs.example.com" (no scheme or port; + // an optional path suffix is accepted). At most 64 entries; an empty list is + // rejected (omit the field instead). Cannot be combined with blocked_domains. + AllowedDomains []string `json:"allowed_domains,omitzero"` + // Never return search results whose host is one of these domains or a subdomain of + // one. Each entry is a plain hostname like "ads.example.com" (no scheme or port; + // an optional path suffix is accepted). At most 64 entries; an empty list is + // rejected (omit the field instead). Cannot be combined with allowed_domains. + BlockedDomains []string `json:"blocked_domains,omitzero"` + // Any of "web_search". + Type ManagedAgentsWebSearchToolConfigParamsType `json:"type,omitzero"` + // Approximate user location for search result localization. + UserLocation ManagedAgentsUserLocationParam `json:"user_location,omitzero"` + // Must be "web_search". + // + // This field can be elided, and will marshal its zero value as "web_search". + Name constant.WebSearch `json:"name" default:"web_search"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWebSearchToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsWebSearchToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsWebSearchToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebSearchToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsWebSearchToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWebSearchToolConfigParamsType]() + + + +```go +type ManagedAgentsWebSearchToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsWebSearchToolConfigParamsTypeWebSearch ManagedAgentsWebSearchToolConfigParamsType = "web_search" +) +``` + + +## type [ManagedAgentsWebSearchToolConfigPermissionPolicyUnion]() + +ManagedAgentsWebSearchToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsWebSearchToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsWebSearchToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsWebSearchToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsWebSearchToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWebSearchToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWebSearchToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError]() + +The deployment's workspace was archived. + +```go +type ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError struct { + // Any of "workspace_archived_error". + Type ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError\) [RawJSON]() + +```go +func (r ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWorkspaceArchivedDeploymentPausedReasonError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType]() + + + +```go +type ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType string +``` + + + +```go +const ( + ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorTypeWorkspaceArchivedError ManagedAgentsWorkspaceArchivedDeploymentPausedReasonErrorType = "workspace_archived_error" +) +``` + + +## type [ManagedAgentsWorkspaceArchivedRunError]() + +The deployment's workspace was archived. + +```go +type ManagedAgentsWorkspaceArchivedRunError struct { + // Human-readable error description. + Message string `json:"message" api:"required"` + // Any of "workspace_archived_error". + Type ManagedAgentsWorkspaceArchivedRunErrorType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Message respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWorkspaceArchivedRunError\) [RawJSON]() + +```go +func (r ManagedAgentsWorkspaceArchivedRunError) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWorkspaceArchivedRunError\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWorkspaceArchivedRunError) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWorkspaceArchivedRunErrorType]() + + + +```go +type ManagedAgentsWorkspaceArchivedRunErrorType string +``` + + + +```go +const ( + ManagedAgentsWorkspaceArchivedRunErrorTypeWorkspaceArchivedError ManagedAgentsWorkspaceArchivedRunErrorType = "workspace_archived_error" +) +``` + + +## type [ManagedAgentsWriteToolConfig]() + +Configuration for the write tool. + +```go +type ManagedAgentsWriteToolConfig struct { + Enabled bool `json:"enabled" api:"required"` + Name constant.Write `json:"name" default:"write"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWriteToolConfigPermissionPolicyUnion `json:"permission_policy" api:"required"` + Type constant.Write `json:"type" default:"write"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Enabled respjson.Field + Name respjson.Field + PermissionPolicy respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWriteToolConfig\) [RawJSON]() + +```go +func (r ManagedAgentsWriteToolConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWriteToolConfig\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWriteToolConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWriteToolConfigParams]() + +Configuration override for the write tool. + +The property Name is required. + +```go +type ManagedAgentsWriteToolConfigParams struct { + // Whether this tool is enabled and available to the model. Overrides the + // default_config setting. + Enabled param.Opt[bool] `json:"enabled,omitzero"` + // Permission policy for tool execution. + PermissionPolicy ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion `json:"permission_policy,omitzero"` + // Any of "write". + Type ManagedAgentsWriteToolConfigParamsType `json:"type,omitzero"` + // Must be "write". + // + // This field can be elided, and will marshal its zero value as "write". + Name constant.Write `json:"name" default:"write"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWriteToolConfigParams\) [MarshalJSON]() + +```go +func (r ManagedAgentsWriteToolConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ManagedAgentsWriteToolConfigParams\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWriteToolConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion struct { + OfAlwaysAllow *ManagedAgentsAlwaysAllowPolicyParam `json:",omitzero,inline"` + OfAlwaysAsk *ManagedAgentsAlwaysAskPolicyParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) [GetType]() + +```go +func (u ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) [MarshalJSON]() + +```go +func (u ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (u *ManagedAgentsWriteToolConfigParamsPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ManagedAgentsWriteToolConfigParamsType]() + + + +```go +type ManagedAgentsWriteToolConfigParamsType string +``` + + + +```go +const ( + ManagedAgentsWriteToolConfigParamsTypeWrite ManagedAgentsWriteToolConfigParamsType = "write" +) +``` + + +## type [ManagedAgentsWriteToolConfigPermissionPolicyUnion]() + +ManagedAgentsWriteToolConfigPermissionPolicyUnion contains all possible properties and values from [ManagedAgentsAlwaysAllowPolicy](<#ManagedAgentsAlwaysAllowPolicy>), [ManagedAgentsAlwaysAskPolicy](<#ManagedAgentsAlwaysAskPolicy>). + +Use the [ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAny](<#ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type ManagedAgentsWriteToolConfigPermissionPolicyUnion struct { + // Any of "always_allow", "always_ask". + Type string `json:"type"` + JSON struct { + Type respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ManagedAgentsWriteToolConfigPermissionPolicyUnion\) [AsAlwaysAllow]() + +```go +func (u ManagedAgentsWriteToolConfigPermissionPolicyUnion) AsAlwaysAllow() (v ManagedAgentsAlwaysAllowPolicy) +``` + + + + +### func \(ManagedAgentsWriteToolConfigPermissionPolicyUnion\) [AsAlwaysAsk]() + +```go +func (u ManagedAgentsWriteToolConfigPermissionPolicyUnion) AsAlwaysAsk() (v ManagedAgentsAlwaysAskPolicy) +``` + + + + +### func \(ManagedAgentsWriteToolConfigPermissionPolicyUnion\) [AsAny]() + +```go +func (u ManagedAgentsWriteToolConfigPermissionPolicyUnion) AsAny() anyManagedAgentsWriteToolConfigPermissionPolicy +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := ManagedAgentsWriteToolConfigPermissionPolicyUnion.AsAny().(type) { +case qoder.ManagedAgentsAlwaysAllowPolicy: +case qoder.ManagedAgentsAlwaysAskPolicy: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(ManagedAgentsWriteToolConfigPermissionPolicyUnion\) [RawJSON]() + +```go +func (u ManagedAgentsWriteToolConfigPermissionPolicyUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ManagedAgentsWriteToolConfigPermissionPolicyUnion\) [UnmarshalJSON]() + +```go +func (r *ManagedAgentsWriteToolConfigPermissionPolicyUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreArchiveParams]() + + + +```go +type MemoryStoreArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [MemoryStoreDeleteParams]() + + + +```go +type MemoryStoreDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [MemoryStoreGetParams]() + + + +```go +type MemoryStoreGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [MemoryStoreListParams]() + + + +```go +type MemoryStoreListParams struct { + Name param.Opt[string] `query:"name,omitzero" json:"-"` + + // Return only stores whose `created_at` is at or after this time (inclusive). Sent + // on the wire as `created_at[gte]`. + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return only stores whose `created_at` is at or before this time (inclusive). + // Sent on the wire as `created_at[lte]`. + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // When `true`, archived stores are included in the results. Defaults to `false` + // (archived stores are excluded). + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum number of stores to return per page. Must be between 1 and 100. Defaults + // to 20 when omitted. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a + // previous response to fetch the next page; omit for the first page. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreListParams\) [URLQuery]() + +```go +func (r MemoryStoreListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreListParams](<#MemoryStoreListParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryDeleteParams]() + + + +```go +type MemoryStoreMemoryDeleteParams struct { + MemoryStoreID string `path:"memory_store_id" api:"required" json:"-"` + // Query parameter for expected_content_sha256 + ExpectedContentSha256 param.Opt[string] `query:"expected_content_sha256,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryDeleteParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryDeleteParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryDeleteParams](<#MemoryStoreMemoryDeleteParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryGetParams]() + + + +```go +type MemoryStoreMemoryGetParams struct { + MemoryStoreID string `path:"memory_store_id" api:"required" json:"-"` + // Query parameter for view + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryGetParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryGetParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryGetParams](<#MemoryStoreMemoryGetParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryListParams]() + + + +```go +type MemoryStoreMemoryListParams struct { + // `0` (or omitted) returns all descendants below `path_prefix` (recursive). `1` + // returns immediate children only; deeper entries roll up as `memory_prefix` + // items. `depth=1` behaves like `ls`; omitting `depth` behaves like `find`. + Depth param.Opt[int64] `query:"depth,omitzero" json:"-"` + // Maximum number of items to return per page. Must be between 1 and 100. Defaults + // to 20 when omitted. Capped at 20 when `view=full`. Both `memory` and + // `memory_prefix` items count toward the limit. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor (a `page_...` value). Pass the `next_page` value from a + // previous response to fetch the next page; omit for the first page. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional path prefix filter. Must end with `/` (segment-aligned), e.g., + // `/notes/`. This value appears in request URLs. Do not include secrets or + // personally identifiable information. + PathPrefix param.Opt[string] `query:"path_prefix,omitzero" json:"-"` + // Which projection of each `memory` to return. Defaults to `basic` (content + // omitted). `full` populates `content` on each item and caps `limit` at 20; use + // this as the bulk-read path for export and sync. + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryListParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryListParams](<#MemoryStoreMemoryListParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryNewParams]() + + + +```go +type MemoryStoreMemoryNewParams struct { + Metadata map[string]string `json:"metadata,omitzero"` + + // UTF-8 text content for the new memory. Maximum 100 kB (102,400 bytes). Required; + // pass `""` explicitly to create an empty memory. + Content param.Opt[string] `json:"content,omitzero" api:"required"` + // Hierarchical path for the new memory, e.g. `/projects/foo/notes.md`. Must start + // with `/`, contain at least one non-empty segment, and be at most 1,024 bytes. + // Must not contain empty segments, `.` or `..` segments, control or format + // characters, or the Unicode line and paragraph separators (U+2028, U+2029), and + // must be NFC-normalized. Paths are case-sensitive. + Path string `json:"path" api:"required"` + // Query parameter for view + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryNewParams\) [MarshalJSON]() + +```go +func (r MemoryStoreMemoryNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(MemoryStoreMemoryNewParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryNewParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryNewParams](<#MemoryStoreMemoryNewParams>)'s query parameters as \`url.Values\`. + + +### func \(\*MemoryStoreMemoryNewParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreMemoryNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreMemoryService]() + +MemoryStoreMemoryService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewMemoryStoreMemoryService](<#NewMemoryStoreMemoryService>) method instead. + +```go +type MemoryStoreMemoryService struct { + Options []option.RequestOption +} +``` + + +### func [NewMemoryStoreMemoryService]() + +```go +func NewMemoryStoreMemoryService(opts ...option.RequestOption) (r MemoryStoreMemoryService) +``` + +NewMemoryStoreMemoryService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*MemoryStoreMemoryService\) [Delete]() + +```go +func (r *MemoryStoreMemoryService) Delete(ctx context.Context, memoryID string, params MemoryStoreMemoryDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeletedMemory, err error) +``` + +Delete a memory + + +### func \(\*MemoryStoreMemoryService\) [Get]() + +```go +func (r *MemoryStoreMemoryService) Get(ctx context.Context, memoryID string, params MemoryStoreMemoryGetParams, opts ...option.RequestOption) (res *ManagedAgentsMemory, err error) +``` + +Retrieve a memory + + +### func \(\*MemoryStoreMemoryService\) [List]() + +```go +func (r *MemoryStoreMemoryService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsMemoryListItemUnion], err error) +``` + +List memories + + +### func \(\*MemoryStoreMemoryService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreMemoryService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsMemoryListItemUnion] +``` + +List memories + + +### func \(\*MemoryStoreMemoryService\) [New]() + +```go +func (r *MemoryStoreMemoryService) New(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryNewParams, opts ...option.RequestOption) (res *ManagedAgentsMemory, err error) +``` + +Create a memory + + +### func \(\*MemoryStoreMemoryService\) [Update]() + +```go +func (r *MemoryStoreMemoryService) Update(ctx context.Context, memoryID string, params MemoryStoreMemoryUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsMemory, err error) +``` + +Update a memory + + +## type [MemoryStoreMemoryUpdateParams]() + + + +```go +type MemoryStoreMemoryUpdateParams struct { + ContentSha256 param.Opt[string] `json:"content_sha256,omitzero"` + + Metadata map[string]any `json:"metadata,omitzero"` + + MemoryStoreID string `path:"memory_store_id" api:"required" json:"-"` + // New UTF-8 text content for the memory. Maximum 100 kB (102,400 bytes). Omit to + // leave the content unchanged (e.g., for a rename-only update). + Content param.Opt[string] `json:"content,omitzero"` + // New path for the memory (a rename). Must start with `/`, contain at least one + // non-empty segment, and be at most 1,024 bytes. Must not contain empty segments, + // `.` or `..` segments, control or format characters, or the Unicode line and + // paragraph separators (U+2028, U+2029), and must be NFC-normalized. Paths are + // case-sensitive. The memory's `id` is preserved across renames. Omit to leave the + // path unchanged. + Path param.Opt[string] `json:"path,omitzero"` + // Query parameter for view + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optimistic-concurrency precondition: the update applies only if the memory's + // stored `content_sha256` equals the supplied value. On mismatch, the request + // returns `memory_precondition_failed_error` (HTTP 409); re-read the memory and + // retry against the fresh state. If the precondition fails but the stored state + // already exactly matches the requested `content` and `path`, the server returns + // 200 instead of 409. + Precondition ManagedAgentsPreconditionParam `json:"precondition,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryUpdateParams\) [MarshalJSON]() + +```go +func (r MemoryStoreMemoryUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(MemoryStoreMemoryUpdateParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryUpdateParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryUpdateParams](<#MemoryStoreMemoryUpdateParams>)'s query parameters as \`url.Values\`. + + +### func \(\*MemoryStoreMemoryUpdateParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreMemoryUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreMemoryVersionGetParams]() + + + +```go +type MemoryStoreMemoryVersionGetParams struct { + MemoryStoreID string `path:"memory_store_id" api:"required" json:"-"` + // Query parameter for view + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryVersionGetParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryVersionGetParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryVersionGetParams](<#MemoryStoreMemoryVersionGetParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryVersionListParams]() + + + +```go +type MemoryStoreMemoryVersionListParams struct { + // Query parameter for api_key_id + APIKeyID param.Opt[string] `query:"api_key_id,omitzero" json:"-"` + // Return versions created at or after this time (inclusive). + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return versions created at or before this time (inclusive). + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // Query parameter for limit + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Query parameter for memory_id + MemoryID param.Opt[string] `query:"memory_id,omitzero" json:"-"` + // Query parameter for page + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Query parameter for service_account_id + ServiceAccountID param.Opt[string] `query:"service_account_id,omitzero" json:"-"` + // Query parameter for session_id + SessionID param.Opt[string] `query:"session_id,omitzero" json:"-"` + // Query parameter for operation + // + // Any of "created", "modified", "deleted". + Operation ManagedAgentsMemoryVersionOperation `query:"operation,omitzero" json:"-"` + // Query parameter for view + // + // Any of "basic", "full". + View ManagedAgentsMemoryView `query:"view,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreMemoryVersionListParams\) [URLQuery]() + +```go +func (r MemoryStoreMemoryVersionListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [MemoryStoreMemoryVersionListParams](<#MemoryStoreMemoryVersionListParams>)'s query parameters as \`url.Values\`. + + +## type [MemoryStoreMemoryVersionRedactParams]() + + + +```go +type MemoryStoreMemoryVersionRedactParams struct { + MemoryStoreID string `path:"memory_store_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [MemoryStoreMemoryVersionService]() + +MemoryStoreMemoryVersionService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewMemoryStoreMemoryVersionService](<#NewMemoryStoreMemoryVersionService>) method instead. + +```go +type MemoryStoreMemoryVersionService struct { + Options []option.RequestOption +} +``` + + +### func [NewMemoryStoreMemoryVersionService]() + +```go +func NewMemoryStoreMemoryVersionService(opts ...option.RequestOption) (r MemoryStoreMemoryVersionService) +``` + +NewMemoryStoreMemoryVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*MemoryStoreMemoryVersionService\) [Get]() + +```go +func (r *MemoryStoreMemoryVersionService) Get(ctx context.Context, memoryVersionID string, params MemoryStoreMemoryVersionGetParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryVersion, err error) +``` + +Retrieve a memory version + + +### func \(\*MemoryStoreMemoryVersionService\) [List]() + +```go +func (r *MemoryStoreMemoryVersionService) List(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsMemoryVersion], err error) +``` + +List memory versions + + +### func \(\*MemoryStoreMemoryVersionService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreMemoryVersionService) ListAutoPaging(ctx context.Context, memoryStoreID string, params MemoryStoreMemoryVersionListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsMemoryVersion] +``` + +List memory versions + + +### func \(\*MemoryStoreMemoryVersionService\) [Redact]() + +```go +func (r *MemoryStoreMemoryVersionService) Redact(ctx context.Context, memoryVersionID string, params MemoryStoreMemoryVersionRedactParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryVersion, err error) +``` + +Redact a memory version + + +## type [MemoryStoreNewParams]() + + + +```go +type MemoryStoreNewParams struct { + // Human-readable name for the store. Required; 1–255 characters; no control + // characters. The mount-path slug under `/mnt/memory/` is derived from this name + // (lowercased, non-alphanumeric runs collapsed to a hyphen). Names need not be + // unique within a workspace. + Name string `json:"name" api:"required"` + // Free-text description of what the store contains, up to 1024 characters. + // Included in the agent's system prompt when the store is attached, so word it to + // be useful to the agent. + Description param.Opt[string] `json:"description,omitzero"` + // Arbitrary key-value tags for your own bookkeeping (such as the end user a store + // belongs to). Up to 16 pairs; keys 1–64 characters; values up to 512 characters. + // Not visible to the agent. + Metadata map[string]string `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreNewParams\) [MarshalJSON]() + +```go +func (r MemoryStoreNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*MemoryStoreNewParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [MemoryStoreService]() + +MemoryStoreService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewMemoryStoreService](<#NewMemoryStoreService>) method instead. + +```go +type MemoryStoreService struct { + Options []option.RequestOption + Memories MemoryStoreMemoryService + MemoryVersions MemoryStoreMemoryVersionService +} +``` + + +### func [NewMemoryStoreService]() + +```go +func NewMemoryStoreService(opts ...option.RequestOption) (r MemoryStoreService) +``` + +NewMemoryStoreService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*MemoryStoreService\) [Archive]() + +```go +func (r *MemoryStoreService) Archive(ctx context.Context, memoryStoreID string, body MemoryStoreArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryStore, err error) +``` + +Archive a memory store + + +### func \(\*MemoryStoreService\) [Delete]() + +```go +func (r *MemoryStoreService) Delete(ctx context.Context, memoryStoreID string, body MemoryStoreDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeletedMemoryStore, err error) +``` + +Delete a memory store + + +### func \(\*MemoryStoreService\) [Get]() + +```go +func (r *MemoryStoreService) Get(ctx context.Context, memoryStoreID string, query MemoryStoreGetParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryStore, err error) +``` + +Retrieve a memory store + + +### func \(\*MemoryStoreService\) [List]() + +```go +func (r *MemoryStoreService) List(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsMemoryStore], err error) +``` + +List memory stores + + +### func \(\*MemoryStoreService\) [ListAutoPaging]() + +```go +func (r *MemoryStoreService) ListAutoPaging(ctx context.Context, params MemoryStoreListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsMemoryStore] +``` + +List memory stores + + +### func \(\*MemoryStoreService\) [New]() + +```go +func (r *MemoryStoreService) New(ctx context.Context, params MemoryStoreNewParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryStore, err error) +``` + +Create a memory store + + +### func \(\*MemoryStoreService\) [Update]() + +```go +func (r *MemoryStoreService) Update(ctx context.Context, memoryStoreID string, params MemoryStoreUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsMemoryStore, err error) +``` + +Update a memory store + + +## type [MemoryStoreUpdateParams]() + + + +```go +type MemoryStoreUpdateParams struct { + // New description for the store, up to 1024 characters. Pass an empty string to + // clear it. + Description param.Opt[string] `json:"description,omitzero"` + // New human-readable name for the store. 1–255 characters; no control characters. + // Renaming changes the slug used for the store's `mount_path` in sessions created + // after the update. + Name param.Opt[string] `json:"name,omitzero"` + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omit the field to preserve. The stored bag is limited to 16 keys (up to 64 chars + // each) with values up to 512 chars. + Metadata map[string]any `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(MemoryStoreUpdateParams\) [MarshalJSON]() + +```go +func (r MemoryStoreUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*MemoryStoreUpdateParams\) [UnmarshalJSON]() + +```go +func (r *MemoryStoreUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [Model]() + +Model identifies a model available to the API. + +```go +type Model = string +``` + + +## type [ModelCapabilities]() + +Model capability information. + +```go +type ModelCapabilities struct { + // Whether the model supports the Batch API. + Batch CapabilitySupport `json:"batch" api:"required"` + // Whether the model supports citation generation. + Citations CapabilitySupport `json:"citations" api:"required"` + // Whether the model supports code execution tools. + CodeExecution CapabilitySupport `json:"code_execution" api:"required"` + // Context management support and available strategies. + ContextManagement ContextManagementCapability `json:"context_management" api:"required"` + // Effort (reasoning_effort) support and available levels. + Effort EffortCapability `json:"effort" api:"required"` + // Whether the model accepts image content blocks. + ImageInput CapabilitySupport `json:"image_input" api:"required"` + // Whether the model accepts PDF content blocks. + PDFInput CapabilitySupport `json:"pdf_input" api:"required"` + // Whether the model supports structured output / JSON mode / strict tool schemas. + StructuredOutputs CapabilitySupport `json:"structured_outputs" api:"required"` + // Thinking capability and supported type configurations. + Thinking ThinkingCapability `json:"thinking" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Batch respjson.Field + Citations respjson.Field + CodeExecution respjson.Field + ContextManagement respjson.Field + Effort respjson.Field + ImageInput respjson.Field + PDFInput respjson.Field + StructuredOutputs respjson.Field + Thinking respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ModelCapabilities\) [RawJSON]() + +```go +func (r ModelCapabilities) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ModelCapabilities\) [UnmarshalJSON]() + +```go +func (r *ModelCapabilities) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelInfo]() + + + +```go +type ModelInfo struct { + Source string `json:"source"` + IsEnabled bool `json:"is_enabled"` + IsNew bool `json:"is_new"` + PriceFactor float64 `json:"price_factor"` + Efforts []string `json:"efforts"` + DefaultEffort string `json:"default_effort"` + DefaultContextWindow int64 `json:"default_context_window"` + AvailableContextWindows []int64 `json:"available_context_windows"` + + // Unique model identifier. + ID string `json:"id" api:"required"` + // Model IDs this model accepts as `fallbacks[i].model` on the Messages API. An + // empty list means the `fallbacks` parameter is not supported for this model as + // primary. + AllowedFallbackModels []string `json:"allowed_fallback_models" api:"required"` + // Model capability information. + Capabilities ModelCapabilities `json:"capabilities" api:"required"` + // RFC 3339 datetime string representing the time at which the model was released. + // May be set to an epoch value if the release date is unknown. + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // A human-readable name for the model. + DisplayName string `json:"display_name" api:"required"` + // Maximum input context window size in tokens for this model. + MaxInputTokens int64 `json:"max_input_tokens" api:"required"` + // Maximum value for the `max_tokens` parameter when using this model. + MaxTokens int64 `json:"max_tokens" api:"required"` + // Object type. + // + // For Models, this is always `"model"`. + Type constant.Model `json:"type" default:"model"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Source respjson.Field + IsEnabled respjson.Field + IsNew respjson.Field + PriceFactor respjson.Field + Efforts respjson.Field + DefaultEffort respjson.Field + DefaultContextWindow respjson.Field + AvailableContextWindows respjson.Field + + ID respjson.Field + AllowedFallbackModels respjson.Field + Capabilities respjson.Field + CreatedAt respjson.Field + DisplayName respjson.Field + MaxInputTokens respjson.Field + MaxTokens respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ModelInfo\) [RawJSON]() + +```go +func (r ModelInfo) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ModelInfo\) [UnmarshalJSON]() + +```go +func (r *ModelInfo) UnmarshalJSON(data []byte) error +``` + + + + +## type [ModelListParams]() + + + +```go +type ModelListParams struct { + // ID of the object to use as a cursor for pagination. When provided, returns the + // page of results immediately after this object. + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + // ID of the object to use as a cursor for pagination. When provided, returns the + // page of results immediately before this object. + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + // Number of items to return per page. + // + // Defaults to `20`. Ranges from `1` to `1000`. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(ModelListParams\) [URLQuery]() + +```go +func (r ModelListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [ModelListParams](<#ModelListParams>)'s query parameters as \`url.Values\`. + + +## type [ModelService]() + +ModelService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewModelService](<#NewModelService>) method instead. + +```go +type ModelService struct { + Options []option.RequestOption +} +``` + + +### func [NewModelService]() + +```go +func NewModelService(opts ...option.RequestOption) (r ModelService) +``` + +NewModelService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*ModelService\) [List]() + +```go +func (r *ModelService) List(ctx context.Context, params ModelListParams, opts ...option.RequestOption) (res *pagination.Page[ModelInfo], err error) +``` + +List available models. + +The Models API response can be used to determine which models are available for use in the API. More recently released models are listed first. + + +### func \(\*ModelService\) [ListAutoPaging]() + +```go +func (r *ModelService) ListAutoPaging(ctx context.Context, params ModelListParams, opts ...option.RequestOption) *pagination.PageAutoPager[ModelInfo] +``` + +List available models. + +The Models API response can be used to determine which models are available for use in the API. More recently released models are listed first. + + +## type [MonetaryAmount]() + +A monetary amount in a specific currency. + +```go +type MonetaryAmount struct { + // Amount in minor units of the currency, as an integer decimal string with no + // leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a + // number so no float rounding is ever applied. + Amount string `json:"amount" api:"required"` + // Uppercase ISO-4217 currency code. `USD` is the only currency currently + // supported; the accepted set is closed and grows only when a new currency is + // priced. + // + // Any of "USD". + Currency Currency `json:"currency" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Amount respjson.Field + Currency respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(MonetaryAmount\) [RawJSON]() + +```go +func (r MonetaryAmount) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(MonetaryAmount\) [ToParam]() + +```go +func (r MonetaryAmount) ToParam() MonetaryAmountParam +``` + +ToParam converts this MonetaryAmount to a MonetaryAmountParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with MonetaryAmountParam.Overrides\(\) + + +### func \(\*MonetaryAmount\) [UnmarshalJSON]() + +```go +func (r *MonetaryAmount) UnmarshalJSON(data []byte) error +``` + + + + +## type [MonetaryAmountParam]() + +A monetary amount in a specific currency. + +The properties Amount, Currency are required. + +```go +type MonetaryAmountParam struct { + // Amount in minor units of the currency, as an integer decimal string with no + // leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a + // number so no float rounding is ever applied. + Amount string `json:"amount" api:"required"` + // Uppercase ISO-4217 currency code. `USD` is the only currency currently + // supported; the accepted set is closed and grows only when a new currency is + // priced. + // + // Any of "USD". + Currency Currency `json:"currency,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(MonetaryAmountParam\) [MarshalJSON]() + +```go +func (r MonetaryAmountParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*MonetaryAmountParam\) [UnmarshalJSON]() + +```go +func (r *MonetaryAmountParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorCreateNew]() + +The default destination: the job creates a new output memory store as a clone of the memory\_store input and writes the consolidated memories into it. The input store is never mutated. + +```go +type OutputBehaviorCreateNew struct { + // Any of "create_new". + Type OutputBehaviorCreateNewType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(OutputBehaviorCreateNew\) [RawJSON]() + +```go +func (r OutputBehaviorCreateNew) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(OutputBehaviorCreateNew\) [ToParam]() + +```go +func (r OutputBehaviorCreateNew) ToParam() OutputBehaviorCreateNewParam +``` + +ToParam converts this OutputBehaviorCreateNew to a OutputBehaviorCreateNewParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with OutputBehaviorCreateNewParam.Overrides\(\) + + +### func \(\*OutputBehaviorCreateNew\) [UnmarshalJSON]() + +```go +func (r *OutputBehaviorCreateNew) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorCreateNewParam]() + +The default destination: the job creates a new output memory store as a clone of the memory\_store input and writes the consolidated memories into it. The input store is never mutated. + +The property Type is required. + +```go +type OutputBehaviorCreateNewParam struct { + // Any of "create_new". + Type OutputBehaviorCreateNewType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(OutputBehaviorCreateNewParam\) [MarshalJSON]() + +```go +func (r OutputBehaviorCreateNewParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*OutputBehaviorCreateNewParam\) [UnmarshalJSON]() + +```go +func (r *OutputBehaviorCreateNewParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorCreateNewType]() + + + +```go +type OutputBehaviorCreateNewType string +``` + + + +```go +const ( + OutputBehaviorCreateNewTypeCreateNew OutputBehaviorCreateNewType = "create_new" +) +``` + + +## type [OutputBehaviorUnion]() + +OutputBehaviorUnion contains all possible properties and values from [OutputBehaviorCreateNew](<#OutputBehaviorCreateNew>), [OutputBehaviorUpdateExisting](<#OutputBehaviorUpdateExisting>). + +Use the [OutputBehaviorUnion.AsAny](<#OutputBehaviorUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type OutputBehaviorUnion struct { + // Any of "create_new", "update_existing". + Type string `json:"type"` + // This field is from variant [OutputBehaviorUpdateExisting]. + MemoryStoreID string `json:"memory_store_id"` + JSON struct { + Type respjson.Field + MemoryStoreID respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(OutputBehaviorUnion\) [AsAny]() + +```go +func (u OutputBehaviorUnion) AsAny() anyOutputBehavior +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := OutputBehaviorUnion.AsAny().(type) { +case qoder.OutputBehaviorCreateNew: +case qoder.OutputBehaviorUpdateExisting: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(OutputBehaviorUnion\) [AsCreateNew]() + +```go +func (u OutputBehaviorUnion) AsCreateNew() (v OutputBehaviorCreateNew) +``` + + + + +### func \(OutputBehaviorUnion\) [AsUpdateExisting]() + +```go +func (u OutputBehaviorUnion) AsUpdateExisting() (v OutputBehaviorUpdateExisting) +``` + + + + +### func \(OutputBehaviorUnion\) [RawJSON]() + +```go +func (u OutputBehaviorUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(OutputBehaviorUnion\) [ToParam]() + +```go +func (r OutputBehaviorUnion) ToParam() OutputBehaviorUnionParam +``` + +ToParam converts this OutputBehaviorUnion to a OutputBehaviorUnionParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with OutputBehaviorUnionParam.Overrides\(\) + + +### func \(\*OutputBehaviorUnion\) [UnmarshalJSON]() + +```go +func (r *OutputBehaviorUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type OutputBehaviorUnionParam struct { + OfCreateNew *OutputBehaviorCreateNewParam `json:",omitzero,inline"` + OfUpdateExisting *OutputBehaviorUpdateExistingParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func [OutputBehaviorParamOfCreateNew]() + +```go +func OutputBehaviorParamOfCreateNew(type_ OutputBehaviorCreateNewType) OutputBehaviorUnionParam +``` + + + + +### func [OutputBehaviorParamOfUpdateExisting]() + +```go +func OutputBehaviorParamOfUpdateExisting(memoryStoreID string) OutputBehaviorUnionParam +``` + + + + +### func \(OutputBehaviorUnionParam\) [GetMemoryStoreID]() + +```go +func (u OutputBehaviorUnionParam) GetMemoryStoreID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(OutputBehaviorUnionParam\) [GetType]() + +```go +func (u OutputBehaviorUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(OutputBehaviorUnionParam\) [MarshalJSON]() + +```go +func (u OutputBehaviorUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*OutputBehaviorUnionParam\) [UnmarshalJSON]() + +```go +func (u *OutputBehaviorUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorUpdateExisting]() + +The job writes the consolidated memories into this existing memory store instead of creating one. In EAP the store must be the job's own memory\_store input, so the job consolidates the store in place. + +```go +type OutputBehaviorUpdateExisting struct { + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "update_existing". + Type OutputBehaviorUpdateExistingType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + MemoryStoreID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(OutputBehaviorUpdateExisting\) [RawJSON]() + +```go +func (r OutputBehaviorUpdateExisting) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(OutputBehaviorUpdateExisting\) [ToParam]() + +```go +func (r OutputBehaviorUpdateExisting) ToParam() OutputBehaviorUpdateExistingParam +``` + +ToParam converts this OutputBehaviorUpdateExisting to a OutputBehaviorUpdateExistingParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with OutputBehaviorUpdateExistingParam.Overrides\(\) + + +### func \(\*OutputBehaviorUpdateExisting\) [UnmarshalJSON]() + +```go +func (r *OutputBehaviorUpdateExisting) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorUpdateExistingParam]() + +The job writes the consolidated memories into this existing memory store instead of creating one. In EAP the store must be the job's own memory\_store input, so the job consolidates the store in place. + +The properties MemoryStoreID, Type are required. + +```go +type OutputBehaviorUpdateExistingParam struct { + MemoryStoreID string `json:"memory_store_id" api:"required"` + // Any of "update_existing". + Type OutputBehaviorUpdateExistingType `json:"type,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(OutputBehaviorUpdateExistingParam\) [MarshalJSON]() + +```go +func (r OutputBehaviorUpdateExistingParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*OutputBehaviorUpdateExistingParam\) [UnmarshalJSON]() + +```go +func (r *OutputBehaviorUpdateExistingParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [OutputBehaviorUpdateExistingType]() + + + +```go +type OutputBehaviorUpdateExistingType string +``` + + + +```go +const ( + OutputBehaviorUpdateExistingTypeUpdateExisting OutputBehaviorUpdateExistingType = "update_existing" +) +``` + + +## type [Packages]() + +Packages \(and their versions\) available in this environment. + +```go +type Packages struct { + // Ubuntu/Debian packages to install + Apt []string `json:"apt" api:"required"` + // Rust packages to install + Cargo []string `json:"cargo" api:"required"` + // Ruby packages to install + Gem []string `json:"gem" api:"required"` + // Go packages to install + Go []string `json:"go" api:"required"` + // Node.js packages to install + Npm []string `json:"npm" api:"required"` + // Python packages to install + Pip []string `json:"pip" api:"required"` + // Package configuration type + // + // Any of "packages". + Type PackagesType `json:"type"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Apt respjson.Field + Cargo respjson.Field + Gem respjson.Field + Go respjson.Field + Npm respjson.Field + Pip respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Packages\) [RawJSON]() + +```go +func (r Packages) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*Packages\) [UnmarshalJSON]() + +```go +func (r *Packages) UnmarshalJSON(data []byte) error +``` + + + + +## type [PackagesParams]() + +Specify packages \(and optionally their versions\) available in this environment. + +When versioning, use the version semantics relevant for the package manager, e.g. for \`pip\` use \`package==1.0.0\`. You are responsible for validating the package and version exist. Unversioned installs the latest. + +Under \`limited\` networking, requires \`networking.allow\_package\_managers\` to be \`true\`. + +```go +type PackagesParams struct { + // Ubuntu/Debian packages to install + Apt []string `json:"apt,omitzero"` + // Rust packages to install + Cargo []string `json:"cargo,omitzero"` + // Ruby packages to install + Gem []string `json:"gem,omitzero"` + // Go packages to install + Go []string `json:"go,omitzero"` + // Node.js packages to install + Npm []string `json:"npm,omitzero"` + // Python packages to install + Pip []string `json:"pip,omitzero"` + // Package configuration type + // + // Any of "packages". + Type PackagesParamsType `json:"type,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(PackagesParams\) [MarshalJSON]() + +```go +func (r PackagesParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*PackagesParams\) [UnmarshalJSON]() + +```go +func (r *PackagesParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [PackagesParamsType]() + +Package configuration type + +```go +type PackagesParamsType string +``` + + + +```go +const ( + PackagesParamsTypePackages PackagesParamsType = "packages" +) +``` + + +## type [PackagesType]() + +Package configuration type + +```go +type PackagesType string +``` + + + +```go +const ( + PackagesTypePackages PackagesType = "packages" +) +``` + + +## type [PlainTextSourceParam]() + +The properties Data, MediaType, Type are required. + +```go +type PlainTextSourceParam struct { + Data string `json:"data" api:"required"` + // This field can be elided, and will marshal its zero value as "text/plain". + MediaType constant.TextPlain `json:"media_type" default:"text/plain"` + // This field can be elided, and will marshal its zero value as "text". + Type constant.Text `json:"type" default:"text"` + // contains filtered or unexported fields +} +``` + + +### func \(PlainTextSourceParam\) [MarshalJSON]() + +```go +func (r PlainTextSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*PlainTextSourceParam\) [UnmarshalJSON]() + +```go +func (r *PlainTextSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [QoderBeta]() + + + +```go +type QoderBeta = string +``` + + +## type [RedactedThinkingBlockParam]() + +The properties Data, Type are required. + +```go +type RedactedThinkingBlockParam struct { + // The `data` value of this redacted thinking block, exactly as returned by the API + // in a previous response. Opaque and encrypted; pass it back unchanged. + Data string `json:"data" api:"required"` + // This field can be elided, and will marshal its zero value as + // "redacted_thinking". + Type constant.RedactedThinking `json:"type" default:"redacted_thinking"` + // contains filtered or unexported fields +} +``` + + +### func \(RedactedThinkingBlockParam\) [MarshalJSON]() + +```go +func (r RedactedThinkingBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*RedactedThinkingBlockParam\) [UnmarshalJSON]() + +```go +func (r *RedactedThinkingBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestDocumentBlockParam]() + +The properties Source, Type are required. + +```go +type RequestDocumentBlockParam struct { + Source RequestDocumentBlockSourceUnionParam `json:"source,omitzero" api:"required"` + Context param.Opt[string] `json:"context,omitzero"` + Title param.Opt[string] `json:"title,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + Citations CitationsConfigParam `json:"citations,omitzero"` + // This field can be elided, and will marshal its zero value as "document". + Type constant.Document `json:"type" default:"document"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestDocumentBlockParam\) [MarshalJSON]() + +```go +func (r RequestDocumentBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*RequestDocumentBlockParam\) [UnmarshalJSON]() + +```go +func (r *RequestDocumentBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestDocumentBlockSourceUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type RequestDocumentBlockSourceUnionParam struct { + OfBase64 *Base64PDFSourceParam `json:",omitzero,inline"` + OfText *PlainTextSourceParam `json:",omitzero,inline"` + OfContent *ContentBlockSourceParam `json:",omitzero,inline"` + OfURL *URLPDFSourceParam `json:",omitzero,inline"` + OfFile *FileDocumentSourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetContent]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetContent() *ContentBlockSourceContentUnionParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetData]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetData() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetFileID]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetMediaType]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetMediaType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetType]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [GetURL]() + +```go +func (u RequestDocumentBlockSourceUnionParam) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestDocumentBlockSourceUnionParam\) [MarshalJSON]() + +```go +func (u RequestDocumentBlockSourceUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*RequestDocumentBlockSourceUnionParam\) [UnmarshalJSON]() + +```go +func (u *RequestDocumentBlockSourceUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestMCPToolResultBlockParam]() + +The properties ToolUseID, Type are required. + +```go +type RequestMCPToolResultBlockParam struct { + ToolUseID string `json:"tool_use_id" api:"required"` + IsError param.Opt[bool] `json:"is_error,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + Content RequestMCPToolResultBlockParamContentUnion `json:"content,omitzero"` + // This field can be elided, and will marshal its zero value as "mcp_tool_result". + Type constant.MCPToolResult `json:"type" default:"mcp_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestMCPToolResultBlockParam\) [MarshalJSON]() + +```go +func (r RequestMCPToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*RequestMCPToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *RequestMCPToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestMCPToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type RequestMCPToolResultBlockParamContentUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfMCPToolResultBlockContent []TextBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestMCPToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u RequestMCPToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*RequestMCPToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *RequestMCPToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestToolAdditionBlockParam]() + +Mid\-conversation directive to surface a declared tool. + +\`tool\` references a tool \(or MCP toolset\) by name from the request's \`tools\`; it is offered to the model from this point in the conversation onward. + +The properties Tool, Type are required. + +```go +type RequestToolAdditionBlockParam struct { + // Reference to a single tool the caller declared directly in `tools[]`. Does not + // accept the composed `{server}_{name}` form the server assigns to MCP-resolved + // tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those. + Tool RequestToolAdditionBlockToolUnionParam `json:"tool,omitzero" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "tool_addition". + Type constant.ToolAddition `json:"type" default:"tool_addition"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestToolAdditionBlockParam\) [MarshalJSON]() + +```go +func (r RequestToolAdditionBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*RequestToolAdditionBlockParam\) [UnmarshalJSON]() + +```go +func (r *RequestToolAdditionBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestToolAdditionBlockToolUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type RequestToolAdditionBlockToolUnionParam struct { + OfToolReference *ToolChangeToolReferenceParam `json:",omitzero,inline"` + OfMCPToolReference *ToolChangeMCPToolReferenceParam `json:",omitzero,inline"` + OfMCPToolsetReference *ToolChangeMCPToolsetReferenceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestToolAdditionBlockToolUnionParam\) [GetName]() + +```go +func (u RequestToolAdditionBlockToolUnionParam) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolAdditionBlockToolUnionParam\) [GetServerName]() + +```go +func (u RequestToolAdditionBlockToolUnionParam) GetServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolAdditionBlockToolUnionParam\) [GetType]() + +```go +func (u RequestToolAdditionBlockToolUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolAdditionBlockToolUnionParam\) [MarshalJSON]() + +```go +func (u RequestToolAdditionBlockToolUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*RequestToolAdditionBlockToolUnionParam\) [UnmarshalJSON]() + +```go +func (u *RequestToolAdditionBlockToolUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestToolRemovalBlockParam]() + +Mid\-conversation directive to withdraw a tool. + +\`tool\` references a tool \(or MCP toolset\) by name from the request's \`tools\`; it is no longer offered to the model from this point in the conversation onward. + +The properties Tool, Type are required. + +```go +type RequestToolRemovalBlockParam struct { + // Reference to a single tool the caller declared directly in `tools[]`. Does not + // accept the composed `{server}_{name}` form the server assigns to MCP-resolved + // tools — use `mcp_tool_reference` or `mcp_toolset_reference` for those. + Tool RequestToolRemovalBlockToolUnionParam `json:"tool,omitzero" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "tool_removal". + Type constant.ToolRemoval `json:"type" default:"tool_removal"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestToolRemovalBlockParam\) [MarshalJSON]() + +```go +func (r RequestToolRemovalBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*RequestToolRemovalBlockParam\) [UnmarshalJSON]() + +```go +func (r *RequestToolRemovalBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [RequestToolRemovalBlockToolUnionParam]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type RequestToolRemovalBlockToolUnionParam struct { + OfToolReference *ToolChangeToolReferenceParam `json:",omitzero,inline"` + OfMCPToolReference *ToolChangeMCPToolReferenceParam `json:",omitzero,inline"` + OfMCPToolsetReference *ToolChangeMCPToolsetReferenceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(RequestToolRemovalBlockToolUnionParam\) [GetName]() + +```go +func (u RequestToolRemovalBlockToolUnionParam) GetName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolRemovalBlockToolUnionParam\) [GetServerName]() + +```go +func (u RequestToolRemovalBlockToolUnionParam) GetServerName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolRemovalBlockToolUnionParam\) [GetType]() + +```go +func (u RequestToolRemovalBlockToolUnionParam) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(RequestToolRemovalBlockToolUnionParam\) [MarshalJSON]() + +```go +func (u RequestToolRemovalBlockToolUnionParam) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*RequestToolRemovalBlockToolUnionParam\) [UnmarshalJSON]() + +```go +func (u *RequestToolRemovalBlockToolUnionParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ResumableSessionEventStream]() + +ResumableSessionEventStream is a Session Event stream that reconnects after retryable HTTP, transport, read, and unexpected EOF failures. + +```go +type ResumableSessionEventStream struct { + // contains filtered or unexported fields +} +``` + + +### func \(\*ResumableSessionEventStream\) [Close]() + +```go +func (s *ResumableSessionEventStream) Close() error +``` + + + + +### func \(\*ResumableSessionEventStream\) [Current]() + +```go +func (s *ResumableSessionEventStream) Current() ManagedAgentsStreamSessionEventsUnion +``` + + + + +### func \(\*ResumableSessionEventStream\) [Err]() + +```go +func (s *ResumableSessionEventStream) Err() error +``` + + + + +### func \(\*ResumableSessionEventStream\) [LastEventID]() + +```go +func (s *ResumableSessionEventStream) LastEventID() string +``` + + + + +### func \(\*ResumableSessionEventStream\) [Next]() + +```go +func (s *ResumableSessionEventStream) Next() bool +``` + + + + +## type [SearchResultBlockParam]() + +The properties Content, Source, Title, Type are required. + +```go +type SearchResultBlockParam struct { + Content []TextBlockParam `json:"content,omitzero" api:"required"` + Source string `json:"source" api:"required"` + Title string `json:"title" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + Citations CitationsConfigParam `json:"citations,omitzero"` + // This field can be elided, and will marshal its zero value as "search_result". + Type constant.SearchResult `json:"type" default:"search_result"` + // contains filtered or unexported fields +} +``` + + +### func \(SearchResultBlockParam\) [MarshalJSON]() + +```go +func (r SearchResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SearchResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *SearchResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedConfig]() + +Configuration for self\-hosted environments. + +```go +type SelfHostedConfig struct { + // Environment type + Type constant.SelfHosted `json:"type" default:"self_hosted"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SelfHostedConfig\) [RawJSON]() + +```go +func (r SelfHostedConfig) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SelfHostedConfig\) [UnmarshalJSON]() + +```go +func (r *SelfHostedConfig) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedConfigParams]() + +Request params for \`self\_hosted\` environment configuration. + +This struct has a constant value, construct it with [NewSelfHostedConfigParams](<#NewSelfHostedConfigParams>). + +```go +type SelfHostedConfigParams struct { + // Environment type + Type constant.SelfHosted `json:"type" default:"self_hosted"` + // contains filtered or unexported fields +} +``` + + +### func [NewSelfHostedConfigParams]() + +```go +func NewSelfHostedConfigParams() SelfHostedConfigParams +``` + + + + +### func \(SelfHostedConfigParams\) [MarshalJSON]() + +```go +func (r SelfHostedConfigParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SelfHostedConfigParams\) [UnmarshalJSON]() + +```go +func (r *SelfHostedConfigParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWork]() + +Work resource representing a unit of work in a self\-hosted environment. + +Work items are queued when sessions are created or when long\-dormant sessions receive new messages. The Environment Manager polls for work items and executes them on customer\-hosted infrastructure. + +```go +type SelfHostedWork struct { + // Work identifier (e.g., 'work\_...') + ID string `json:"id" api:"required"` + // RFC 3339 timestamp when work was acknowledged by Environment Manager + AcknowledgedAt string `json:"acknowledged_at" api:"required"` + // RFC 3339 timestamp when work was created + CreatedAt string `json:"created_at" api:"required"` + // The actual work to be performed + Data SessionWorkData `json:"data" api:"required"` + // Environment identifier this work belongs to (e.g., `env_...`) + EnvironmentID string `json:"environment_id" api:"required"` + // RFC 3339 timestamp of the most recent heartbeat + LatestHeartbeatAt string `json:"latest_heartbeat_at" api:"required"` + // User-provided metadata key-value pairs associated with this work item + Metadata map[string]string `json:"metadata" api:"required"` + // Credential payload used by the environment worker to execute this work item. May + // be populated when polling for work; null on all other retrieval paths. + Secret string `json:"secret" api:"required"` + // RFC 3339 timestamp when work execution started + StartedAt string `json:"started_at" api:"required"` + // Current state of the work item + // + // Any of "queued", "starting", "active", "stopping", "stopped". + State SelfHostedWorkState `json:"state" api:"required"` + // RFC 3339 timestamp when stop was requested + StopRequestedAt string `json:"stop_requested_at" api:"required"` + // RFC 3339 timestamp when work execution stopped + StoppedAt string `json:"stopped_at" api:"required"` + // The type of object (always 'work') + Type constant.Work `json:"type" default:"work"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + AcknowledgedAt respjson.Field + CreatedAt respjson.Field + Data respjson.Field + EnvironmentID respjson.Field + LatestHeartbeatAt respjson.Field + Metadata respjson.Field + Secret respjson.Field + StartedAt respjson.Field + State respjson.Field + StopRequestedAt respjson.Field + StoppedAt respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SelfHostedWork\) [RawJSON]() + +```go +func (r SelfHostedWork) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SelfHostedWork\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWork) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWorkHeartbeatResponse]() + +Response after recording a heartbeat for a work item. + +```go +type SelfHostedWorkHeartbeatResponse struct { + // RFC 3339 timestamp of the actual heartbeat from DB + LastHeartbeat string `json:"last_heartbeat" api:"required"` + // Whether the heartbeat succeeded in extending the lease + LeaseExtended bool `json:"lease_extended" api:"required"` + // Current state of the work item (active/stopping/stopped) + // + // Any of "queued", "starting", "active", "stopping", "stopped". + State SelfHostedWorkHeartbeatResponseState `json:"state" api:"required"` + // Effective TTL applied to the lease + TTLSeconds int64 `json:"ttl_seconds" api:"required"` + // The type of response + Type constant.WorkHeartbeat `json:"type" default:"work_heartbeat"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + LastHeartbeat respjson.Field + LeaseExtended respjson.Field + State respjson.Field + TTLSeconds respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SelfHostedWorkHeartbeatResponse\) [RawJSON]() + +```go +func (r SelfHostedWorkHeartbeatResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SelfHostedWorkHeartbeatResponse\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWorkHeartbeatResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWorkHeartbeatResponseState]() + +Current state of the work item \(active/stopping/stopped\) + +```go +type SelfHostedWorkHeartbeatResponseState string +``` + + + +```go +const ( + SelfHostedWorkHeartbeatResponseStateQueued SelfHostedWorkHeartbeatResponseState = "queued" + SelfHostedWorkHeartbeatResponseStateStarting SelfHostedWorkHeartbeatResponseState = "starting" + SelfHostedWorkHeartbeatResponseStateActive SelfHostedWorkHeartbeatResponseState = "active" + SelfHostedWorkHeartbeatResponseStateStopping SelfHostedWorkHeartbeatResponseState = "stopping" + SelfHostedWorkHeartbeatResponseStateStopped SelfHostedWorkHeartbeatResponseState = "stopped" +) +``` + + +## type [SelfHostedWorkListResponse]() + +Response when listing work items with cursor\-based pagination. + +```go +type SelfHostedWorkListResponse struct { + // List of work items + Data []SelfHostedWork `json:"data" api:"required"` + // Opaque cursor for fetching the next page of results + NextPage string `json:"next_page" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + NextPage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SelfHostedWorkListResponse\) [RawJSON]() + +```go +func (r SelfHostedWorkListResponse) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SelfHostedWorkListResponse\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWorkListResponse) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWorkQueueStats]() + +Statistics about the work queue for an environment. + +Uses Redis Stream consumer group metrics for O\(1\) queries. + +```go +type SelfHostedWorkQueueStats struct { + // Number of work items waiting to be picked up (lag from consumer group) + Depth int64 `json:"depth" api:"required"` + // RFC 3339 timestamp of oldest item in the work stream (includes both queued and + // pending items), null if stream empty + OldestQueuedAt string `json:"oldest_queued_at" api:"required"` + // Number of work items being processed (polled but not acknowledged) + Pending int64 `json:"pending" api:"required"` + // The type of object + Type constant.WorkQueueStats `json:"type" default:"work_queue_stats"` + // Number of workers that have polled for work in the last 30 seconds. Requires + // worker_id to be sent with poll requests. + WorkersPolling int64 `json:"workers_polling" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Depth respjson.Field + OldestQueuedAt respjson.Field + Pending respjson.Field + Type respjson.Field + WorkersPolling respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SelfHostedWorkQueueStats\) [RawJSON]() + +```go +func (r SelfHostedWorkQueueStats) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SelfHostedWorkQueueStats\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWorkQueueStats) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWorkState]() + +Current state of the work item + +```go +type SelfHostedWorkState string +``` + + + +```go +const ( + SelfHostedWorkStateQueued SelfHostedWorkState = "queued" + SelfHostedWorkStateStarting SelfHostedWorkState = "starting" + SelfHostedWorkStateActive SelfHostedWorkState = "active" + SelfHostedWorkStateStopping SelfHostedWorkState = "stopping" + SelfHostedWorkStateStopped SelfHostedWorkState = "stopped" +) +``` + + +## type [SelfHostedWorkStopRequestParam]() + +Request to stop a work item. + +```go +type SelfHostedWorkStopRequestParam struct { + // If true, immediately stop work without graceful shutdown + Force param.Opt[bool] `json:"force,omitzero"` + // contains filtered or unexported fields +} +``` + + +### func \(SelfHostedWorkStopRequestParam\) [MarshalJSON]() + +```go +func (r SelfHostedWorkStopRequestParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SelfHostedWorkStopRequestParam\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWorkStopRequestParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [SelfHostedWorkUpdateRequestParam]() + +Request to update work item metadata. + +The property Metadata is required. + +```go +type SelfHostedWorkUpdateRequestParam struct { + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omit the field to preserve existing metadata. + Metadata map[string]any `json:"metadata,omitzero" api:"required"` + // contains filtered or unexported fields +} +``` + + +### func \(SelfHostedWorkUpdateRequestParam\) [MarshalJSON]() + +```go +func (r SelfHostedWorkUpdateRequestParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SelfHostedWorkUpdateRequestParam\) [UnmarshalJSON]() + +```go +func (r *SelfHostedWorkUpdateRequestParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ServerToolCaller20260120Param]() + +The properties ToolID, Type are required. + +```go +type ServerToolCaller20260120Param struct { + ToolID string `json:"tool_id" api:"required"` + // This field can be elided, and will marshal its zero value as + // "code_execution_20260120". + Type constant.CodeExecution20260120 `json:"type" default:"code_execution_20260120"` + // contains filtered or unexported fields +} +``` + + +### func \(ServerToolCaller20260120Param\) [MarshalJSON]() + +```go +func (r ServerToolCaller20260120Param) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ServerToolCaller20260120Param\) [UnmarshalJSON]() + +```go +func (r *ServerToolCaller20260120Param) UnmarshalJSON(data []byte) error +``` + + + + +## type [ServerToolCallerParam]() + +Tool invocation generated by a server\-side tool. + +The properties ToolID, Type are required. + +```go +type ServerToolCallerParam struct { + ToolID string `json:"tool_id" api:"required"` + // This field can be elided, and will marshal its zero value as + // "code_execution_20250825". + Type constant.CodeExecution20250825 `json:"type" default:"code_execution_20250825"` + // contains filtered or unexported fields +} +``` + + +### func \(ServerToolCallerParam\) [MarshalJSON]() + +```go +func (r ServerToolCallerParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ServerToolCallerParam\) [UnmarshalJSON]() + +```go +func (r *ServerToolCallerParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ServerToolUseBlockParam]() + +The properties ID, Input, Name, Type are required. + +```go +type ServerToolUseBlockParam struct { + ID string `json:"id" api:"required"` + Input any `json:"input,omitzero" api:"required"` + // Any of "advisor", "web_search", "web_fetch", "code_execution", + // "bash_code_execution", "text_editor_code_execution", "tool_search_tool_regex", + // "tool_search_tool_bm25". + Name ServerToolUseBlockParamName `json:"name,omitzero" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // Tool invocation directly from the model. + Caller ServerToolUseBlockParamCallerUnion `json:"caller,omitzero"` + // This field can be elided, and will marshal its zero value as "server_tool_use". + Type constant.ServerToolUse `json:"type" default:"server_tool_use"` + // contains filtered or unexported fields +} +``` + + +### func \(ServerToolUseBlockParam\) [MarshalJSON]() + +```go +func (r ServerToolUseBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ServerToolUseBlockParam\) [UnmarshalJSON]() + +```go +func (r *ServerToolUseBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ServerToolUseBlockParamCallerUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ServerToolUseBlockParamCallerUnion struct { + OfDirect *DirectCallerParam `json:",omitzero,inline"` + OfCodeExecution20250825 *ServerToolCallerParam `json:",omitzero,inline"` + OfCodeExecution20260120 *ServerToolCaller20260120Param `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ServerToolUseBlockParamCallerUnion\) [GetToolID]() + +```go +func (u ServerToolUseBlockParamCallerUnion) GetToolID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ServerToolUseBlockParamCallerUnion\) [GetType]() + +```go +func (u ServerToolUseBlockParamCallerUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ServerToolUseBlockParamCallerUnion\) [MarshalJSON]() + +```go +func (u ServerToolUseBlockParamCallerUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ServerToolUseBlockParamCallerUnion\) [UnmarshalJSON]() + +```go +func (u *ServerToolUseBlockParamCallerUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ServerToolUseBlockParamName]() + + + +```go +type ServerToolUseBlockParamName string +``` + + +## type [SessionArchiveParams]() + + + +```go +type SessionArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionDeleteParams]() + + + +```go +type SessionDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionEventListParams]() + + + +```go +type SessionEventListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Return events created after this time (exclusive). Compared against the event's + // `processed_at` value. + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" format:"date-time" json:"-"` + // Return events created at or after this time (inclusive). Compared against the + // event's `processed_at` value. + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return events created before this time (exclusive). Compared against the event's + // `processed_at` value. + CreatedAtLt param.Opt[time.Time] `query:"created_at[lt],omitzero" format:"date-time" json:"-"` + // Return events created at or before this time (inclusive). Compared against the + // event's `processed_at` value. + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // Query parameter for limit + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor from a previous response's `next_page`. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Sort direction for results, ordered by the event's `processed_at`. Defaults to + // `asc` (chronological). + // + // Any of "asc", "desc". + Order SessionEventListParamsOrder `query:"order,omitzero" json:"-"` + // Filter by event type. Values match the `type` field on returned events (for + // example, `user.message` or `agent.tool_use`). Omit to return all event types. + Types []string `query:"types,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventListParams\) [URLQuery]() + +```go +func (r SessionEventListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionEventListParams](<#SessionEventListParams>)'s query parameters as \`url.Values\`. + + +## type [SessionEventListParamsOrder]() + +Sort direction for results, ordered by the event's \`processed\_at\`. Defaults to \`asc\` \(chronological\). + +```go +type SessionEventListParamsOrder string +``` + + + +```go +const ( + SessionEventListParamsOrderAsc SessionEventListParamsOrder = "asc" + SessionEventListParamsOrderDesc SessionEventListParamsOrder = "desc" +) +``` + + +## type [SessionEventSendParams]() + + + +```go +type SessionEventSendParams struct { + // Events to send to the `session`. + Events []ManagedAgentsEventParamsUnion `json:"events,omitzero" api:"required"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventSendParams\) [MarshalJSON]() + +```go +func (r SessionEventSendParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SessionEventSendParams\) [UnmarshalJSON]() + +```go +func (r *SessionEventSendParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionEventService]() + +SessionEventService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSessionEventService](<#NewSessionEventService>) method instead. + +```go +type SessionEventService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionEventService]() + +```go +func NewSessionEventService(opts ...option.RequestOption) (r SessionEventService) +``` + +NewSessionEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SessionEventService\) [List]() + +```go +func (r *SessionEventService) List(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsSessionEventUnion], err error) +``` + +List Events + + +### func \(\*SessionEventService\) [ListAutoPaging]() + +```go +func (r *SessionEventService) ListAutoPaging(ctx context.Context, sessionID string, params SessionEventListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsSessionEventUnion] +``` + +List Events + + +### func \(\*SessionEventService\) [NewResumableStream]() + +```go +func (r *SessionEventService) NewResumableStream(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) *ResumableSessionEventStream +``` + +NewResumableStream subscribes to Session Events and reconnects retryable failures with the latest yielded Last\-Event\-ID cursor. + + +### func \(\*SessionEventService\) [Send]() + +```go +func (r *SessionEventService) Send(ctx context.Context, sessionID string, params SessionEventSendParams, opts ...option.RequestOption) (res *ManagedAgentsSendSessionEvents, err error) +``` + +Send Events + + +### func \(\*SessionEventService\) [StreamEvents]() + +```go +func (r *SessionEventService) StreamEvents(ctx context.Context, sessionID string, params SessionEventStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[ManagedAgentsStreamSessionEventsUnion]) +``` + +Stream Events + + +## type [SessionEventStreamParams]() + + + +```go +type SessionEventStreamParams struct { + // When set, this connection also receives streaming deltas (`event_start`, + // `event_delta`) while an event is being produced, before the event itself + // arrives. Deltas are best-effort; when the final event is produced it carries the + // complete content. A model request that ends early (an error or interrupt) + // produces no final event — its terminal `span.model_request_end` closes the + // preview. Accepts one or more event types to preview and may be repeated: + // `agent.message` streams `content_delta` fragments; `agent.thinking` is + // start-only — a signal that the agent has begun extended thinking, concluded by + // the `agent.thinking` event itself. Only previews of the requested event types + // are sent. + EventDeltas []ManagedAgentsDeltaType `query:"event_deltas,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // Resume the subscription after this Event ID. + LastEventID param.Opt[string] `header:"Last-Event-ID,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionEventStreamParams\) [URLQuery]() + +```go +func (r SessionEventStreamParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionEventStreamParams](<#SessionEventStreamParams>)'s query parameters as \`url.Values\`. + + +## type [SessionGetParams]() + + + +```go +type SessionGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionListParams]() + + + +```go +type SessionListParams struct { + // Filter sessions created with this agent ID. + AgentID param.Opt[string] `query:"agent_id,omitzero" json:"-"` + // Filter by agent version. Only applies when `agent_id` is also set. + AgentVersion param.Opt[int64] `query:"agent_version,omitzero" json:"-"` + // Return sessions created after this time (exclusive). + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" format:"date-time" json:"-"` + // Return sessions created at or after this time (inclusive). + CreatedAtGte param.Opt[time.Time] `query:"created_at[gte],omitzero" format:"date-time" json:"-"` + // Return sessions created before this time (exclusive). + CreatedAtLt param.Opt[time.Time] `query:"created_at[lt],omitzero" format:"date-time" json:"-"` + // Return sessions created at or before this time (inclusive). + CreatedAtLte param.Opt[time.Time] `query:"created_at[lte],omitzero" format:"date-time" json:"-"` + // Filter sessions created by this deployment ID. + DeploymentID param.Opt[string] `query:"deployment_id,omitzero" json:"-"` + // When true, includes archived sessions. Default: false (exclude archived). + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum number of results to return. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Filter sessions whose resources contain a `memory_store` with this memory store + // ID. + MemoryStoreID param.Opt[string] `query:"memory_store_id,omitzero" json:"-"` + // Opaque pagination cursor from a previous response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Sort direction for results, ordered by `created_at`. Defaults to `desc` (newest + // first). + // + // Any of "asc", "desc". + Order SessionListParamsOrder `query:"order,omitzero" json:"-"` + // Filter by session status. Repeat the parameter to match any of multiple + // statuses. + // + // Any of "rescheduling", "running", "idle", "terminated". + Statuses []string `query:"statuses,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionListParams\) [URLQuery]() + +```go +func (r SessionListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionListParams](<#SessionListParams>)'s query parameters as \`url.Values\`. + + +## type [SessionListParamsOrder]() + +Sort direction for results, ordered by \`created\_at\`. Defaults to \`desc\` \(newest first\). + +```go +type SessionListParamsOrder string +``` + + + +```go +const ( + SessionListParamsOrderAsc SessionListParamsOrder = "asc" + SessionListParamsOrderDesc SessionListParamsOrder = "desc" +) +``` + + +## type [SessionNewParams]() + + + +```go +type SessionNewParams struct { + EnvironmentVariables map[string]string `json:"environment_variables,omitzero"` + + // Agent identifier. Accepts the `agent` ID string, which pins the latest version + // for the session, or an `agent` object with both id and version specified. + Agent SessionNewParamsAgentUnion `json:"agent,omitzero" api:"required"` + // ID of the `environment` defining the container configuration for this session. + EnvironmentID string `json:"environment_id" api:"required"` + // Human-readable session title. + Title param.Opt[string] `json:"title,omitzero"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimitParam `json:"budget,omitzero"` + // Initial events to send to the `session` at creation, processed in order. + // Supports `user.message` and `user.define_outcome` events. Maximum 50 events. + InitialEvents []SessionNewParamsInitialEventUnion `json:"initial_events,omitzero"` + // Arbitrary key-value metadata attached to the session. Maximum 16 pairs, keys up + // to 64 chars, values up to 512 chars. + Metadata map[string]string `json:"metadata,omitzero"` + // Resources (e.g. repositories, files) to mount into the session's container. + Resources []SessionNewParamsResourceUnion `json:"resources,omitzero"` + // Vault IDs for stored credentials the agent can use during the session. + VaultIDs []string `json:"vault_ids,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParams\) [MarshalJSON]() + +```go +func (r SessionNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SessionNewParams\) [UnmarshalJSON]() + +```go +func (r *SessionNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionNewParamsAgentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type SessionNewParamsAgentUnion struct { + OfString param.Opt[string] `json:",omitzero,inline"` + OfManagedAgentsAgents *ManagedAgentsAgentParams `json:",omitzero,inline"` + OfManagedAgentsAgentWithOverridess *ManagedAgentsAgentWithOverridesParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParamsAgentUnion\) [GetID]() + +```go +func (u SessionNewParamsAgentUnion) GetID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetMCPServers]() + +```go +func (u SessionNewParamsAgentUnion) GetMCPServers() []ManagedAgentsURLMCPServerParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetModel]() + +```go +func (u SessionNewParamsAgentUnion) GetModel() *ManagedAgentsModelConfigParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetSkills]() + +```go +func (u SessionNewParamsAgentUnion) GetSkills() []ManagedAgentsSkillParamsUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetSystem]() + +```go +func (u SessionNewParamsAgentUnion) GetSystem() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetTools]() + +```go +func (u SessionNewParamsAgentUnion) GetTools() []ManagedAgentsAgentWithOverridesParamsToolUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetType]() + +```go +func (u SessionNewParamsAgentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [GetVersion]() + +```go +func (u SessionNewParamsAgentUnion) GetVersion() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsAgentUnion\) [MarshalJSON]() + +```go +func (u SessionNewParamsAgentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionNewParamsAgentUnion\) [UnmarshalJSON]() + +```go +func (u *SessionNewParamsAgentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionNewParamsInitialEventUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type SessionNewParamsInitialEventUnion struct { + OfUserMessage *ManagedAgentsUserMessageEventParams `json:",omitzero,inline"` + OfUserDefineOutcome *ManagedAgentsUserDefineOutcomeEventParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParamsInitialEventUnion\) [GetContent]() + +```go +func (u SessionNewParamsInitialEventUnion) GetContent() []ManagedAgentsUserMessageEventParamsContentUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsInitialEventUnion\) [GetDescription]() + +```go +func (u SessionNewParamsInitialEventUnion) GetDescription() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsInitialEventUnion\) [GetMaxIterations]() + +```go +func (u SessionNewParamsInitialEventUnion) GetMaxIterations() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsInitialEventUnion\) [GetRubric]() + +```go +func (u SessionNewParamsInitialEventUnion) GetRubric() *ManagedAgentsUserDefineOutcomeEventParamsRubricUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsInitialEventUnion\) [GetType]() + +```go +func (u SessionNewParamsInitialEventUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsInitialEventUnion\) [MarshalJSON]() + +```go +func (u SessionNewParamsInitialEventUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionNewParamsInitialEventUnion\) [UnmarshalJSON]() + +```go +func (u *SessionNewParamsInitialEventUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionNewParamsResourceUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type SessionNewParamsResourceUnion struct { + OfGitHubRepository *ManagedAgentsGitHubRepositoryResourceParams `json:",omitzero,inline"` + OfFile *ManagedAgentsFileResourceParams `json:",omitzero,inline"` + OfMemoryStore *ManagedAgentsMemoryStoreResourceParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionNewParamsResourceUnion\) [GetAccess]() + +```go +func (u SessionNewParamsResourceUnion) GetAccess() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetAuthorizationToken]() + +```go +func (u SessionNewParamsResourceUnion) GetAuthorizationToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetCheckout]() + +```go +func (u SessionNewParamsResourceUnion) GetCheckout() *ManagedAgentsGitHubRepositoryResourceParamsCheckoutUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetFileID]() + +```go +func (u SessionNewParamsResourceUnion) GetFileID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetInstructions]() + +```go +func (u SessionNewParamsResourceUnion) GetInstructions() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetMemoryStoreID]() + +```go +func (u SessionNewParamsResourceUnion) GetMemoryStoreID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetMountPath]() + +```go +func (u SessionNewParamsResourceUnion) GetMountPath() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetType]() + +```go +func (u SessionNewParamsResourceUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [GetURL]() + +```go +func (u SessionNewParamsResourceUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(SessionNewParamsResourceUnion\) [MarshalJSON]() + +```go +func (u SessionNewParamsResourceUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*SessionNewParamsResourceUnion\) [UnmarshalJSON]() + +```go +func (u *SessionNewParamsResourceUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceAddParams]() + + + +```go +type SessionResourceAddParams struct { + // Mount a file uploaded via the Files API into the session. + ManagedAgentsFileResourceParams ManagedAgentsFileResourceParams + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionResourceAddParams\) [MarshalJSON]() + +```go +func (r SessionResourceAddParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SessionResourceAddParams\) [UnmarshalJSON]() + +```go +func (r *SessionResourceAddParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceDeleteParams]() + + + +```go +type SessionResourceDeleteParams struct { + SessionID string `path:"session_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionResourceGetParams]() + + + +```go +type SessionResourceGetParams struct { + SessionID string `path:"session_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionResourceGetResponseUnion]() + +SessionResourceGetResponseUnion contains all possible properties and values from [ManagedAgentsGitHubRepositoryResource](<#ManagedAgentsGitHubRepositoryResource>), [ManagedAgentsFileResource](<#ManagedAgentsFileResource>), [ManagedAgentsMemoryStoreResource](<#ManagedAgentsMemoryStoreResource>). + +Use the [SessionResourceGetResponseUnion.AsAny](<#SessionResourceGetResponseUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type SessionResourceGetResponseUnion struct { + ID string `json:"id"` + CreatedAt time.Time `json:"created_at"` + MountPath string `json:"mount_path"` + // Any of "github_repository", "file", "memory_store". + Type string `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + Checkout ManagedAgentsGitHubRepositoryResourceCheckoutUnion `json:"checkout"` + // This field is from variant [ManagedAgentsFileResource]. + FileID string `json:"file_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + MemoryStoreID string `json:"memory_store_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Access ManagedAgentsMemoryStoreResourceAccess `json:"access"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Instructions string `json:"instructions"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Name string `json:"name"` + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + MountPath respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + URL respjson.Field + Checkout respjson.Field + FileID respjson.Field + MemoryStoreID respjson.Field + Access respjson.Field + Description respjson.Field + Instructions respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionResourceGetResponseUnion\) [AsAny]() + +```go +func (u SessionResourceGetResponseUnion) AsAny() anySessionResourceGetResponse +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := SessionResourceGetResponseUnion.AsAny().(type) { +case qoder.ManagedAgentsGitHubRepositoryResource: +case qoder.ManagedAgentsFileResource: +case qoder.ManagedAgentsMemoryStoreResource: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(SessionResourceGetResponseUnion\) [AsFile]() + +```go +func (u SessionResourceGetResponseUnion) AsFile() (v ManagedAgentsFileResource) +``` + + + + +### func \(SessionResourceGetResponseUnion\) [AsGitHubRepository]() + +```go +func (u SessionResourceGetResponseUnion) AsGitHubRepository() (v ManagedAgentsGitHubRepositoryResource) +``` + + + + +### func \(SessionResourceGetResponseUnion\) [AsMemoryStore]() + +```go +func (u SessionResourceGetResponseUnion) AsMemoryStore() (v ManagedAgentsMemoryStoreResource) +``` + + + + +### func \(SessionResourceGetResponseUnion\) [RawJSON]() + +```go +func (u SessionResourceGetResponseUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SessionResourceGetResponseUnion\) [UnmarshalJSON]() + +```go +func (r *SessionResourceGetResponseUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceListParams]() + + + +```go +type SessionResourceListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Maximum number of resources to return per page (max 1000). If omitted, returns + // all resources. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque cursor from a previous response's `next_page` field. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionResourceListParams\) [URLQuery]() + +```go +func (r SessionResourceListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionResourceListParams](<#SessionResourceListParams>)'s query parameters as \`url.Values\`. + + +## type [SessionResourceService]() + +SessionResourceService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSessionResourceService](<#NewSessionResourceService>) method instead. + +```go +type SessionResourceService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionResourceService]() + +```go +func NewSessionResourceService(opts ...option.RequestOption) (r SessionResourceService) +``` + +NewSessionResourceService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SessionResourceService\) [Add]() + +```go +func (r *SessionResourceService) Add(ctx context.Context, sessionID string, params SessionResourceAddParams, opts ...option.RequestOption) (res *ManagedAgentsFileResource, err error) +``` + +Add Session Resource + + +### func \(\*SessionResourceService\) [Delete]() + +```go +func (r *SessionResourceService) Delete(ctx context.Context, resourceID string, params SessionResourceDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeleteSessionResource, err error) +``` + +Delete Session Resource + + +### func \(\*SessionResourceService\) [Get]() + +```go +func (r *SessionResourceService) Get(ctx context.Context, resourceID string, params SessionResourceGetParams, opts ...option.RequestOption) (res *SessionResourceGetResponseUnion, err error) +``` + +Get Session Resource + + +### func \(\*SessionResourceService\) [List]() + +```go +func (r *SessionResourceService) List(ctx context.Context, sessionID string, params SessionResourceListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsSessionResourceUnion], err error) +``` + +List Session Resources + + +### func \(\*SessionResourceService\) [ListAutoPaging]() + +```go +func (r *SessionResourceService) ListAutoPaging(ctx context.Context, sessionID string, params SessionResourceListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsSessionResourceUnion] +``` + +List Session Resources + + +### func \(\*SessionResourceService\) [Update]() + +```go +func (r *SessionResourceService) Update(ctx context.Context, resourceID string, params SessionResourceUpdateParams, opts ...option.RequestOption) (res *SessionResourceUpdateResponseUnion, err error) +``` + +Update Session Resource + + +## type [SessionResourceUpdateParams]() + + + +```go +type SessionResourceUpdateParams struct { + Password param.Opt[string] `json:"password,omitzero"` + + SessionID string `path:"session_id" api:"required" json:"-"` + // New authorization token for the resource. Currently only `github_repository` + // resources support token rotation. + AuthorizationToken string `json:"authorization_token,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionResourceUpdateParams\) [MarshalJSON]() + +```go +func (r SessionResourceUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SessionResourceUpdateParams\) [UnmarshalJSON]() + +```go +func (r *SessionResourceUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionResourceUpdateResponseUnion]() + +SessionResourceUpdateResponseUnion contains all possible properties and values from [ManagedAgentsGitHubRepositoryResource](<#ManagedAgentsGitHubRepositoryResource>), [ManagedAgentsFileResource](<#ManagedAgentsFileResource>), [ManagedAgentsMemoryStoreResource](<#ManagedAgentsMemoryStoreResource>). + +Use the [SessionResourceUpdateResponseUnion.AsAny](<#SessionResourceUpdateResponseUnion.AsAny>) method to switch on the variant. + +Use the methods beginning with 'As' to cast the union to one of its variants. + +```go +type SessionResourceUpdateResponseUnion struct { + ID string `json:"id"` + CreatedAt time.Time `json:"created_at"` + MountPath string `json:"mount_path"` + // Any of "github_repository", "file", "memory_store". + Type string `json:"type"` + UpdatedAt time.Time `json:"updated_at"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + URL string `json:"url"` + // This field is from variant [ManagedAgentsGitHubRepositoryResource]. + Checkout ManagedAgentsGitHubRepositoryResourceCheckoutUnion `json:"checkout"` + // This field is from variant [ManagedAgentsFileResource]. + FileID string `json:"file_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + MemoryStoreID string `json:"memory_store_id"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Access ManagedAgentsMemoryStoreResourceAccess `json:"access"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Description string `json:"description"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Instructions string `json:"instructions"` + // This field is from variant [ManagedAgentsMemoryStoreResource]. + Name string `json:"name"` + JSON struct { + ID respjson.Field + CreatedAt respjson.Field + MountPath respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + URL respjson.Field + Checkout respjson.Field + FileID respjson.Field + MemoryStoreID respjson.Field + Access respjson.Field + Description respjson.Field + Instructions respjson.Field + Name respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionResourceUpdateResponseUnion\) [AsAny]() + +```go +func (u SessionResourceUpdateResponseUnion) AsAny() anySessionResourceUpdateResponse +``` + +Use the following switch statement to find the correct variant + +``` +switch variant := SessionResourceUpdateResponseUnion.AsAny().(type) { +case qoder.ManagedAgentsGitHubRepositoryResource: +case qoder.ManagedAgentsFileResource: +case qoder.ManagedAgentsMemoryStoreResource: +default: + fmt.Errorf("no variant present") +} +``` + + +### func \(SessionResourceUpdateResponseUnion\) [AsFile]() + +```go +func (u SessionResourceUpdateResponseUnion) AsFile() (v ManagedAgentsFileResource) +``` + + + + +### func \(SessionResourceUpdateResponseUnion\) [AsGitHubRepository]() + +```go +func (u SessionResourceUpdateResponseUnion) AsGitHubRepository() (v ManagedAgentsGitHubRepositoryResource) +``` + + + + +### func \(SessionResourceUpdateResponseUnion\) [AsMemoryStore]() + +```go +func (u SessionResourceUpdateResponseUnion) AsMemoryStore() (v ManagedAgentsMemoryStoreResource) +``` + + + + +### func \(SessionResourceUpdateResponseUnion\) [RawJSON]() + +```go +func (u SessionResourceUpdateResponseUnion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SessionResourceUpdateResponseUnion\) [UnmarshalJSON]() + +```go +func (r *SessionResourceUpdateResponseUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionService]() + +SessionService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSessionService](<#NewSessionService>) method instead. + +```go +type SessionService struct { + Options []option.RequestOption + Events SessionEventService + Resources SessionResourceService + Threads SessionThreadService +} +``` + + +### func [NewSessionService]() + +```go +func NewSessionService(opts ...option.RequestOption) (r SessionService) +``` + +NewSessionService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SessionService\) [Archive]() + +```go +func (r *SessionService) Archive(ctx context.Context, sessionID string, body SessionArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsSession, err error) +``` + +Archive Session + + +### func \(\*SessionService\) [Delete]() + +```go +func (r *SessionService) Delete(ctx context.Context, sessionID string, body SessionDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeletedSession, err error) +``` + +Delete Session + + +### func \(\*SessionService\) [Get]() + +```go +func (r *SessionService) Get(ctx context.Context, sessionID string, query SessionGetParams, opts ...option.RequestOption) (res *ManagedAgentsSession, err error) +``` + +Get Session + + +### func \(\*SessionService\) [List]() + +```go +func (r *SessionService) List(ctx context.Context, params SessionListParams, opts ...option.RequestOption) (res *pagination.BidirectionalPageCursor[ManagedAgentsSession], err error) +``` + +List Sessions + + +### func \(\*SessionService\) [ListAutoPaging]() + +```go +func (r *SessionService) ListAutoPaging(ctx context.Context, params SessionListParams, opts ...option.RequestOption) *pagination.BidirectionalPageCursorAutoPager[ManagedAgentsSession] +``` + +List Sessions + + +### func \(\*SessionService\) [New]() + +```go +func (r *SessionService) New(ctx context.Context, params SessionNewParams, opts ...option.RequestOption) (res *ManagedAgentsSession, err error) +``` + +Create Session + + +### func \(\*SessionService\) [Update]() + +```go +func (r *SessionService) Update(ctx context.Context, sessionID string, params SessionUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsSession, err error) +``` + +Update Session + + +## type [SessionThreadArchiveParams]() + + + +```go +type SessionThreadArchiveParams struct { + SessionID string `path:"session_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionThreadEventListParams]() + + + +```go +type SessionThreadEventListParams struct { + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + SessionID string `path:"session_id" api:"required" json:"-"` + // Query parameter for limit + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Query parameter for page + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadEventListParams\) [URLQuery]() + +```go +func (r SessionThreadEventListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionThreadEventListParams](<#SessionThreadEventListParams>)'s query parameters as \`url.Values\`. + + +## type [SessionThreadEventService]() + +SessionThreadEventService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSessionThreadEventService](<#NewSessionThreadEventService>) method instead. + +```go +type SessionThreadEventService struct { + Options []option.RequestOption +} +``` + + +### func [NewSessionThreadEventService]() + +```go +func NewSessionThreadEventService(opts ...option.RequestOption) (r SessionThreadEventService) +``` + +NewSessionThreadEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SessionThreadEventService\) [List]() + +```go +func (r *SessionThreadEventService) List(ctx context.Context, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsSessionEventUnion], err error) +``` + +List Session Thread Events + + +### func \(\*SessionThreadEventService\) [ListAutoPaging]() + +```go +func (r *SessionThreadEventService) ListAutoPaging(ctx context.Context, threadID string, params SessionThreadEventListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsSessionEventUnion] +``` + +List Session Thread Events + + +### func \(\*SessionThreadEventService\) [StreamEvents]() + +```go +func (r *SessionThreadEventService) StreamEvents(ctx context.Context, threadID string, params SessionThreadEventStreamParams, opts ...option.RequestOption) (stream *ssestream.Stream[ManagedAgentsStreamSessionThreadEventsUnion]) +``` + +Stream Session Thread Events + + +## type [SessionThreadEventStreamParams]() + + + +```go +type SessionThreadEventStreamParams struct { + SessionID string `path:"session_id" api:"required" json:"-"` + // When set, this connection also receives streaming deltas (`event_start`, + // `event_delta`) while an event is being produced, before the event itself + // arrives. Deltas are best-effort; when the final event is produced it carries the + // complete content. A model request that ends early (an error or interrupt) + // produces no final event — its terminal `span.model_request_end` closes the + // preview. Accepts one or more event types to preview and may be repeated: + // `agent.message` streams `content_delta` fragments; `agent.thinking` is + // start-only — a signal that the agent has begun extended thinking, concluded by + // the `agent.thinking` event itself. Only previews of the requested event types + // are sent. + EventDeltas []ManagedAgentsDeltaType `query:"event_deltas,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadEventStreamParams\) [URLQuery]() + +```go +func (r SessionThreadEventStreamParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionThreadEventStreamParams](<#SessionThreadEventStreamParams>)'s query parameters as \`url.Values\`. + + +## type [SessionThreadGetParams]() + + + +```go +type SessionThreadGetParams struct { + SessionID string `path:"session_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SessionThreadListParams]() + + + +```go +type SessionThreadListParams struct { + // Maximum results per page. Defaults to 1000. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination cursor from a previous response's `next_page`. Forward-only. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionThreadListParams\) [URLQuery]() + +```go +func (r SessionThreadListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SessionThreadListParams](<#SessionThreadListParams>)'s query parameters as \`url.Values\`. + + +## type [SessionThreadService]() + +SessionThreadService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSessionThreadService](<#NewSessionThreadService>) method instead. + +```go +type SessionThreadService struct { + Options []option.RequestOption + Events SessionThreadEventService +} +``` + + +### func [NewSessionThreadService]() + +```go +func NewSessionThreadService(opts ...option.RequestOption) (r SessionThreadService) +``` + +NewSessionThreadService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SessionThreadService\) [Archive]() + +```go +func (r *SessionThreadService) Archive(ctx context.Context, threadID string, params SessionThreadArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsSessionThread, err error) +``` + +Archive Session Thread + + +### func \(\*SessionThreadService\) [Get]() + +```go +func (r *SessionThreadService) Get(ctx context.Context, threadID string, params SessionThreadGetParams, opts ...option.RequestOption) (res *ManagedAgentsSessionThread, err error) +``` + +Get Session Thread + + +### func \(\*SessionThreadService\) [List]() + +```go +func (r *SessionThreadService) List(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsSessionThread], err error) +``` + +List Session Threads + + +### func \(\*SessionThreadService\) [ListAutoPaging]() + +```go +func (r *SessionThreadService) ListAutoPaging(ctx context.Context, sessionID string, params SessionThreadListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsSessionThread] +``` + +List Session Threads + + +## type [SessionUpdateParams]() + + + +```go +type SessionUpdateParams struct { + EnvironmentVariables map[string]string `json:"environment_variables,omitzero"` + + // Human-readable session title. + Title param.Opt[string] `json:"title,omitzero"` + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omit the field to preserve. + Metadata map[string]any `json:"metadata,omitzero"` + // Mid-session agent configuration update. Only `tools` and `mcp_servers` are + // updatable. Full replacement: the provided array becomes the new value. To + // preserve existing entries, GET the session, modify the array, and POST it back. + Agent ManagedAgentsSessionAgentUpdateParam `json:"agent,omitzero"` + // A hard spend ceiling. The session stops issuing new model requests once the + // tracked list cost reaches `max_list_cost`. + Budget ManagedAgentsBudgetLimitParam `json:"budget,omitzero"` + // Vault IDs (`vlt_*`) to attach to the session. Not yet supported; requests + // setting this field are rejected. Reserved for future use. + VaultIDs []string `json:"vault_ids,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SessionUpdateParams\) [MarshalJSON]() + +```go +func (r SessionUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*SessionUpdateParams\) [UnmarshalJSON]() + +```go +func (r *SessionUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [SessionWorkData]() + +Work data for session work items. + +This resource type is used when work represents a session that needs to be executed in a self\-hosted environment. + +```go +type SessionWorkData struct { + // Session identifier (e.g., 'session\_...') + ID string `json:"id" api:"required"` + // Type of work data + Type constant.Session `json:"type" default:"session"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + ID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SessionWorkData\) [RawJSON]() + +```go +func (r SessionWorkData) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SessionWorkData\) [UnmarshalJSON]() + +```go +func (r *SessionWorkData) UnmarshalJSON(data []byte) error +``` + + + + +## type [Skill]() + + + +```go +type Skill struct { + Metadata map[string]string `json:"metadata"` + + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + ID string `json:"id" api:"required"` + // ISO 8601 timestamp of when the skill was created. + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Human-readable, single-line label for the Skill. Maximum 255 characters. Always + // set: derived from the SKILL.md frontmatter `name` when omitted at creation. Not + // unique. + DisplayName string `json:"display_title" api:"required"` + // ID of the newest Skill Version — what `latest` references resolve to. Always + // set: a Skill holds at least one version. + LatestVersionID string `json:"latest_version" api:"required"` + // Where the Skill comes from. + // + // Possible values: + // + // - `"custom"`: authored by the platform user; private to their workspace + // - `"qoder"`: published by Qoder; shared and read-only + // - `"qoder_example"`: Qoder-published sample Skill + // - `"plugin"`: resolved from an installed plugin + Source SkillSource `json:"source" api:"required"` + // Object type. + // + // For Skills, this is always `"skill"`. + Type constant.Skill `json:"type" default:"skill"` + // ISO 8601 timestamp of when the skill was last updated. + UpdatedAt time.Time `json:"updated_at" api:"required" format:"date-time"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Metadata respjson.Field + + ID respjson.Field + CreatedAt respjson.Field + DisplayName respjson.Field + LatestVersionID respjson.Field + Source respjson.Field + Type respjson.Field + UpdatedAt respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(Skill\) [RawJSON]() + +```go +func (r Skill) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*Skill\) [UnmarshalJSON]() + +```go +func (r *Skill) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillDeleteParams]() + + + +```go +type SkillDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SkillGetParams]() + + + +```go +type SkillGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SkillListParams]() + + + +```go +type SkillListParams struct { + DisplayName param.Opt[string] `query:"display_title,omitzero" json:"-"` + + Name param.Opt[string] `query:"name,omitzero" json:"-"` + + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Pagination token for fetching a specific page of results. + // + // Pass the value from a previous response's `next_page` field to get the next page + // of results. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Filter skills by source. + // + // If provided, only skills from the specified source will be returned: + // + // - `"custom"`: only return user-created skills + // - `"qoder"`: only return Qoder-created skills + Source param.Opt[string] `query:"source,omitzero" json:"-"` + // Number of results to return per page. + // + // Ranges from `1` to `1000`. Defaults to `20`. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillListParams\) [URLQuery]() + +```go +func (r SkillListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SkillListParams](<#SkillListParams>)'s query parameters as \`url.Values\`. + + +## type [SkillNewParams]() + + + +```go +type SkillNewParams struct { + Metadata map[string]string `json:"metadata,omitzero" api:"metadata"` + + // Files to upload for the skill. + // + // All files must be in the same top-level directory and must include a SKILL.md + // file at the root of that directory. + Files []io.Reader `json:"files,omitzero" api:"required" format:"binary"` + // Human-readable, single-line label for the Skill. Maximum 255 characters. Always + // set: derived from the SKILL.md frontmatter `name` when omitted at creation. Not + // unique. + DisplayName param.Opt[string] `json:"display_title,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillNewParams\) [MarshalMultipart]() + +```go +func (r SkillNewParams) MarshalMultipart() (data []byte, contentType string, err error) +``` + + + + +## type [SkillService]() + +SkillService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSkillService](<#NewSkillService>) method instead. + +```go +type SkillService struct { + Options []option.RequestOption + Versions SkillVersionService +} +``` + + +### func [NewSkillService]() + +```go +func NewSkillService(opts ...option.RequestOption) (r SkillService) +``` + +NewSkillService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SkillService\) [Delete]() + +```go +func (r *SkillService) Delete(ctx context.Context, skillID string, body SkillDeleteParams, opts ...option.RequestOption) (res *DeletedSkill, err error) +``` + +Delete Skill + + +### func \(\*SkillService\) [Get]() + +```go +func (r *SkillService) Get(ctx context.Context, skillID string, query SkillGetParams, opts ...option.RequestOption) (res *Skill, err error) +``` + +Get Skill + + +### func \(\*SkillService\) [List]() + +```go +func (r *SkillService) List(ctx context.Context, params SkillListParams, opts ...option.RequestOption) (res *pagination.PageCursor[Skill], err error) +``` + +List Skills + + +### func \(\*SkillService\) [ListAutoPaging]() + +```go +func (r *SkillService) ListAutoPaging(ctx context.Context, params SkillListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[Skill] +``` + +List Skills + + +### func \(\*SkillService\) [New]() + +```go +func (r *SkillService) New(ctx context.Context, params SkillNewParams, opts ...option.RequestOption) (res *Skill, err error) +``` + +Create Skill + + +## type [SkillSource]() + + + +```go +type SkillSource struct { + // Where the Skill comes from. + // + // Possible values: + // + // - `"custom"`: authored by the platform user; private to their workspace + // - `"qoder"`: published by Qoder; shared and read-only + // - `"qoder_example"`: Qoder-published sample Skill + // - `"plugin"`: resolved from an installed plugin + // + // Any of "custom", "qoder", "qoder_example", "plugin". + Type SkillSourceType `json:"type" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SkillSource\) [RawJSON]() + +```go +func (r SkillSource) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SkillSource\) [UnmarshalJSON]() + +```go +func (r *SkillSource) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillSourceType]() + +Where the Skill comes from. + +Possible values: + +\- \`"custom"\`: authored by the platform user; private to their workspace \- \`"qoder"\`: published by Qoder; shared and read\-only \- \`"qoder\_example"\`: Qoder\-published sample Skill \- \`"plugin"\`: resolved from an installed plugin + +```go +type SkillSourceType string +``` + + + +```go +const ( + SkillSourceTypeCustom SkillSourceType = "custom" + SkillSourceTypeQoder SkillSourceType = "qoder" + SkillSourceTypeQoderExample SkillSourceType = "qoder_example" + SkillSourceTypePlugin SkillSourceType = "plugin" +) +``` + + +## type [SkillVersion]() + + + +```go +type SkillVersion struct { + Version string `json:"version"` + Directory string `json:"directory"` + + // Unique identifier for this Skill Version. The id addresses the version in paths + // and pins it in references. + ID string `json:"id" api:"required"` + // ISO 8601 timestamp of when the skill was created. + CreatedAt time.Time `json:"created_at" api:"required" format:"date-time"` + // Description of the skill version. + // + // This is extracted from the SKILL.md file in the skill upload. + Description string `json:"description" api:"required"` + // The Skill's immutable kebab-case slug, set at creation from the first upload's + // SKILL.md frontmatter `name` (or its enclosing directory). Every later upload + // must resolve to the same value. Also the top-level directory of the Skill's + // mounted files and the base name of a downloaded archive. + Name string `json:"name" api:"required"` + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + SkillID string `json:"skill_id" api:"required"` + // Object type. + // + // For Skill Versions, this is always `"skill_version"`. + Type constant.SkillVersion `json:"type" default:"skill_version"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Version respjson.Field + Directory respjson.Field + + ID respjson.Field + CreatedAt respjson.Field + Description respjson.Field + Name respjson.Field + SkillID respjson.Field + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(SkillVersion\) [RawJSON]() + +```go +func (r SkillVersion) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*SkillVersion\) [UnmarshalJSON]() + +```go +func (r *SkillVersion) UnmarshalJSON(data []byte) error +``` + + + + +## type [SkillVersionDeleteParams]() + + + +```go +type SkillVersionDeleteParams struct { + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + SkillID string `path:"skill_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SkillVersionDownloadParams]() + + + +```go +type SkillVersionDownloadParams struct { + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + SkillID string `path:"skill_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SkillVersionGetParams]() + + + +```go +type SkillVersionGetParams struct { + // Unique identifier for the skill. + // + // The format and length of IDs may change over time. + SkillID string `path:"skill_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [SkillVersionListParams]() + + + +```go +type SkillVersionListParams struct { + // Number of results to return per page. + // + // Ranges from `1` to `1000`. Defaults to `20`. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Optionally set to the `next_page` token from the previous response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillVersionListParams\) [URLQuery]() + +```go +func (r SkillVersionListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [SkillVersionListParams](<#SkillVersionListParams>)'s query parameters as \`url.Values\`. + + +## type [SkillVersionNewParams]() + + + +```go +type SkillVersionNewParams struct { + // Files to upload for the skill. + // + // All files must be in the same top-level directory and must include a SKILL.md + // file at the root of that directory. + Files []io.Reader `json:"files,omitzero" api:"required" format:"binary"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(SkillVersionNewParams\) [MarshalMultipart]() + +```go +func (r SkillVersionNewParams) MarshalMultipart() (data []byte, contentType string, err error) +``` + + + + +## type [SkillVersionService]() + +SkillVersionService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewSkillVersionService](<#NewSkillVersionService>) method instead. + +```go +type SkillVersionService struct { + Options []option.RequestOption +} +``` + + +### func [NewSkillVersionService]() + +```go +func NewSkillVersionService(opts ...option.RequestOption) (r SkillVersionService) +``` + +NewSkillVersionService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*SkillVersionService\) [Delete]() + +```go +func (r *SkillVersionService) Delete(ctx context.Context, version string, params SkillVersionDeleteParams, opts ...option.RequestOption) (res *DeletedSkillVersion, err error) +``` + +Delete Skill Version + + +### func \(\*SkillVersionService\) [Download]() + +```go +func (r *SkillVersionService) Download(ctx context.Context, version string, params SkillVersionDownloadParams, opts ...option.RequestOption) (res *http.Response, err error) +``` + +Download a skill version's content as a zip archive. + + +### func \(\*SkillVersionService\) [Get]() + +```go +func (r *SkillVersionService) Get(ctx context.Context, version string, params SkillVersionGetParams, opts ...option.RequestOption) (res *SkillVersion, err error) +``` + +Get Skill Version + + +### func \(\*SkillVersionService\) [List]() + +```go +func (r *SkillVersionService) List(ctx context.Context, skillID string, params SkillVersionListParams, opts ...option.RequestOption) (res *pagination.PageCursor[SkillVersion], err error) +``` + +List Skill Versions + + +### func \(\*SkillVersionService\) [ListAutoPaging]() + +```go +func (r *SkillVersionService) ListAutoPaging(ctx context.Context, skillID string, params SkillVersionListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[SkillVersion] +``` + +List Skill Versions + + +### func \(\*SkillVersionService\) [New]() + +```go +func (r *SkillVersionService) New(ctx context.Context, skillID string, params SkillVersionNewParams, opts ...option.RequestOption) (res *SkillVersion, err error) +``` + +Create Skill Version + + +## type [TextBlockParam]() + +The properties Text, Type are required. + +```go +type TextBlockParam struct { + Text string `json:"text" api:"required"` + Citations []TextCitationParamUnion `json:"citations,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "text". + Type constant.Text `json:"type" default:"text"` + // contains filtered or unexported fields +} +``` + + +### func \(TextBlockParam\) [MarshalJSON]() + +```go +func (r TextBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextBlockParam\) [UnmarshalJSON]() + +```go +func (r *TextBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextCitationParamUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type TextCitationParamUnion struct { + OfCharLocation *CitationCharLocationParam `json:",omitzero,inline"` + OfPageLocation *CitationPageLocationParam `json:",omitzero,inline"` + OfContentBlockLocation *CitationContentBlockLocationParam `json:",omitzero,inline"` + OfWebSearchResultLocation *CitationWebSearchResultLocationParam `json:",omitzero,inline"` + OfSearchResultLocation *CitationSearchResultLocationParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(TextCitationParamUnion\) [GetCitedText]() + +```go +func (u TextCitationParamUnion) GetCitedText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetDocumentIndex]() + +```go +func (u TextCitationParamUnion) GetDocumentIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetDocumentTitle]() + +```go +func (u TextCitationParamUnion) GetDocumentTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetEncryptedIndex]() + +```go +func (u TextCitationParamUnion) GetEncryptedIndex() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetEndBlockIndex]() + +```go +func (u TextCitationParamUnion) GetEndBlockIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetEndCharIndex]() + +```go +func (u TextCitationParamUnion) GetEndCharIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetEndPageNumber]() + +```go +func (u TextCitationParamUnion) GetEndPageNumber() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetSearchResultIndex]() + +```go +func (u TextCitationParamUnion) GetSearchResultIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetSource]() + +```go +func (u TextCitationParamUnion) GetSource() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetStartBlockIndex]() + +```go +func (u TextCitationParamUnion) GetStartBlockIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetStartCharIndex]() + +```go +func (u TextCitationParamUnion) GetStartCharIndex() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetStartPageNumber]() + +```go +func (u TextCitationParamUnion) GetStartPageNumber() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetTitle]() + +```go +func (u TextCitationParamUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetType]() + +```go +func (u TextCitationParamUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [GetURL]() + +```go +func (u TextCitationParamUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextCitationParamUnion\) [MarshalJSON]() + +```go +func (u TextCitationParamUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*TextCitationParamUnion\) [UnmarshalJSON]() + +```go +func (u *TextCitationParamUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionCreateResultBlockParam]() + +The properties IsFileUpdate, Type are required. + +```go +type TextEditorCodeExecutionCreateResultBlockParam struct { + IsFileUpdate bool `json:"is_file_update" api:"required"` + // This field can be elided, and will marshal its zero value as + // "text_editor_code_execution_create_result". + Type constant.TextEditorCodeExecutionCreateResult `json:"type" default:"text_editor_code_execution_create_result"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionCreateResultBlockParam\) [MarshalJSON]() + +```go +func (r TextEditorCodeExecutionCreateResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextEditorCodeExecutionCreateResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *TextEditorCodeExecutionCreateResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionStrReplaceResultBlockParam]() + +The property Type is required. + +```go +type TextEditorCodeExecutionStrReplaceResultBlockParam struct { + NewLines param.Opt[int64] `json:"new_lines,omitzero"` + NewStart param.Opt[int64] `json:"new_start,omitzero"` + OldLines param.Opt[int64] `json:"old_lines,omitzero"` + OldStart param.Opt[int64] `json:"old_start,omitzero"` + Lines []string `json:"lines,omitzero"` + // This field can be elided, and will marshal its zero value as + // "text_editor_code_execution_str_replace_result". + Type constant.TextEditorCodeExecutionStrReplaceResult `json:"type" default:"text_editor_code_execution_str_replace_result"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionStrReplaceResultBlockParam\) [MarshalJSON]() + +```go +func (r TextEditorCodeExecutionStrReplaceResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextEditorCodeExecutionStrReplaceResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *TextEditorCodeExecutionStrReplaceResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type TextEditorCodeExecutionToolResultBlockParam struct { + Content TextEditorCodeExecutionToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as + // "text_editor_code_execution_tool_result". + Type constant.TextEditorCodeExecutionToolResult `json:"type" default:"text_editor_code_execution_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionToolResultBlockParam\) [MarshalJSON]() + +```go +func (r TextEditorCodeExecutionToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextEditorCodeExecutionToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *TextEditorCodeExecutionToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type TextEditorCodeExecutionToolResultBlockParamContentUnion struct { + OfRequestTextEditorCodeExecutionToolResultError *TextEditorCodeExecutionToolResultErrorParam `json:",omitzero,inline"` + OfRequestTextEditorCodeExecutionViewResultBlock *TextEditorCodeExecutionViewResultBlockParam `json:",omitzero,inline"` + OfRequestTextEditorCodeExecutionCreateResultBlock *TextEditorCodeExecutionCreateResultBlockParam `json:",omitzero,inline"` + OfRequestTextEditorCodeExecutionStrReplaceResultBlock *TextEditorCodeExecutionStrReplaceResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetContent]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetContent() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetErrorMessage]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetErrorMessage() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetFileType]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetFileType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetIsFileUpdate]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetIsFileUpdate() *bool +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetLines]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetLines() []string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetNewLines]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetNewLines() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetNewStart]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetNewStart() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetNumLines]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetNumLines() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetOldLines]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetOldLines() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetOldStart]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetOldStart() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetStartLine]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetStartLine() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetTotalLines]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetTotalLines() *int64 +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(TextEditorCodeExecutionToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u TextEditorCodeExecutionToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*TextEditorCodeExecutionToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *TextEditorCodeExecutionToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionToolResultErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type TextEditorCodeExecutionToolResultErrorParam struct { + // Any of "invalid_tool_input", "unavailable", "too_many_requests", + // "execution_time_exceeded", "file_not_found". + ErrorCode TextEditorCodeExecutionToolResultErrorParamErrorCode `json:"error_code,omitzero" api:"required"` + ErrorMessage param.Opt[string] `json:"error_message,omitzero"` + // This field can be elided, and will marshal its zero value as + // "text_editor_code_execution_tool_result_error". + Type constant.TextEditorCodeExecutionToolResultError `json:"type" default:"text_editor_code_execution_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionToolResultErrorParam\) [MarshalJSON]() + +```go +func (r TextEditorCodeExecutionToolResultErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextEditorCodeExecutionToolResultErrorParam\) [UnmarshalJSON]() + +```go +func (r *TextEditorCodeExecutionToolResultErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionToolResultErrorParamErrorCode]() + + + +```go +type TextEditorCodeExecutionToolResultErrorParamErrorCode string +``` + + +## type [TextEditorCodeExecutionViewResultBlockParam]() + +The properties Content, FileType, Type are required. + +```go +type TextEditorCodeExecutionViewResultBlockParam struct { + Content string `json:"content" api:"required"` + // Any of "text", "image", "pdf". + FileType TextEditorCodeExecutionViewResultBlockParamFileType `json:"file_type,omitzero" api:"required"` + NumLines param.Opt[int64] `json:"num_lines,omitzero"` + StartLine param.Opt[int64] `json:"start_line,omitzero"` + TotalLines param.Opt[int64] `json:"total_lines,omitzero"` + // This field can be elided, and will marshal its zero value as + // "text_editor_code_execution_view_result". + Type constant.TextEditorCodeExecutionViewResult `json:"type" default:"text_editor_code_execution_view_result"` + // contains filtered or unexported fields +} +``` + + +### func \(TextEditorCodeExecutionViewResultBlockParam\) [MarshalJSON]() + +```go +func (r TextEditorCodeExecutionViewResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*TextEditorCodeExecutionViewResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *TextEditorCodeExecutionViewResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [TextEditorCodeExecutionViewResultBlockParamFileType]() + + + +```go +type TextEditorCodeExecutionViewResultBlockParamFileType string +``` + + +## type [ThinkingBlockParam]() + +The properties Signature, Thinking, Type are required. + +```go +type ThinkingBlockParam struct { + // The `signature` value of this thinking block, exactly as returned by the API in + // a previous response. Used to verify that the block was generated by the model. + // + // Thinking blocks must be passed back unmodified and in their original order; a + // modified block results in a 400 `invalid_request_error`. + Signature string `json:"signature" api:"required"` + // The `thinking` text of this block as returned by the API. + Thinking string `json:"thinking" api:"required"` + // This field can be elided, and will marshal its zero value as "thinking". + Type constant.Thinking `json:"type" default:"thinking"` + // contains filtered or unexported fields +} +``` + + +### func \(ThinkingBlockParam\) [MarshalJSON]() + +```go +func (r ThinkingBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ThinkingBlockParam\) [UnmarshalJSON]() + +```go +func (r *ThinkingBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ThinkingCapability]() + +Thinking capability details. + +```go +type ThinkingCapability struct { + // Whether this capability is supported by the model. + Supported bool `json:"supported" api:"required"` + // Supported thinking type configurations. + Types ThinkingTypes `json:"types" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Supported respjson.Field + Types respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ThinkingCapability\) [RawJSON]() + +```go +func (r ThinkingCapability) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ThinkingCapability\) [UnmarshalJSON]() + +```go +func (r *ThinkingCapability) UnmarshalJSON(data []byte) error +``` + + + + +## type [ThinkingTypes]() + +Supported thinking type configurations. + +```go +type ThinkingTypes struct { + // Whether the model supports thinking with type 'adaptive' (auto). + Adaptive CapabilitySupport `json:"adaptive" api:"required"` + // Whether the model supports thinking with type 'enabled'. + Enabled CapabilitySupport `json:"enabled" api:"required"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Adaptive respjson.Field + Enabled respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(ThinkingTypes\) [RawJSON]() + +```go +func (r ThinkingTypes) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*ThinkingTypes\) [UnmarshalJSON]() + +```go +func (r *ThinkingTypes) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolChangeMCPToolReferenceParam]() + +Reference to a single MCP tool by its server and remote name — the same \`server\_name\`/\`name\` pair \`mcp\_tool\_use\` carries. + +The properties Name, ServerName, Type are required. + +```go +type ToolChangeMCPToolReferenceParam struct { + Name string `json:"name" api:"required"` + ServerName string `json:"server_name" api:"required"` + // This field can be elided, and will marshal its zero value as + // "mcp_tool_reference". + Type constant.MCPToolReference `json:"type" default:"mcp_tool_reference"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolChangeMCPToolReferenceParam\) [MarshalJSON]() + +```go +func (r ToolChangeMCPToolReferenceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolChangeMCPToolReferenceParam\) [UnmarshalJSON]() + +```go +func (r *ToolChangeMCPToolReferenceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolChangeMCPToolsetReferenceParam]() + +Reference to every tool in the named MCP server's toolset. + +The properties ServerName, Type are required. + +```go +type ToolChangeMCPToolsetReferenceParam struct { + ServerName string `json:"server_name" api:"required"` + // This field can be elided, and will marshal its zero value as + // "mcp_toolset_reference". + Type constant.MCPToolsetReference `json:"type" default:"mcp_toolset_reference"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolChangeMCPToolsetReferenceParam\) [MarshalJSON]() + +```go +func (r ToolChangeMCPToolsetReferenceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolChangeMCPToolsetReferenceParam\) [UnmarshalJSON]() + +```go +func (r *ToolChangeMCPToolsetReferenceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolChangeToolReferenceParam]() + +Reference to a single tool the caller declared directly in \`tools\[\]\`. Does not accept the composed \`\{server\}\_\{name\}\` form the server assigns to MCP\-resolved tools — use \`mcp\_tool\_reference\` or \`mcp\_toolset\_reference\` for those. + +The properties Name, Type are required. + +```go +type ToolChangeToolReferenceParam struct { + Name string `json:"name" api:"required"` + // This field can be elided, and will marshal its zero value as "tool_reference". + Type constant.ToolReference `json:"type" default:"tool_reference"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolChangeToolReferenceParam\) [MarshalJSON]() + +```go +func (r ToolChangeToolReferenceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolChangeToolReferenceParam\) [UnmarshalJSON]() + +```go +func (r *ToolChangeToolReferenceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolReferenceBlockParam]() + +Tool reference block that can be included in tool\_result content. + +The properties ToolName, Type are required. + +```go +type ToolReferenceBlockParam struct { + ToolName string `json:"tool_name" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as "tool_reference". + Type constant.ToolReference `json:"type" default:"tool_reference"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolReferenceBlockParam\) [MarshalJSON]() + +```go +func (r ToolReferenceBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolReferenceBlockParam\) [UnmarshalJSON]() + +```go +func (r *ToolReferenceBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolResultBlockParam]() + +The properties ToolUseID, Type are required. + +```go +type ToolResultBlockParam struct { + ToolUseID string `json:"tool_use_id" api:"required"` + // For a toolset member tool_result, the toolset family of the paired tool_use. + ToolsetName param.Opt[string] `json:"toolset_name,omitzero"` + IsError param.Opt[bool] `json:"is_error,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + Content []ToolResultBlockParamContentUnion `json:"content,omitzero"` + // This field can be elided, and will marshal its zero value as "tool_result". + Type constant.ToolResult `json:"type" default:"tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolResultBlockParam\) [MarshalJSON]() + +```go +func (r ToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *ToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ToolResultBlockParamContentUnion struct { + OfText *TextBlockParam `json:",omitzero,inline"` + OfImage *ImageBlockParam `json:",omitzero,inline"` + OfSearchResult *SearchResultBlockParam `json:",omitzero,inline"` + OfDocument *RequestDocumentBlockParam `json:",omitzero,inline"` + OfToolReference *ToolReferenceBlockParam `json:",omitzero,inline"` + OfBrowserState *BrowserStateBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolResultBlockParamContentUnion\) [GetCacheControl]() + +```go +func (u ToolResultBlockParamContentUnion) GetCacheControl() *CacheControlEphemeralParam +``` + +Returns a pointer to the underlying variant's CacheControl property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetCitations]() + +```go +func (u ToolResultBlockParamContentUnion) GetCitations() (res toolResultBlockParamContentUnionCitations) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ToolResultBlockParamContentUnion\) [GetContent]() + +```go +func (u ToolResultBlockParamContentUnion) GetContent() []TextBlockParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetContext]() + +```go +func (u ToolResultBlockParamContentUnion) GetContext() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetSource]() + +```go +func (u ToolResultBlockParamContentUnion) GetSource() (res toolResultBlockParamContentUnionSource) +``` + +Returns a subunion which exports methods to access subproperties + +Or use AsAny\(\) to get the underlying value + + +### func \(ToolResultBlockParamContentUnion\) [GetStateChanges]() + +```go +func (u ToolResultBlockParamContentUnion) GetStateChanges() []BrowserStateChangeUnionParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetTabs]() + +```go +func (u ToolResultBlockParamContentUnion) GetTabs() []BrowserStateTabEntryParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetText]() + +```go +func (u ToolResultBlockParamContentUnion) GetText() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetTitle]() + +```go +func (u ToolResultBlockParamContentUnion) GetTitle() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetToolName]() + +```go +func (u ToolResultBlockParamContentUnion) GetToolName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetTransformations]() + +```go +func (u ToolResultBlockParamContentUnion) GetTransformations() *ImageTransformationsParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u ToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u ToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *ToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolSearchToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type ToolSearchToolResultBlockParam struct { + Content ToolSearchToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // This field can be elided, and will marshal its zero value as + // "tool_search_tool_result". + Type constant.ToolSearchToolResult `json:"type" default:"tool_search_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolSearchToolResultBlockParam\) [MarshalJSON]() + +```go +func (r ToolSearchToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolSearchToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *ToolSearchToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolSearchToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ToolSearchToolResultBlockParamContentUnion struct { + OfRequestToolSearchToolResultError *ToolSearchToolResultErrorParam `json:",omitzero,inline"` + OfRequestToolSearchToolSearchResultBlock *ToolSearchToolSearchResultBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolSearchToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u ToolSearchToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolSearchToolResultBlockParamContentUnion\) [GetErrorMessage]() + +```go +func (u ToolSearchToolResultBlockParamContentUnion) GetErrorMessage() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolSearchToolResultBlockParamContentUnion\) [GetToolReferences]() + +```go +func (u ToolSearchToolResultBlockParamContentUnion) GetToolReferences() []ToolReferenceBlockParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolSearchToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u ToolSearchToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolSearchToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u ToolSearchToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolSearchToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *ToolSearchToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolSearchToolResultErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type ToolSearchToolResultErrorParam struct { + // Any of "invalid_tool_input", "unavailable", "too_many_requests", + // "execution_time_exceeded". + ErrorCode ToolSearchToolResultErrorParamErrorCode `json:"error_code,omitzero" api:"required"` + ErrorMessage param.Opt[string] `json:"error_message,omitzero"` + // This field can be elided, and will marshal its zero value as + // "tool_search_tool_result_error". + Type constant.ToolSearchToolResultError `json:"type" default:"tool_search_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolSearchToolResultErrorParam\) [MarshalJSON]() + +```go +func (r ToolSearchToolResultErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolSearchToolResultErrorParam\) [UnmarshalJSON]() + +```go +func (r *ToolSearchToolResultErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolSearchToolResultErrorParamErrorCode]() + + + +```go +type ToolSearchToolResultErrorParamErrorCode string +``` + + +## type [ToolSearchToolSearchResultBlockParam]() + +The properties ToolReferences, Type are required. + +```go +type ToolSearchToolSearchResultBlockParam struct { + ToolReferences []ToolReferenceBlockParam `json:"tool_references,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "tool_search_tool_search_result". + Type constant.ToolSearchToolSearchResult `json:"type" default:"tool_search_tool_search_result"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolSearchToolSearchResultBlockParam\) [MarshalJSON]() + +```go +func (r ToolSearchToolSearchResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolSearchToolSearchResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *ToolSearchToolSearchResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolUseBlockParam]() + +The properties ID, Input, Name, Type are required. + +```go +type ToolUseBlockParam struct { + ID string `json:"id" api:"required"` + Input any `json:"input,omitzero" api:"required"` + Name string `json:"name" api:"required"` + // For a toolset member tool_use, the toolset family this member belongs to. + ToolsetName param.Opt[string] `json:"toolset_name,omitzero"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // Tool invocation directly from the model. + Caller ToolUseBlockParamCallerUnion `json:"caller,omitzero"` + // This field can be elided, and will marshal its zero value as "tool_use". + Type constant.ToolUse `json:"type" default:"tool_use"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolUseBlockParam\) [MarshalJSON]() + +```go +func (r ToolUseBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*ToolUseBlockParam\) [UnmarshalJSON]() + +```go +func (r *ToolUseBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [ToolUseBlockParamCallerUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type ToolUseBlockParamCallerUnion struct { + OfDirect *DirectCallerParam `json:",omitzero,inline"` + OfCodeExecution20250825 *ServerToolCallerParam `json:",omitzero,inline"` + OfCodeExecution20260120 *ServerToolCaller20260120Param `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(ToolUseBlockParamCallerUnion\) [GetToolID]() + +```go +func (u ToolUseBlockParamCallerUnion) GetToolID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolUseBlockParamCallerUnion\) [GetType]() + +```go +func (u ToolUseBlockParamCallerUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(ToolUseBlockParamCallerUnion\) [MarshalJSON]() + +```go +func (u ToolUseBlockParamCallerUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*ToolUseBlockParamCallerUnion\) [UnmarshalJSON]() + +```go +func (u *ToolUseBlockParamCallerUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [URLImageSourceParam]() + +The properties Type, URL are required. + +```go +type URLImageSourceParam struct { + URL string `json:"url" api:"required"` + // This field can be elided, and will marshal its zero value as "url". + Type constant.URL `json:"type" default:"url"` + // contains filtered or unexported fields +} +``` + + +### func \(URLImageSourceParam\) [MarshalJSON]() + +```go +func (r URLImageSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*URLImageSourceParam\) [UnmarshalJSON]() + +```go +func (r *URLImageSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [URLPDFSourceParam]() + +The properties Type, URL are required. + +```go +type URLPDFSourceParam struct { + URL string `json:"url" api:"required"` + // This field can be elided, and will marshal its zero value as "url". + Type constant.URL `json:"type" default:"url"` + // contains filtered or unexported fields +} +``` + + +### func \(URLPDFSourceParam\) [MarshalJSON]() + +```go +func (r URLPDFSourceParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*URLPDFSourceParam\) [UnmarshalJSON]() + +```go +func (r *URLPDFSourceParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [UnrestrictedNetwork]() + +Unrestricted network access. + +```go +type UnrestrictedNetwork struct { + // Network policy type + Type constant.Unrestricted `json:"type" default:"unrestricted"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Type respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` +} +``` + + +### func \(UnrestrictedNetwork\) [RawJSON]() + +```go +func (r UnrestrictedNetwork) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(UnrestrictedNetwork\) [ToParam]() + +```go +func (r UnrestrictedNetwork) ToParam() UnrestrictedNetworkParam +``` + +ToParam converts this UnrestrictedNetwork to a UnrestrictedNetworkParam. + +Warning: the fields of the param type will not be present. ToParam should only be used at the last possible moment before sending a request. Test for this with UnrestrictedNetworkParam.Overrides\(\) + + +### func \(\*UnrestrictedNetwork\) [UnmarshalJSON]() + +```go +func (r *UnrestrictedNetwork) UnmarshalJSON(data []byte) error +``` + + + + +## type [UnrestrictedNetworkParam]() + +Unrestricted network access. + +This struct has a constant value, construct it with [NewUnrestrictedNetworkParam](<#NewUnrestrictedNetworkParam>). + +```go +type UnrestrictedNetworkParam struct { + // Network policy type + Type constant.Unrestricted `json:"type" default:"unrestricted"` + // contains filtered or unexported fields +} +``` + + +### func [NewUnrestrictedNetworkParam]() + +```go +func NewUnrestrictedNetworkParam() UnrestrictedNetworkParam +``` + + + + +### func \(UnrestrictedNetworkParam\) [MarshalJSON]() + +```go +func (r UnrestrictedNetworkParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*UnrestrictedNetworkParam\) [UnmarshalJSON]() + +```go +func (r *UnrestrictedNetworkParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultArchiveParams]() + + + +```go +type VaultArchiveParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultCredentialArchiveParams]() + + + +```go +type VaultCredentialArchiveParams struct { + VaultID string `path:"vault_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultCredentialDeleteParams]() + + + +```go +type VaultCredentialDeleteParams struct { + VaultID string `path:"vault_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultCredentialGetParams]() + + + +```go +type VaultCredentialGetParams struct { + VaultID string `path:"vault_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultCredentialListParams]() + + + +```go +type VaultCredentialListParams struct { + Name param.Opt[string] `query:"name,omitzero" json:"-"` + + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Whether to include archived credentials in the results. + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum number of credentials to return per page. Defaults to 20, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination token from a previous `list_credentials` response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialListParams\) [URLQuery]() + +```go +func (r VaultCredentialListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [VaultCredentialListParams](<#VaultCredentialListParams>)'s query parameters as \`url.Values\`. + + +## type [VaultCredentialMCPOAuthValidateParams]() + + + +```go +type VaultCredentialMCPOAuthValidateParams struct { + VaultID string `path:"vault_id" api:"required" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultCredentialNewParams]() + + + +```go +type VaultCredentialNewParams struct { + // Authentication details for creating a credential. + Auth VaultCredentialNewParamsAuthUnion `json:"auth,omitzero" api:"required"` + // Human-readable name for the credential. Up to 255 characters. + DisplayName param.Opt[string] `json:"display_name,omitzero"` + // Arbitrary key-value metadata to attach to the credential. Maximum 16 pairs, keys + // up to 64 chars, values up to 512 chars. + Metadata map[string]string `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialNewParams\) [MarshalJSON]() + +```go +func (r VaultCredentialNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*VaultCredentialNewParams\) [UnmarshalJSON]() + +```go +func (r *VaultCredentialNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialNewParamsAuthUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type VaultCredentialNewParamsAuthUnion struct { + OfMCPOAuth *ManagedAgentsMCPOAuthCreateParams `json:",omitzero,inline"` + OfStaticBearer *ManagedAgentsStaticBearerCreateParams `json:",omitzero,inline"` + OfEnvironmentVariable *ManagedAgentsEnvironmentVariableCreateParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetAccessToken]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetAccessToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetExpiresAt]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetExpiresAt() *time.Time +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetInjectionLocation]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetInjectionLocation() *ManagedAgentsInjectionLocationParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetMCPServerURL]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetMCPServerURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetNetworking]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetNetworking() *ManagedAgentsCredentialNetworkingParamsUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetRefresh]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetRefresh() *ManagedAgentsMCPOAuthRefreshParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetSecretName]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetSecretName() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetSecretValue]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetSecretValue() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetToken]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [GetType]() + +```go +func (u VaultCredentialNewParamsAuthUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialNewParamsAuthUnion\) [MarshalJSON]() + +```go +func (u VaultCredentialNewParamsAuthUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*VaultCredentialNewParamsAuthUnion\) [UnmarshalJSON]() + +```go +func (u *VaultCredentialNewParamsAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialService]() + +VaultCredentialService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewVaultCredentialService](<#NewVaultCredentialService>) method instead. + +```go +type VaultCredentialService struct { + Options []option.RequestOption +} +``` + + +### func [NewVaultCredentialService]() + +```go +func NewVaultCredentialService(opts ...option.RequestOption) (r VaultCredentialService) +``` + +NewVaultCredentialService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*VaultCredentialService\) [Archive]() + +```go +func (r *VaultCredentialService) Archive(ctx context.Context, credentialID string, params VaultCredentialArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsCredential, err error) +``` + +Archive Credential + + +### func \(\*VaultCredentialService\) [Delete]() + +```go +func (r *VaultCredentialService) Delete(ctx context.Context, credentialID string, params VaultCredentialDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeletedCredential, err error) +``` + +Delete Credential + + +### func \(\*VaultCredentialService\) [Get]() + +```go +func (r *VaultCredentialService) Get(ctx context.Context, credentialID string, params VaultCredentialGetParams, opts ...option.RequestOption) (res *ManagedAgentsCredential, err error) +``` + +Get Credential + + +### func \(\*VaultCredentialService\) [List]() + +```go +func (r *VaultCredentialService) List(ctx context.Context, vaultID string, params VaultCredentialListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsCredential], err error) +``` + +List Credentials + + +### func \(\*VaultCredentialService\) [ListAutoPaging]() + +```go +func (r *VaultCredentialService) ListAutoPaging(ctx context.Context, vaultID string, params VaultCredentialListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsCredential] +``` + +List Credentials + + +### func \(\*VaultCredentialService\) [MCPOAuthValidate]() + +```go +func (r *VaultCredentialService) MCPOAuthValidate(ctx context.Context, credentialID string, params VaultCredentialMCPOAuthValidateParams, opts ...option.RequestOption) (res *ManagedAgentsCredentialValidation, err error) +``` + +Validate Credential + + +### func \(\*VaultCredentialService\) [New]() + +```go +func (r *VaultCredentialService) New(ctx context.Context, vaultID string, params VaultCredentialNewParams, opts ...option.RequestOption) (res *ManagedAgentsCredential, err error) +``` + +Create Credential + + +### func \(\*VaultCredentialService\) [Update]() + +```go +func (r *VaultCredentialService) Update(ctx context.Context, credentialID string, params VaultCredentialUpdateParams, opts ...option.RequestOption) (res *ManagedAgentsCredential, err error) +``` + +Update Credential + + +## type [VaultCredentialUpdateParams]() + + + +```go +type VaultCredentialUpdateParams struct { + VaultID string `path:"vault_id" api:"required" json:"-"` + // Deprecated: Qoder does not support updating credential display names. + // Leave this field omitted; setting it returns an error before sending a request. + DisplayName param.Opt[string] `json:"display_name,omitzero"` + // Metadata patch. Set a key to a string to upsert it, or to null to delete it. + // Omitted keys are preserved. + Metadata map[string]any `json:"metadata,omitzero"` + // Updated authentication details for a credential. + Auth VaultCredentialUpdateParamsAuthUnion `json:"auth,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialUpdateParams\) [MarshalJSON]() + +```go +func (r VaultCredentialUpdateParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*VaultCredentialUpdateParams\) [UnmarshalJSON]() + +```go +func (r *VaultCredentialUpdateParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultCredentialUpdateParamsAuthUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type VaultCredentialUpdateParamsAuthUnion struct { + OfMCPOAuth *ManagedAgentsMCPOAuthUpdateParams `json:",omitzero,inline"` + OfStaticBearer *ManagedAgentsStaticBearerUpdateParams `json:",omitzero,inline"` + OfEnvironmentVariable *ManagedAgentsEnvironmentVariableUpdateParams `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetAccessToken]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetAccessToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetExpiresAt]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetExpiresAt() *time.Time +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetInjectionLocation]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetInjectionLocation() *ManagedAgentsInjectionLocationUpdateParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetNetworking]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetNetworking() *ManagedAgentsCredentialNetworkingParamsUnion +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetRefresh]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetRefresh() *ManagedAgentsMCPOAuthRefreshUpdateParams +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetSecretValue]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetSecretValue() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetToken]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetToken() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [GetType]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(VaultCredentialUpdateParamsAuthUnion\) [MarshalJSON]() + +```go +func (u VaultCredentialUpdateParamsAuthUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*VaultCredentialUpdateParamsAuthUnion\) [UnmarshalJSON]() + +```go +func (u *VaultCredentialUpdateParamsAuthUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultDeleteParams]() + + + +```go +type VaultDeleteParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultGetParams]() + + + +```go +type VaultGetParams struct { + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +## type [VaultListParams]() + + + +```go +type VaultListParams struct { + Name param.Opt[string] `query:"name,omitzero" json:"-"` + + BeforeID param.Opt[string] `query:"before_id,omitzero" json:"-"` + AfterID param.Opt[string] `query:"after_id,omitzero" json:"-"` + + // Whether to include archived vaults in the results. + IncludeArchived param.Opt[bool] `query:"include_archived,omitzero" json:"-"` + // Maximum number of vaults to return per page. Defaults to 20, maximum 100. + Limit param.Opt[int64] `query:"limit,omitzero" json:"-"` + // Opaque pagination token from a previous `list_vaults` response. + Page param.Opt[string] `query:"page,omitzero" json:"-"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultListParams\) [URLQuery]() + +```go +func (r VaultListParams) URLQuery() (v url.Values, err error) +``` + +URLQuery serializes [VaultListParams](<#VaultListParams>)'s query parameters as \`url.Values\`. + + +## type [VaultNewParams]() + + + +```go +type VaultNewParams struct { + // Human-readable name for the vault. 1-255 characters. + DisplayName string `json:"display_name" api:"required"` + // Arbitrary key-value metadata to attach to the vault. Maximum 16 pairs, keys up + // to 64 chars, values up to 512 chars. + Metadata map[string]string `json:"metadata,omitzero"` + // Optional header to specify the beta version(s) you want to use. + Betas []QoderBeta `header:"x-qoder-beta,omitzero" json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(VaultNewParams\) [MarshalJSON]() + +```go +func (r VaultNewParams) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*VaultNewParams\) [UnmarshalJSON]() + +```go +func (r *VaultNewParams) UnmarshalJSON(data []byte) error +``` + + + + +## type [VaultService]() + +VaultService contains methods and other services that help with interacting with the Qoder Cloud Agents API. + +Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewVaultService](<#NewVaultService>) method instead. + +```go +type VaultService struct { + Options []option.RequestOption + Credentials VaultCredentialService +} +``` + + +### func [NewVaultService]() + +```go +func NewVaultService(opts ...option.RequestOption) (r VaultService) +``` + +NewVaultService generates a new service that applies the given options to each request. These options are applied after the parent client's options \(if there is one\), and before any request\-specific options. + + +### func \(\*VaultService\) [Archive]() + +```go +func (r *VaultService) Archive(ctx context.Context, vaultID string, body VaultArchiveParams, opts ...option.RequestOption) (res *ManagedAgentsVault, err error) +``` + +Archive Vault + + +### func \(\*VaultService\) [Delete]() + +```go +func (r *VaultService) Delete(ctx context.Context, vaultID string, body VaultDeleteParams, opts ...option.RequestOption) (res *ManagedAgentsDeletedVault, err error) +``` + +Delete Vault + + +### func \(\*VaultService\) [Get]() + +```go +func (r *VaultService) Get(ctx context.Context, vaultID string, query VaultGetParams, opts ...option.RequestOption) (res *ManagedAgentsVault, err error) +``` + +Get Vault + + +### func \(\*VaultService\) [List]() + +```go +func (r *VaultService) List(ctx context.Context, params VaultListParams, opts ...option.RequestOption) (res *pagination.PageCursor[ManagedAgentsVault], err error) +``` + +List Vaults + + +### func \(\*VaultService\) [ListAutoPaging]() + +```go +func (r *VaultService) ListAutoPaging(ctx context.Context, params VaultListParams, opts ...option.RequestOption) *pagination.PageCursorAutoPager[ManagedAgentsVault] +``` + +List Vaults + + +### func \(\*VaultService\) [New]() + +```go +func (r *VaultService) New(ctx context.Context, params VaultNewParams, opts ...option.RequestOption) (res *ManagedAgentsVault, err error) +``` + +Create Vault + + +## type [WebFetchBlockParam]() + +The properties Content, Type, URL are required. + +```go +type WebFetchBlockParam struct { + Content RequestDocumentBlockParam `json:"content,omitzero" api:"required"` + // Fetched content URL + URL string `json:"url" api:"required"` + // ISO 8601 timestamp when the content was retrieved + RetrievedAt param.Opt[string] `json:"retrieved_at,omitzero"` + // This field can be elided, and will marshal its zero value as "web_fetch_result". + Type constant.WebFetchResult `json:"type" default:"web_fetch_result"` + // contains filtered or unexported fields +} +``` + + +### func \(WebFetchBlockParam\) [MarshalJSON]() + +```go +func (r WebFetchBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebFetchBlockParam\) [UnmarshalJSON]() + +```go +func (r *WebFetchBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebFetchToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type WebFetchToolResultBlockParam struct { + Content WebFetchToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // Tool invocation directly from the model. + Caller WebFetchToolResultBlockParamCallerUnion `json:"caller,omitzero"` + // This field can be elided, and will marshal its zero value as + // "web_fetch_tool_result". + Type constant.WebFetchToolResult `json:"type" default:"web_fetch_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(WebFetchToolResultBlockParam\) [MarshalJSON]() + +```go +func (r WebFetchToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebFetchToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *WebFetchToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebFetchToolResultBlockParamCallerUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type WebFetchToolResultBlockParamCallerUnion struct { + OfDirect *DirectCallerParam `json:",omitzero,inline"` + OfCodeExecution20250825 *ServerToolCallerParam `json:",omitzero,inline"` + OfCodeExecution20260120 *ServerToolCaller20260120Param `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(WebFetchToolResultBlockParamCallerUnion\) [GetToolID]() + +```go +func (u WebFetchToolResultBlockParamCallerUnion) GetToolID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamCallerUnion\) [GetType]() + +```go +func (u WebFetchToolResultBlockParamCallerUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamCallerUnion\) [MarshalJSON]() + +```go +func (u WebFetchToolResultBlockParamCallerUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*WebFetchToolResultBlockParamCallerUnion\) [UnmarshalJSON]() + +```go +func (u *WebFetchToolResultBlockParamCallerUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebFetchToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type WebFetchToolResultBlockParamContentUnion struct { + OfRequestWebFetchToolResultError *WebFetchToolResultErrorBlockParam `json:",omitzero,inline"` + OfRequestWebFetchResultBlock *WebFetchBlockParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(WebFetchToolResultBlockParamContentUnion\) [GetContent]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) GetContent() *RequestDocumentBlockParam +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamContentUnion\) [GetErrorCode]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) GetErrorCode() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamContentUnion\) [GetRetrievedAt]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) GetRetrievedAt() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamContentUnion\) [GetType]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamContentUnion\) [GetURL]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) GetURL() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebFetchToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u WebFetchToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*WebFetchToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *WebFetchToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebFetchToolResultErrorBlockParam]() + +The properties ErrorCode, Type are required. + +```go +type WebFetchToolResultErrorBlockParam struct { + // Any of "invalid_tool_input", "url_too_long", "url_not_allowed", + // "url_not_in_prior_context", "url_not_accessible", "unsupported_content_type", + // "too_many_requests", "max_uses_exceeded", "unavailable". + ErrorCode WebFetchToolResultErrorCode `json:"error_code,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "web_fetch_tool_result_error". + Type constant.WebFetchToolResultError `json:"type" default:"web_fetch_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(WebFetchToolResultErrorBlockParam\) [MarshalJSON]() + +```go +func (r WebFetchToolResultErrorBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebFetchToolResultErrorBlockParam\) [UnmarshalJSON]() + +```go +func (r *WebFetchToolResultErrorBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebFetchToolResultErrorCode]() + + + +```go +type WebFetchToolResultErrorCode string +``` + + +## type [WebSearchResultBlockParam]() + +The properties EncryptedContent, Title, Type, URL are required. + +```go +type WebSearchResultBlockParam struct { + EncryptedContent string `json:"encrypted_content" api:"required"` + Title string `json:"title" api:"required"` + URL string `json:"url" api:"required"` + PageAge param.Opt[string] `json:"page_age,omitzero"` + // This field can be elided, and will marshal its zero value as + // "web_search_result". + Type constant.WebSearchResult `json:"type" default:"web_search_result"` + // contains filtered or unexported fields +} +``` + + +### func \(WebSearchResultBlockParam\) [MarshalJSON]() + +```go +func (r WebSearchResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebSearchResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *WebSearchResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebSearchToolRequestErrorParam]() + +The properties ErrorCode, Type are required. + +```go +type WebSearchToolRequestErrorParam struct { + // Any of "invalid_tool_input", "unavailable", "max_uses_exceeded", + // "too_many_requests", "query_too_long", "request_too_large". + ErrorCode WebSearchToolResultErrorCode `json:"error_code,omitzero" api:"required"` + // This field can be elided, and will marshal its zero value as + // "web_search_tool_result_error". + Type constant.WebSearchToolResultError `json:"type" default:"web_search_tool_result_error"` + // contains filtered or unexported fields +} +``` + + +### func \(WebSearchToolRequestErrorParam\) [MarshalJSON]() + +```go +func (r WebSearchToolRequestErrorParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebSearchToolRequestErrorParam\) [UnmarshalJSON]() + +```go +func (r *WebSearchToolRequestErrorParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebSearchToolResultBlockParam]() + +The properties Content, ToolUseID, Type are required. + +```go +type WebSearchToolResultBlockParam struct { + Content WebSearchToolResultBlockParamContentUnion `json:"content,omitzero" api:"required"` + ToolUseID string `json:"tool_use_id" api:"required"` + // Create a cache control breakpoint at this content block. + CacheControl CacheControlEphemeralParam `json:"cache_control,omitzero"` + // Tool invocation directly from the model. + Caller WebSearchToolResultBlockParamCallerUnion `json:"caller,omitzero"` + // This field can be elided, and will marshal its zero value as + // "web_search_tool_result". + Type constant.WebSearchToolResult `json:"type" default:"web_search_tool_result"` + // contains filtered or unexported fields +} +``` + + +### func \(WebSearchToolResultBlockParam\) [MarshalJSON]() + +```go +func (r WebSearchToolResultBlockParam) MarshalJSON() (data []byte, err error) +``` + + + + +### func \(\*WebSearchToolResultBlockParam\) [UnmarshalJSON]() + +```go +func (r *WebSearchToolResultBlockParam) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebSearchToolResultBlockParamCallerUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type WebSearchToolResultBlockParamCallerUnion struct { + OfDirect *DirectCallerParam `json:",omitzero,inline"` + OfCodeExecution20250825 *ServerToolCallerParam `json:",omitzero,inline"` + OfCodeExecution20260120 *ServerToolCaller20260120Param `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(WebSearchToolResultBlockParamCallerUnion\) [GetToolID]() + +```go +func (u WebSearchToolResultBlockParamCallerUnion) GetToolID() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebSearchToolResultBlockParamCallerUnion\) [GetType]() + +```go +func (u WebSearchToolResultBlockParamCallerUnion) GetType() *string +``` + +Returns a pointer to the underlying variant's property, if present. + + +### func \(WebSearchToolResultBlockParamCallerUnion\) [MarshalJSON]() + +```go +func (u WebSearchToolResultBlockParamCallerUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*WebSearchToolResultBlockParamCallerUnion\) [UnmarshalJSON]() + +```go +func (u *WebSearchToolResultBlockParamCallerUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebSearchToolResultBlockParamContentUnion]() + +Only one field can be non\-zero. + +Use \[param.IsOmitted\] to confirm if a field is set. + +```go +type WebSearchToolResultBlockParamContentUnion struct { + OfResultBlock []WebSearchResultBlockParam `json:",omitzero,inline"` + OfError *WebSearchToolRequestErrorParam `json:",omitzero,inline"` + // contains filtered or unexported fields +} +``` + + +### func \(WebSearchToolResultBlockParamContentUnion\) [MarshalJSON]() + +```go +func (u WebSearchToolResultBlockParamContentUnion) MarshalJSON() ([]byte, error) +``` + + + + +### func \(\*WebSearchToolResultBlockParamContentUnion\) [UnmarshalJSON]() + +```go +func (u *WebSearchToolResultBlockParamContentUnion) UnmarshalJSON(data []byte) error +``` + + + + +## type [WebSearchToolResultErrorCode]() + + + +```go +type WebSearchToolResultErrorCode string +``` + +# convention + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention" +``` + +Package convention implements Qoder authentication, transport, request options, errors and download conventions. Its param, pagination, respjson and ssestream subpackages provide the shared data structures for Managed and Forward modes. + +## Index + +- [func DownloadAPITo\(ctx context.Context, client \*http.Client, baseURL string, path string, destination io.Writer\) error](<#DownloadAPITo>) +- [func DownloadBytes\(ctx context.Context, client \*http.Client, url string\) \(\[\]byte, error\)](<#DownloadBytes>) +- [func DownloadFile\(ctx context.Context, path string, opts ...RequestOption\) \(\*http.Response, error\)](<#DownloadFile>) +- [func DownloadTo\(ctx context.Context, client \*http.Client, url string, destination io.Writer\) error](<#DownloadTo>) +- [func ExecuteNewRequest\(ctx context.Context, method string, u string, body any, dst any, opts ...RequestOption\) error](<#ExecuteNewRequest>) +- [func NewCredentialTransport\(credential Credential, next http.RoundTripper\) http.RoundTripper](<#NewCredentialTransport>) +- [type APIResponse](<#APIResponse>) + - [func NewAPIResponse\(r \*http.Response\) \*APIResponse](<#NewAPIResponse>) + - [func NewAPIResponseWithError\(errorMessage string\) \*APIResponse](<#NewAPIResponseWithError>) +- [type Credential](<#Credential>) +- [type Error](<#Error>) +- [type FileContentLink](<#FileContentLink>) +- [type HTTPDoer](<#HTTPDoer>) +- [type Metadata](<#Metadata>) +- [type NoCredentialsError](<#NoCredentialsError>) + - [func \(NoCredentialsError\) Error\(\) string](<#NoCredentialsError.Error>) +- [type PATCredential](<#PATCredential>) + - [func NewPATCredential\(token string\) \(\*PATCredential, error\)](<#NewPATCredential>) + - [func PATCredentialFromEnv\(name string\) \(\*PATCredential, error\)](<#PATCredentialFromEnv>) + - [func \(c \*PATCredential\) Token\(context.Context\) \(string, error\)](<#PATCredential.Token>) +- [type PreRequestOptionFunc](<#PreRequestOptionFunc>) + - [func \(s PreRequestOptionFunc\) Apply\(r \*RequestConfig\) error](<#PreRequestOptionFunc.Apply>) +- [type RequestConfig](<#RequestConfig>) + - [func NewRequestConfig\(ctx context.Context, method string, u string, body any, dst any, opts ...RequestOption\) \(\*RequestConfig, error\)](<#NewRequestConfig>) + - [func PreRequestOptions\(opts ...RequestOption\) \(RequestConfig, error\)](<#PreRequestOptions>) + - [func \(cfg \*RequestConfig\) Apply\(opts ...RequestOption\) error](<#RequestConfig.Apply>) + - [func \(cfg \*RequestConfig\) Clone\(ctx context.Context\) \*RequestConfig](<#RequestConfig.Clone>) + - [func \(cfg \*RequestConfig\) Execute\(\) \(err error\)](<#RequestConfig.Execute>) +- [type RequestOption](<#RequestOption>) + - [func RequireCredential\(\) RequestOption](<#RequireCredential>) + - [func WithDefaultBaseURL\(baseURL string\) RequestOption](<#WithDefaultBaseURL>) +- [type RequestOptionFunc](<#RequestOptionFunc>) + - [func \(s RequestOptionFunc\) Apply\(r \*RequestConfig\) error](<#RequestOptionFunc.Apply>) +- [type UploadFile](<#UploadFile>) + - [func \(f UploadFile\) ContentType\(\) string](<#UploadFile.ContentType>) + - [func \(f UploadFile\) Filename\(\) string](<#UploadFile.Filename>) + + + +## func [DownloadAPITo]() + +```go +func DownloadAPITo(ctx context.Context, client *http.Client, baseURL string, path string, destination io.Writer) error +``` + + + + +## func [DownloadBytes]() + +```go +func DownloadBytes(ctx context.Context, client *http.Client, url string) ([]byte, error) +``` + + + + +## func [DownloadFile]() + +```go +func DownloadFile(ctx context.Context, path string, opts ...RequestOption) (*http.Response, error) +``` + +DownloadFile obtains a temporary link and returns its streaming HTTP response. The caller closes Body. API authorization and middleware are never forwarded to the storage host; the signed URL provides the storage authorization. + + +## func [DownloadTo]() + +```go +func DownloadTo(ctx context.Context, client *http.Client, url string, destination io.Writer) error +``` + + + + +## func [ExecuteNewRequest]() + +```go +func ExecuteNewRequest(ctx context.Context, method string, u string, body any, dst any, opts ...RequestOption) error +``` + + + + +## func [NewCredentialTransport]() + +```go +func NewCredentialTransport(credential Credential, next http.RoundTripper) http.RoundTripper +``` + +NewCredentialTransport adds Bearer authentication without mutating the caller's request. An explicit Authorization header takes precedence. Tokens are fetched per attempt. + + +## type [APIResponse]() + +APIResponse stores the API response returned by the server. + +```go +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} +``` + + +### func [NewAPIResponse]() + +```go +func NewAPIResponse(r *http.Response) *APIResponse +``` + +NewAPIResponse returns a new APIResponse object. + + +### func [NewAPIResponseWithError]() + +```go +func NewAPIResponseWithError(errorMessage string) *APIResponse +``` + +NewAPIResponseWithError returns a new APIResponse object with the provided error message. + + +## type [Credential]() + + + +```go +type Credential interface { + Token(context.Context) (string, error) +} +``` + + +## type [Error]() + + + +```go +type Error = apierror.Error +``` + + +## type [FileContentLink]() + +FileContentLink is Qoder's temporary download grant. + +```go +type FileContentLink struct { + URL string `json:"url"` + ExpiresAt time.Time `json:"expires_at"` +} +``` + + +## type [HTTPDoer]() + +This interface is primarily used to describe an \[\*http.Client\], but also supports custom HTTP implementations. + +```go +type HTTPDoer interface { + Do(req *http.Request) (*http.Response, error) +} +``` + + +## type [Metadata]() + + + +```go +type Metadata = map[string]string +``` + + +## type [NoCredentialsError]() + +NoCredentialsError is returned before a request is sent when no authentication could be resolved. It mirrors the request\-time validation in the Python and TypeScript SDKs and is matchable with errors.As. + +```go +type NoCredentialsError struct{} +``` + + +### func \(NoCredentialsError\) [Error]() + +```go +func (NoCredentialsError) Error() string +``` + + + + +## type [PATCredential]() + + + +```go +type PATCredential struct { + // contains filtered or unexported fields +} +``` + + +### func [NewPATCredential]() + +```go +func NewPATCredential(token string) (*PATCredential, error) +``` + + + + +### func [PATCredentialFromEnv]() + +```go +func PATCredentialFromEnv(name string) (*PATCredential, error) +``` + + + + +### func \(\*PATCredential\) [Token]() + +```go +func (c *PATCredential) Token(context.Context) (string, error) +``` + + + + +## type [PreRequestOptionFunc]() + + + +```go +type PreRequestOptionFunc func(*RequestConfig) error +``` + + +### func \(PreRequestOptionFunc\) [Apply]() + +```go +func (s PreRequestOptionFunc) Apply(r *RequestConfig) error +``` + + + + +## type [RequestConfig]() + +RequestConfig represents all the state related to one request. + +Editing the variables inside RequestConfig directly is unstable api. Prefer composing the RequestOption instead if possible. + +```go +type RequestConfig struct { + MaxRetries int + RequestTimeout time.Duration + Context context.Context + Request *http.Request + BaseURL *url.URL + // DefaultBaseURL will be used if BaseURL is not explicitly overridden using + // WithBaseURL. + DefaultBaseURL *url.URL + CustomHTTPDoer HTTPDoer + HTTPClient *http.Client + Middlewares []middleware + APIKey string + AuthToken string + WebhookKey string + // If ResponseBodyInto not nil, then we will attempt to deserialize into + // ResponseBodyInto. If Destination is a []byte, then it will return the body as + // is. + ResponseBodyInto any + // ResponseInto copies the \*http.Response of the corresponding request into the + // given address + ResponseInto **http.Response + Body io.Reader +} +``` + + +### func [NewRequestConfig]() + +```go +func NewRequestConfig(ctx context.Context, method string, u string, body any, dst any, opts ...RequestOption) (*RequestConfig, error) +``` + + + + +### func [PreRequestOptions]() + +```go +func PreRequestOptions(opts ...RequestOption) (RequestConfig, error) +``` + +PreRequestOptions is used to collect all the options which need to be known before a call to \[RequestConfig.ExecuteNewRequest\], such as path parameters or global defaults. PreRequestOptions will return a [RequestConfig](<#RequestConfig>) with the options applied. + +Only request option functions of type [PreRequestOptionFunc](<#PreRequestOptionFunc>) are applied. + + +### func \(\*RequestConfig\) [Apply]() + +```go +func (cfg *RequestConfig) Apply(opts ...RequestOption) error +``` + + + + +### func \(\*RequestConfig\) [Clone]() + +```go +func (cfg *RequestConfig) Clone(ctx context.Context) *RequestConfig +``` + + + + +### func \(\*RequestConfig\) [Execute]() + +```go +func (cfg *RequestConfig) Execute() (err error) +``` + + + + +## type [RequestOption]() + + + +```go +type RequestOption interface { + Apply(*RequestConfig) error +} +``` + + +### func [RequireCredential]() + +```go +func RequireCredential() RequestOption +``` + +RequireCredential fails a request that reaches the wire without any authentication. It is a defense\-in\-depth footgun\-check on top of the server\-side gateway; if the caller installed a credential via option.WithPAT / option.WithCredential / a custom middleware, or set the Authorization header directly, the sentinel steps aside. + + +### func [WithDefaultBaseURL]() + +```go +func WithDefaultBaseURL(baseURL string) RequestOption +``` + +WithDefaultBaseURL returns a RequestOption that sets the client's default Base URL. This is always overridden by setting a base URL with WithBaseURL. WithBaseURL should be used instead of WithDefaultBaseURL except in internal code. + + +## type [RequestOptionFunc]() + + + +```go +type RequestOptionFunc func(*RequestConfig) error +``` + + +### func \(RequestOptionFunc\) [Apply]() + +```go +func (s RequestOptionFunc) Apply(r *RequestConfig) error +``` + + + + +## type [UploadFile]() + +UploadFile supplies a filename \(including relative paths for skill file trees\) and media type to the multipart serializer. Reader is consumed by the call. + +```go +type UploadFile struct { + io.Reader + Name string + MediaType string +} +``` + + +### func \(UploadFile\) [ContentType]() + +```go +func (f UploadFile) ContentType() string +``` + + + + +### func \(UploadFile\) [Filename]() + +```go +func (f UploadFile) Filename() string +``` + + + +# apierror + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apierror" +``` + +Package apierror describes Qoder's standard error envelope. + +## Index + +- [type Error](<#Error>) + - [func \(e \*Error\) Error\(\) string](<#Error.Error>) + - [func \(e Error\) RawJSON\(\) string](<#Error.RawJSON>) + - [func \(e \*Error\) Type\(\) string](<#Error.Type>) + - [func \(e \*Error\) UnmarshalJSON\(data \[\]byte\) error](<#Error.UnmarshalJSON>) + + + +## type [Error]() + +Error is an HTTP API error. Transport and context errors remain unwrapped. + +```go +type Error struct { + StatusCode int `json:"-"` + Request *http.Request `json:"-"` + Response *http.Response `json:"-"` + RequestID string `json:"request_id"` + Message string `json:"-"` + Code string `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(\*Error\) [Error]() + +```go +func (e *Error) Error() string +``` + + + + +### func \(Error\) [RawJSON]() + +```go +func (e Error) RawJSON() string +``` + + + + +### func \(\*Error\) [Type]() + +```go +func (e *Error) Type() string +``` + + + + +### func \(\*Error\) [UnmarshalJSON]() + +```go +func (e *Error) UnmarshalJSON(data []byte) error +``` + + + +# apiform + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apiform" +``` + +## Index + +- [func Marshal\(value any, writer \*multipart.Writer\) error](<#Marshal>) +- [func MarshalRoot\(value any, writer \*multipart.Writer\) error](<#MarshalRoot>) +- [func MarshalWithSettings\(value any, writer \*multipart.Writer, arrayFormat string\) error](<#MarshalWithSettings>) +- [func WriteExtras\(writer \*multipart.Writer, extras map\[string\]any\) \(err error\)](<#WriteExtras>) +- [type Marshaler](<#Marshaler>) + + + +## func [Marshal]() + +```go +func Marshal(value any, writer *multipart.Writer) error +``` + + + + +## func [MarshalRoot]() + +```go +func MarshalRoot(value any, writer *multipart.Writer) error +``` + + + + +## func [MarshalWithSettings]() + +```go +func MarshalWithSettings(value any, writer *multipart.Writer, arrayFormat string) error +``` + + + + +## func [WriteExtras]() + +```go +func WriteExtras(writer *multipart.Writer, extras map[string]any) (err error) +``` + + + + +## type [Marshaler]() + + + +```go +type Marshaler interface { + MarshalMultipart() ([]byte, string, error) +} +``` + +# apijson + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apijson" +``` + +## Index + +- [Variables](<#variables>) +- [func Marshal\(value any\) \(\[\]byte, error\)](<#Marshal>) +- [func MarshalRoot\(value any\) \(\[\]byte, error\)](<#MarshalRoot>) +- [func Port\(from any, to any\) error](<#Port>) +- [func RegisterCustomDecoder\[T any\]\(decoder CustomDecoderFunc\)](<#RegisterCustomDecoder>) +- [func RegisterDiscriminatedUnion\[T any\]\(key string, mappings map\[string\]reflect.Type\)](<#RegisterDiscriminatedUnion>) +- [func RegisterFieldValidator\[T any, V string | bool | int | float64\]\(fieldName string, values ...V\)](<#RegisterFieldValidator>) +- [func RegisterUnion\[T any\]\(discriminator string, variants ...UnionVariant\)](<#RegisterUnion>) +- [func Unmarshal\(raw \[\]byte, to any\) error](<#Unmarshal>) +- [func UnmarshalRoot\(raw \[\]byte, to any\) error](<#UnmarshalRoot>) +- [type CustomDecoderFunc](<#CustomDecoderFunc>) +- [type CustomUnmarshaler](<#CustomUnmarshaler>) +- [type Field](<#Field>) + - [func \(j Field\) IsInvalid\(\) bool](<#Field.IsInvalid>) + - [func \(j Field\) IsMissing\(\) bool](<#Field.IsMissing>) + - [func \(j Field\) IsNull\(\) bool](<#Field.IsNull>) + - [func \(j Field\) Raw\(\) string](<#Field.Raw>) +- [type UnionUnmarshaler](<#UnionUnmarshaler>) + - [func \(c \*UnionUnmarshaler\[T\]\) UnmarshalJSON\(buf \[\]byte\) error](<#UnionUnmarshaler[T].UnmarshalJSON>) +- [type UnionVariant](<#UnionVariant>) + - [func Discriminator\[T any\]\(value any\) UnionVariant](<#Discriminator>) + + +## Variables + +If we want to set a literal key value into JSON using sjson, we need to make sure it doesn't have special characters that sjson interprets as a path. + +```go +var EscapeSJSONKey = strings.NewReplacer("\\", "\\\\", "|", "\\|", "#", "\\#", "@", "\\@", "*", "\\*", ".", "\\.", ":", "\\:", "?", "\\?").Replace +``` + + +## func [Marshal]() + +```go +func Marshal(value any) ([]byte, error) +``` + + + + +## func [MarshalRoot]() + +```go +func MarshalRoot(value any) ([]byte, error) +``` + + + + +## func [Port]() + +```go +func Port(from any, to any) error +``` + +Port copies over values from one struct to another struct. + + +## func [RegisterCustomDecoder]() + +```go +func RegisterCustomDecoder[T any](decoder CustomDecoderFunc) +``` + + + + +## func [RegisterDiscriminatedUnion]() + +```go +func RegisterDiscriminatedUnion[T any](key string, mappings map[string]reflect.Type) +``` + + + + +## func [RegisterFieldValidator]() + +```go +func RegisterFieldValidator[T any, V string | bool | int | float64](fieldName string, values ...V) +``` + + + + +## func [RegisterUnion]() + +```go +func RegisterUnion[T any](discriminator string, variants ...UnionVariant) +``` + + + + +## func [Unmarshal]() + +```go +func Unmarshal(raw []byte, to any) error +``` + +Unmarshal is similar to [encoding/json.Unmarshal]() and parses the JSON\-encoded data and stores it in the given pointer. + + +## func [UnmarshalRoot]() + +```go +func UnmarshalRoot(raw []byte, to any) error +``` + +UnmarshalRoot is like Unmarshal, but doesn't try to call MarshalJSON on the root element. Useful if a struct's UnmarshalJSON is overrode to use the behavior of this encoder versus the standard library. + + +## type [CustomDecoderFunc]() + + + +```go +type CustomDecoderFunc func(node gjson.Result, value reflect.Value, defaultDecoder func(gjson.Result, reflect.Value) error) error +``` + + +## type [CustomUnmarshaler]() + +CustomUnmarshaler indicates that a type is not "apijson native". apijson native types use the custom \[json.Unmarshaler\] only as an entry point, and therefore are skipped when nested. + +```go +type CustomUnmarshaler interface { + UnmarshalAPIJSON([]byte) error +} +``` + + +## type [Field]() + + + +```go +type Field struct { + // contains filtered or unexported fields +} +``` + + +### func \(Field\) [IsInvalid]() + +```go +func (j Field) IsInvalid() bool +``` + + + + +### func \(Field\) [IsMissing]() + +```go +func (j Field) IsMissing() bool +``` + + + + +### func \(Field\) [IsNull]() + +```go +func (j Field) IsNull() bool +``` + +Returns true if the field is explicitly \`null\` \_or\_ if it is not present at all \(ie, missing\). To check if the field's key is present in the JSON with an explicit null value, you must check \`f.IsNull\(\) && \!f.IsMissing\(\)\`. + + +### func \(Field\) [Raw]() + +```go +func (j Field) Raw() string +``` + + + + +## type [UnionUnmarshaler]() + +Useful to wrap a union type to force it to use apijson.UnmarshalJSON since you cannot define an UnmarshalJSON function on the interface itself. + +```go +type UnionUnmarshaler[T any] struct { + Value T +} +``` + + +### func \(\*UnionUnmarshaler\[T\]\) [UnmarshalJSON]() + +```go +func (c *UnionUnmarshaler[T]) UnmarshalJSON(buf []byte) error +``` + + + + +## type [UnionVariant]() + + + +```go +type UnionVariant struct { + TypeFilter gjson.Type + DiscriminatorValue any + Type reflect.Type +} +``` + + +### func [Discriminator]() + +```go +func Discriminator[T any](value any) UnionVariant +``` + + + +# apiquery + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apiquery" +``` + +## Index + +- [func Marshal\(value any\) \(url.Values, error\)](<#Marshal>) +- [func MarshalWithSettings\(value any, settings QuerySettings\) \(url.Values, error\)](<#MarshalWithSettings>) +- [type ArrayQueryFormat](<#ArrayQueryFormat>) +- [type NestedQueryFormat](<#NestedQueryFormat>) +- [type Pair](<#Pair>) +- [type QuerySettings](<#QuerySettings>) +- [type Queryer](<#Queryer>) + + + +## func [Marshal]() + +```go +func Marshal(value any) (url.Values, error) +``` + + + + +## func [MarshalWithSettings]() + +```go +func MarshalWithSettings(value any, settings QuerySettings) (url.Values, error) +``` + + + + +## type [ArrayQueryFormat]() + + + +```go +type ArrayQueryFormat int +``` + + + +```go +const ( + ArrayQueryFormatComma ArrayQueryFormat = iota + ArrayQueryFormatRepeat + ArrayQueryFormatIndices + ArrayQueryFormatBrackets +) +``` + + +## type [NestedQueryFormat]() + + + +```go +type NestedQueryFormat int +``` + + + +```go +const ( + NestedQueryFormatBrackets NestedQueryFormat = iota + NestedQueryFormatDots +) +``` + + +## type [Pair]() + + + +```go +type Pair struct { + // contains filtered or unexported fields +} +``` + + +## type [QuerySettings]() + + + +```go +type QuerySettings struct { + NestedFormat NestedQueryFormat + ArrayFormat ArrayQueryFormat +} +``` + + +## type [Queryer]() + + + +```go +type Queryer interface { + URLQuery() (url.Values, error) +} +``` + +# constant + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/constant" +``` + +## Index + +- [func ValueOf\[T Constant\[T\]\]\(\) T](<#ValueOf>) +- [type APIError](<#APIError>) + - [func \(c APIError\) Default\(\) APIError](<#APIError.Default>) + - [func \(c APIError\) MarshalJSON\(\) \(\[\]byte, error\)](<#APIError.MarshalJSON>) +- [type APIKey](<#APIKey>) + - [func \(c APIKey\) Default\(\) APIKey](<#APIKey.Default>) + - [func \(c APIKey\) MarshalJSON\(\) \(\[\]byte, error\)](<#APIKey.MarshalJSON>) +- [type AWS](<#AWS>) + - [func \(c AWS\) Default\(\) AWS](<#AWS.Default>) + - [func \(c AWS\) MarshalJSON\(\) \(\[\]byte, error\)](<#AWS.MarshalJSON>) +- [type Adaptive](<#Adaptive>) + - [func \(c Adaptive\) Default\(\) Adaptive](<#Adaptive.Default>) + - [func \(c Adaptive\) MarshalJSON\(\) \(\[\]byte, error\)](<#Adaptive.MarshalJSON>) +- [type Advisor](<#Advisor>) + - [func \(c Advisor\) Default\(\) Advisor](<#Advisor.Default>) + - [func \(c Advisor\) MarshalJSON\(\) \(\[\]byte, error\)](<#Advisor.MarshalJSON>) +- [type Advisor20260301](<#Advisor20260301>) + - [func \(c Advisor20260301\) Default\(\) Advisor20260301](<#Advisor20260301.Default>) + - [func \(c Advisor20260301\) MarshalJSON\(\) \(\[\]byte, error\)](<#Advisor20260301.MarshalJSON>) +- [type AdvisorMessage](<#AdvisorMessage>) + - [func \(c AdvisorMessage\) Default\(\) AdvisorMessage](<#AdvisorMessage.Default>) + - [func \(c AdvisorMessage\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorMessage.MarshalJSON>) +- [type AdvisorRedactedResult](<#AdvisorRedactedResult>) + - [func \(c AdvisorRedactedResult\) Default\(\) AdvisorRedactedResult](<#AdvisorRedactedResult.Default>) + - [func \(c AdvisorRedactedResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorRedactedResult.MarshalJSON>) +- [type AdvisorResult](<#AdvisorResult>) + - [func \(c AdvisorResult\) Default\(\) AdvisorResult](<#AdvisorResult.Default>) + - [func \(c AdvisorResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorResult.MarshalJSON>) +- [type AdvisorToolResult](<#AdvisorToolResult>) + - [func \(c AdvisorToolResult\) Default\(\) AdvisorToolResult](<#AdvisorToolResult.Default>) + - [func \(c AdvisorToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorToolResult.MarshalJSON>) +- [type AdvisorToolResultError](<#AdvisorToolResultError>) + - [func \(c AdvisorToolResultError\) Default\(\) AdvisorToolResultError](<#AdvisorToolResultError.Default>) + - [func \(c AdvisorToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#AdvisorToolResultError.MarshalJSON>) +- [type AgentArchived](<#AgentArchived>) + - [func \(c AgentArchived\) Default\(\) AgentArchived](<#AgentArchived.Default>) + - [func \(c AgentArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentArchived.MarshalJSON>) +- [type AgentCreated](<#AgentCreated>) + - [func \(c AgentCreated\) Default\(\) AgentCreated](<#AgentCreated.Default>) + - [func \(c AgentCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentCreated.MarshalJSON>) +- [type AgentDeleted](<#AgentDeleted>) + - [func \(c AgentDeleted\) Default\(\) AgentDeleted](<#AgentDeleted.Default>) + - [func \(c AgentDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentDeleted.MarshalJSON>) +- [type AgentUpdated](<#AgentUpdated>) + - [func \(c AgentUpdated\) Default\(\) AgentUpdated](<#AgentUpdated.Default>) + - [func \(c AgentUpdated\) MarshalJSON\(\) \(\[\]byte, error\)](<#AgentUpdated.MarshalJSON>) +- [type All](<#All>) + - [func \(c All\) Default\(\) All](<#All.Default>) + - [func \(c All\) MarshalJSON\(\) \(\[\]byte, error\)](<#All.MarshalJSON>) +- [type Any](<#Any>) + - [func \(c Any\) Default\(\) Any](<#Any.Default>) + - [func \(c Any\) MarshalJSON\(\) \(\[\]byte, error\)](<#Any.MarshalJSON>) +- [type ApplicationPDF](<#ApplicationPDF>) + - [func \(c ApplicationPDF\) Default\(\) ApplicationPDF](<#ApplicationPDF.Default>) + - [func \(c ApplicationPDF\) MarshalJSON\(\) \(\[\]byte, error\)](<#ApplicationPDF.MarshalJSON>) +- [type Approximate](<#Approximate>) + - [func \(c Approximate\) Default\(\) Approximate](<#Approximate.Default>) + - [func \(c Approximate\) MarshalJSON\(\) \(\[\]byte, error\)](<#Approximate.MarshalJSON>) +- [type Assistant](<#Assistant>) + - [func \(c Assistant\) Default\(\) Assistant](<#Assistant.Default>) + - [func \(c Assistant\) MarshalJSON\(\) \(\[\]byte, error\)](<#Assistant.MarshalJSON>) +- [type Attached](<#Attached>) + - [func \(c Attached\) Default\(\) Attached](<#Attached.Default>) + - [func \(c Attached\) MarshalJSON\(\) \(\[\]byte, error\)](<#Attached.MarshalJSON>) +- [type AuthenticationError](<#AuthenticationError>) + - [func \(c AuthenticationError\) Default\(\) AuthenticationError](<#AuthenticationError.Default>) + - [func \(c AuthenticationError\) MarshalJSON\(\) \(\[\]byte, error\)](<#AuthenticationError.MarshalJSON>) +- [type Auto](<#Auto>) + - [func \(c Auto\) Default\(\) Auto](<#Auto.Default>) + - [func \(c Auto\) MarshalJSON\(\) \(\[\]byte, error\)](<#Auto.MarshalJSON>) +- [type Azure](<#Azure>) + - [func \(c Azure\) Default\(\) Azure](<#Azure.Default>) + - [func \(c Azure\) MarshalJSON\(\) \(\[\]byte, error\)](<#Azure.MarshalJSON>) +- [type Base64](<#Base64>) + - [func \(c Base64\) Default\(\) Base64](<#Base64.Default>) + - [func \(c Base64\) MarshalJSON\(\) \(\[\]byte, error\)](<#Base64.MarshalJSON>) +- [type Bash](<#Bash>) + - [func \(c Bash\) Default\(\) Bash](<#Bash.Default>) + - [func \(c Bash\) MarshalJSON\(\) \(\[\]byte, error\)](<#Bash.MarshalJSON>) +- [type Bash20241022](<#Bash20241022>) + - [func \(c Bash20241022\) Default\(\) Bash20241022](<#Bash20241022.Default>) + - [func \(c Bash20241022\) MarshalJSON\(\) \(\[\]byte, error\)](<#Bash20241022.MarshalJSON>) +- [type Bash20250124](<#Bash20250124>) + - [func \(c Bash20250124\) Default\(\) Bash20250124](<#Bash20250124.Default>) + - [func \(c Bash20250124\) MarshalJSON\(\) \(\[\]byte, error\)](<#Bash20250124.MarshalJSON>) +- [type BashCodeExecutionOutput](<#BashCodeExecutionOutput>) + - [func \(c BashCodeExecutionOutput\) Default\(\) BashCodeExecutionOutput](<#BashCodeExecutionOutput.Default>) + - [func \(c BashCodeExecutionOutput\) MarshalJSON\(\) \(\[\]byte, error\)](<#BashCodeExecutionOutput.MarshalJSON>) +- [type BashCodeExecutionResult](<#BashCodeExecutionResult>) + - [func \(c BashCodeExecutionResult\) Default\(\) BashCodeExecutionResult](<#BashCodeExecutionResult.Default>) + - [func \(c BashCodeExecutionResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#BashCodeExecutionResult.MarshalJSON>) +- [type BashCodeExecutionToolResult](<#BashCodeExecutionToolResult>) + - [func \(c BashCodeExecutionToolResult\) Default\(\) BashCodeExecutionToolResult](<#BashCodeExecutionToolResult.Default>) + - [func \(c BashCodeExecutionToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#BashCodeExecutionToolResult.MarshalJSON>) +- [type BashCodeExecutionToolResultError](<#BashCodeExecutionToolResultError>) + - [func \(c BashCodeExecutionToolResultError\) Default\(\) BashCodeExecutionToolResultError](<#BashCodeExecutionToolResultError.Default>) + - [func \(c BashCodeExecutionToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#BashCodeExecutionToolResultError.MarshalJSON>) +- [type BillingError](<#BillingError>) + - [func \(c BillingError\) Default\(\) BillingError](<#BillingError.Default>) + - [func \(c BillingError\) MarshalJSON\(\) \(\[\]byte, error\)](<#BillingError.MarshalJSON>) +- [type BrowserState](<#BrowserState>) + - [func \(c BrowserState\) Default\(\) BrowserState](<#BrowserState.Default>) + - [func \(c BrowserState\) MarshalJSON\(\) \(\[\]byte, error\)](<#BrowserState.MarshalJSON>) +- [type BrowserToolset20260801](<#BrowserToolset20260801>) + - [func \(c BrowserToolset20260801\) Default\(\) BrowserToolset20260801](<#BrowserToolset20260801.Default>) + - [func \(c BrowserToolset20260801\) MarshalJSON\(\) \(\[\]byte, error\)](<#BrowserToolset20260801.MarshalJSON>) +- [type Canceled](<#Canceled>) + - [func \(c Canceled\) Default\(\) Canceled](<#Canceled.Default>) + - [func \(c Canceled\) MarshalJSON\(\) \(\[\]byte, error\)](<#Canceled.MarshalJSON>) +- [type CharLocation](<#CharLocation>) + - [func \(c CharLocation\) Default\(\) CharLocation](<#CharLocation.Default>) + - [func \(c CharLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#CharLocation.MarshalJSON>) +- [type CitationsDelta](<#CitationsDelta>) + - [func \(c CitationsDelta\) Default\(\) CitationsDelta](<#CitationsDelta.Default>) + - [func \(c CitationsDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#CitationsDelta.MarshalJSON>) +- [type ClearThinking20251015](<#ClearThinking20251015>) + - [func \(c ClearThinking20251015\) Default\(\) ClearThinking20251015](<#ClearThinking20251015.Default>) + - [func \(c ClearThinking20251015\) MarshalJSON\(\) \(\[\]byte, error\)](<#ClearThinking20251015.MarshalJSON>) +- [type ClearToolUses20250919](<#ClearToolUses20250919>) + - [func \(c ClearToolUses20250919\) Default\(\) ClearToolUses20250919](<#ClearToolUses20250919.Default>) + - [func \(c ClearToolUses20250919\) MarshalJSON\(\) \(\[\]byte, error\)](<#ClearToolUses20250919.MarshalJSON>) +- [type Cloud](<#Cloud>) + - [func \(c Cloud\) Default\(\) Cloud](<#Cloud.Default>) + - [func \(c Cloud\) MarshalJSON\(\) \(\[\]byte, error\)](<#Cloud.MarshalJSON>) +- [type CodeExecution](<#CodeExecution>) + - [func \(c CodeExecution\) Default\(\) CodeExecution](<#CodeExecution.Default>) + - [func \(c CodeExecution\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecution.MarshalJSON>) +- [type CodeExecution20250522](<#CodeExecution20250522>) + - [func \(c CodeExecution20250522\) Default\(\) CodeExecution20250522](<#CodeExecution20250522.Default>) + - [func \(c CodeExecution20250522\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecution20250522.MarshalJSON>) +- [type CodeExecution20250825](<#CodeExecution20250825>) + - [func \(c CodeExecution20250825\) Default\(\) CodeExecution20250825](<#CodeExecution20250825.Default>) + - [func \(c CodeExecution20250825\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecution20250825.MarshalJSON>) +- [type CodeExecution20260120](<#CodeExecution20260120>) + - [func \(c CodeExecution20260120\) Default\(\) CodeExecution20260120](<#CodeExecution20260120.Default>) + - [func \(c CodeExecution20260120\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecution20260120.MarshalJSON>) +- [type CodeExecution20260521](<#CodeExecution20260521>) + - [func \(c CodeExecution20260521\) Default\(\) CodeExecution20260521](<#CodeExecution20260521.Default>) + - [func \(c CodeExecution20260521\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecution20260521.MarshalJSON>) +- [type CodeExecutionOutput](<#CodeExecutionOutput>) + - [func \(c CodeExecutionOutput\) Default\(\) CodeExecutionOutput](<#CodeExecutionOutput.Default>) + - [func \(c CodeExecutionOutput\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecutionOutput.MarshalJSON>) +- [type CodeExecutionResult](<#CodeExecutionResult>) + - [func \(c CodeExecutionResult\) Default\(\) CodeExecutionResult](<#CodeExecutionResult.Default>) + - [func \(c CodeExecutionResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecutionResult.MarshalJSON>) +- [type CodeExecutionToolResult](<#CodeExecutionToolResult>) + - [func \(c CodeExecutionToolResult\) Default\(\) CodeExecutionToolResult](<#CodeExecutionToolResult.Default>) + - [func \(c CodeExecutionToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecutionToolResult.MarshalJSON>) +- [type CodeExecutionToolResultError](<#CodeExecutionToolResultError>) + - [func \(c CodeExecutionToolResultError\) Default\(\) CodeExecutionToolResultError](<#CodeExecutionToolResultError.Default>) + - [func \(c CodeExecutionToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#CodeExecutionToolResultError.MarshalJSON>) +- [type Compact20260112](<#Compact20260112>) + - [func \(c Compact20260112\) Default\(\) Compact20260112](<#Compact20260112.Default>) + - [func \(c Compact20260112\) MarshalJSON\(\) \(\[\]byte, error\)](<#Compact20260112.MarshalJSON>) +- [type Compaction](<#Compaction>) + - [func \(c Compaction\) Default\(\) Compaction](<#Compaction.Default>) + - [func \(c Compaction\) MarshalJSON\(\) \(\[\]byte, error\)](<#Compaction.MarshalJSON>) +- [type CompactionDelta](<#CompactionDelta>) + - [func \(c CompactionDelta\) Default\(\) CompactionDelta](<#CompactionDelta.Default>) + - [func \(c CompactionDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#CompactionDelta.MarshalJSON>) +- [type Completion](<#Completion>) + - [func \(c Completion\) Default\(\) Completion](<#Completion.Default>) + - [func \(c Completion\) MarshalJSON\(\) \(\[\]byte, error\)](<#Completion.MarshalJSON>) +- [type ComplianceSettings](<#ComplianceSettings>) + - [func \(c ComplianceSettings\) Default\(\) ComplianceSettings](<#ComplianceSettings.Default>) + - [func \(c ComplianceSettings\) MarshalJSON\(\) \(\[\]byte, error\)](<#ComplianceSettings.MarshalJSON>) +- [type Computer](<#Computer>) + - [func \(c Computer\) Default\(\) Computer](<#Computer.Default>) + - [func \(c Computer\) MarshalJSON\(\) \(\[\]byte, error\)](<#Computer.MarshalJSON>) +- [type Computer20241022](<#Computer20241022>) + - [func \(c Computer20241022\) Default\(\) Computer20241022](<#Computer20241022.Default>) + - [func \(c Computer20241022\) MarshalJSON\(\) \(\[\]byte, error\)](<#Computer20241022.MarshalJSON>) +- [type Computer20250124](<#Computer20250124>) + - [func \(c Computer20250124\) Default\(\) Computer20250124](<#Computer20250124.Default>) + - [func \(c Computer20250124\) MarshalJSON\(\) \(\[\]byte, error\)](<#Computer20250124.MarshalJSON>) +- [type Computer20251124](<#Computer20251124>) + - [func \(c Computer20251124\) Default\(\) Computer20251124](<#Computer20251124.Default>) + - [func \(c Computer20251124\) MarshalJSON\(\) \(\[\]byte, error\)](<#Computer20251124.MarshalJSON>) +- [type ComputerToolset20260801](<#ComputerToolset20260801>) + - [func \(c ComputerToolset20260801\) Default\(\) ComputerToolset20260801](<#ComputerToolset20260801.Default>) + - [func \(c ComputerToolset20260801\) MarshalJSON\(\) \(\[\]byte, error\)](<#ComputerToolset20260801.MarshalJSON>) +- [type ConflictError](<#ConflictError>) + - [func \(c ConflictError\) Default\(\) ConflictError](<#ConflictError.Default>) + - [func \(c ConflictError\) MarshalJSON\(\) \(\[\]byte, error\)](<#ConflictError.MarshalJSON>) +- [type Constant](<#Constant>) +- [type ContainerUpload](<#ContainerUpload>) + - [func \(c ContainerUpload\) Default\(\) ContainerUpload](<#ContainerUpload.Default>) + - [func \(c ContainerUpload\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContainerUpload.MarshalJSON>) +- [type Content](<#Content>) + - [func \(c Content\) Default\(\) Content](<#Content.Default>) + - [func \(c Content\) MarshalJSON\(\) \(\[\]byte, error\)](<#Content.MarshalJSON>) +- [type ContentBlockDelta](<#ContentBlockDelta>) + - [func \(c ContentBlockDelta\) Default\(\) ContentBlockDelta](<#ContentBlockDelta.Default>) + - [func \(c ContentBlockDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockDelta.MarshalJSON>) +- [type ContentBlockLocation](<#ContentBlockLocation>) + - [func \(c ContentBlockLocation\) Default\(\) ContentBlockLocation](<#ContentBlockLocation.Default>) + - [func \(c ContentBlockLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockLocation.MarshalJSON>) +- [type ContentBlockStart](<#ContentBlockStart>) + - [func \(c ContentBlockStart\) Default\(\) ContentBlockStart](<#ContentBlockStart.Default>) + - [func \(c ContentBlockStart\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockStart.MarshalJSON>) +- [type ContentBlockStop](<#ContentBlockStop>) + - [func \(c ContentBlockStop\) Default\(\) ContentBlockStop](<#ContentBlockStop.Default>) + - [func \(c ContentBlockStop\) MarshalJSON\(\) \(\[\]byte, error\)](<#ContentBlockStop.MarshalJSON>) +- [type Create](<#Create>) + - [func \(c Create\) Default\(\) Create](<#Create.Default>) + - [func \(c Create\) MarshalJSON\(\) \(\[\]byte, error\)](<#Create.MarshalJSON>) +- [type Default](<#Default>) + - [func \(c Default\) Default\(\) Default](<#Default.Default>) + - [func \(c Default\) MarshalJSON\(\) \(\[\]byte, error\)](<#Default.MarshalJSON>) +- [type Delete](<#Delete>) + - [func \(c Delete\) Default\(\) Delete](<#Delete.Default>) + - [func \(c Delete\) MarshalJSON\(\) \(\[\]byte, error\)](<#Delete.MarshalJSON>) +- [type DeploymentArchived](<#DeploymentArchived>) + - [func \(c DeploymentArchived\) Default\(\) DeploymentArchived](<#DeploymentArchived.Default>) + - [func \(c DeploymentArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentArchived.MarshalJSON>) +- [type DeploymentCreated](<#DeploymentCreated>) + - [func \(c DeploymentCreated\) Default\(\) DeploymentCreated](<#DeploymentCreated.Default>) + - [func \(c DeploymentCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentCreated.MarshalJSON>) +- [type DeploymentDeleted](<#DeploymentDeleted>) + - [func \(c DeploymentDeleted\) Default\(\) DeploymentDeleted](<#DeploymentDeleted.Default>) + - [func \(c DeploymentDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentDeleted.MarshalJSON>) +- [type DeploymentPaused](<#DeploymentPaused>) + - [func \(c DeploymentPaused\) Default\(\) DeploymentPaused](<#DeploymentPaused.Default>) + - [func \(c DeploymentPaused\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentPaused.MarshalJSON>) +- [type DeploymentRunFailed](<#DeploymentRunFailed>) + - [func \(c DeploymentRunFailed\) Default\(\) DeploymentRunFailed](<#DeploymentRunFailed.Default>) + - [func \(c DeploymentRunFailed\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentRunFailed.MarshalJSON>) +- [type DeploymentRunStarted](<#DeploymentRunStarted>) + - [func \(c DeploymentRunStarted\) Default\(\) DeploymentRunStarted](<#DeploymentRunStarted.Default>) + - [func \(c DeploymentRunStarted\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentRunStarted.MarshalJSON>) +- [type DeploymentRunSucceeded](<#DeploymentRunSucceeded>) + - [func \(c DeploymentRunSucceeded\) Default\(\) DeploymentRunSucceeded](<#DeploymentRunSucceeded.Default>) + - [func \(c DeploymentRunSucceeded\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentRunSucceeded.MarshalJSON>) +- [type DeploymentUnpaused](<#DeploymentUnpaused>) + - [func \(c DeploymentUnpaused\) Default\(\) DeploymentUnpaused](<#DeploymentUnpaused.Default>) + - [func \(c DeploymentUnpaused\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentUnpaused.MarshalJSON>) +- [type DeploymentUpdated](<#DeploymentUpdated>) + - [func \(c DeploymentUpdated\) Default\(\) DeploymentUpdated](<#DeploymentUpdated.Default>) + - [func \(c DeploymentUpdated\) MarshalJSON\(\) \(\[\]byte, error\)](<#DeploymentUpdated.MarshalJSON>) +- [type Direct](<#Direct>) + - [func \(c Direct\) Default\(\) Direct](<#Direct.Default>) + - [func \(c Direct\) MarshalJSON\(\) \(\[\]byte, error\)](<#Direct.MarshalJSON>) +- [type Disabled](<#Disabled>) + - [func \(c Disabled\) Default\(\) Disabled](<#Disabled.Default>) + - [func \(c Disabled\) MarshalJSON\(\) \(\[\]byte, error\)](<#Disabled.MarshalJSON>) +- [type Discovery](<#Discovery>) + - [func \(c Discovery\) Default\(\) Discovery](<#Discovery.Default>) + - [func \(c Discovery\) MarshalJSON\(\) \(\[\]byte, error\)](<#Discovery.MarshalJSON>) +- [type Document](<#Document>) + - [func \(c Document\) Default\(\) Document](<#Document.Default>) + - [func \(c Document\) MarshalJSON\(\) \(\[\]byte, error\)](<#Document.MarshalJSON>) +- [type DownloadCompleted](<#DownloadCompleted>) + - [func \(c DownloadCompleted\) Default\(\) DownloadCompleted](<#DownloadCompleted.Default>) + - [func \(c DownloadCompleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#DownloadCompleted.MarshalJSON>) +- [type DownloadFailed](<#DownloadFailed>) + - [func \(c DownloadFailed\) Default\(\) DownloadFailed](<#DownloadFailed.Default>) + - [func \(c DownloadFailed\) MarshalJSON\(\) \(\[\]byte, error\)](<#DownloadFailed.MarshalJSON>) +- [type DownloadStarted](<#DownloadStarted>) + - [func \(c DownloadStarted\) Default\(\) DownloadStarted](<#DownloadStarted.Default>) + - [func \(c DownloadStarted\) MarshalJSON\(\) \(\[\]byte, error\)](<#DownloadStarted.MarshalJSON>) +- [type Edit](<#Edit>) + - [func \(c Edit\) Default\(\) Edit](<#Edit.Default>) + - [func \(c Edit\) MarshalJSON\(\) \(\[\]byte, error\)](<#Edit.MarshalJSON>) +- [type Enabled](<#Enabled>) + - [func \(c Enabled\) Default\(\) Enabled](<#Enabled.Default>) + - [func \(c Enabled\) MarshalJSON\(\) \(\[\]byte, error\)](<#Enabled.MarshalJSON>) +- [type EncryptedCodeExecutionResult](<#EncryptedCodeExecutionResult>) + - [func \(c EncryptedCodeExecutionResult\) Default\(\) EncryptedCodeExecutionResult](<#EncryptedCodeExecutionResult.Default>) + - [func \(c EncryptedCodeExecutionResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#EncryptedCodeExecutionResult.MarshalJSON>) +- [type Environment](<#Environment>) + - [func \(c Environment\) Default\(\) Environment](<#Environment.Default>) + - [func \(c Environment\) MarshalJSON\(\) \(\[\]byte, error\)](<#Environment.MarshalJSON>) +- [type EnvironmentArchived](<#EnvironmentArchived>) + - [func \(c EnvironmentArchived\) Default\(\) EnvironmentArchived](<#EnvironmentArchived.Default>) + - [func \(c EnvironmentArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentArchived.MarshalJSON>) +- [type EnvironmentCreated](<#EnvironmentCreated>) + - [func \(c EnvironmentCreated\) Default\(\) EnvironmentCreated](<#EnvironmentCreated.Default>) + - [func \(c EnvironmentCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentCreated.MarshalJSON>) +- [type EnvironmentDeleted](<#EnvironmentDeleted>) + - [func \(c EnvironmentDeleted\) Default\(\) EnvironmentDeleted](<#EnvironmentDeleted.Default>) + - [func \(c EnvironmentDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentDeleted.MarshalJSON>) +- [type EnvironmentUpdated](<#EnvironmentUpdated>) + - [func \(c EnvironmentUpdated\) Default\(\) EnvironmentUpdated](<#EnvironmentUpdated.Default>) + - [func \(c EnvironmentUpdated\) MarshalJSON\(\) \(\[\]byte, error\)](<#EnvironmentUpdated.MarshalJSON>) +- [type Ephemeral](<#Ephemeral>) + - [func \(c Ephemeral\) Default\(\) Ephemeral](<#Ephemeral.Default>) + - [func \(c Ephemeral\) MarshalJSON\(\) \(\[\]byte, error\)](<#Ephemeral.MarshalJSON>) +- [type Error](<#Error>) + - [func \(c Error\) Default\(\) Error](<#Error.Default>) + - [func \(c Error\) MarshalJSON\(\) \(\[\]byte, error\)](<#Error.MarshalJSON>) +- [type Errored](<#Errored>) + - [func \(c Errored\) Default\(\) Errored](<#Errored.Default>) + - [func \(c Errored\) MarshalJSON\(\) \(\[\]byte, error\)](<#Errored.MarshalJSON>) +- [type Event](<#Event>) + - [func \(c Event\) Default\(\) Event](<#Event.Default>) + - [func \(c Event\) MarshalJSON\(\) \(\[\]byte, error\)](<#Event.MarshalJSON>) +- [type Expired](<#Expired>) + - [func \(c Expired\) Default\(\) Expired](<#Expired.Default>) + - [func \(c Expired\) MarshalJSON\(\) \(\[\]byte, error\)](<#Expired.MarshalJSON>) +- [type ExplicitURL](<#ExplicitURL>) + - [func \(c ExplicitURL\) Default\(\) ExplicitURL](<#ExplicitURL.Default>) + - [func \(c ExplicitURL\) MarshalJSON\(\) \(\[\]byte, error\)](<#ExplicitURL.MarshalJSON>) +- [type ExternalKey](<#ExternalKey>) + - [func \(c ExternalKey\) Default\(\) ExternalKey](<#ExternalKey.Default>) + - [func \(c ExternalKey\) MarshalJSON\(\) \(\[\]byte, error\)](<#ExternalKey.MarshalJSON>) +- [type ExternalKeyDeleted](<#ExternalKeyDeleted>) + - [func \(c ExternalKeyDeleted\) Default\(\) ExternalKeyDeleted](<#ExternalKeyDeleted.Default>) + - [func \(c ExternalKeyDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#ExternalKeyDeleted.MarshalJSON>) +- [type ExternalKeyValidation](<#ExternalKeyValidation>) + - [func \(c ExternalKeyValidation\) Default\(\) ExternalKeyValidation](<#ExternalKeyValidation.Default>) + - [func \(c ExternalKeyValidation\) MarshalJSON\(\) \(\[\]byte, error\)](<#ExternalKeyValidation.MarshalJSON>) +- [type Fallback](<#Fallback>) + - [func \(c Fallback\) Default\(\) Fallback](<#Fallback.Default>) + - [func \(c Fallback\) MarshalJSON\(\) \(\[\]byte, error\)](<#Fallback.MarshalJSON>) +- [type FallbackMessage](<#FallbackMessage>) + - [func \(c FallbackMessage\) Default\(\) FallbackMessage](<#FallbackMessage.Default>) + - [func \(c FallbackMessage\) MarshalJSON\(\) \(\[\]byte, error\)](<#FallbackMessage.MarshalJSON>) +- [type FederationIssuer](<#FederationIssuer>) + - [func \(c FederationIssuer\) Default\(\) FederationIssuer](<#FederationIssuer.Default>) + - [func \(c FederationIssuer\) MarshalJSON\(\) \(\[\]byte, error\)](<#FederationIssuer.MarshalJSON>) +- [type FederationRule](<#FederationRule>) + - [func \(c FederationRule\) Default\(\) FederationRule](<#FederationRule.Default>) + - [func \(c FederationRule\) MarshalJSON\(\) \(\[\]byte, error\)](<#FederationRule.MarshalJSON>) +- [type FederationRuleWorkspace](<#FederationRuleWorkspace>) + - [func \(c FederationRuleWorkspace\) Default\(\) FederationRuleWorkspace](<#FederationRuleWorkspace.Default>) + - [func \(c FederationRuleWorkspace\) MarshalJSON\(\) \(\[\]byte, error\)](<#FederationRuleWorkspace.MarshalJSON>) +- [type FederationRuleWorkspaceDeleted](<#FederationRuleWorkspaceDeleted>) + - [func \(c FederationRuleWorkspaceDeleted\) Default\(\) FederationRuleWorkspaceDeleted](<#FederationRuleWorkspaceDeleted.Default>) + - [func \(c FederationRuleWorkspaceDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#FederationRuleWorkspaceDeleted.MarshalJSON>) +- [type File](<#File>) + - [func \(c File\) Default\(\) File](<#File.Default>) + - [func \(c File\) MarshalJSON\(\) \(\[\]byte, error\)](<#File.MarshalJSON>) +- [type GCP](<#GCP>) + - [func \(c GCP\) Default\(\) GCP](<#GCP.Default>) + - [func \(c GCP\) MarshalJSON\(\) \(\[\]byte, error\)](<#GCP.MarshalJSON>) +- [type Glob](<#Glob>) + - [func \(c Glob\) Default\(\) Glob](<#Glob.Default>) + - [func \(c Glob\) MarshalJSON\(\) \(\[\]byte, error\)](<#Glob.MarshalJSON>) +- [type Grep](<#Grep>) + - [func \(c Grep\) Default\(\) Grep](<#Grep.Default>) + - [func \(c Grep\) MarshalJSON\(\) \(\[\]byte, error\)](<#Grep.MarshalJSON>) +- [type Image](<#Image>) + - [func \(c Image\) Default\(\) Image](<#Image.Default>) + - [func \(c Image\) MarshalJSON\(\) \(\[\]byte, error\)](<#Image.MarshalJSON>) +- [type Inline](<#Inline>) + - [func \(c Inline\) Default\(\) Inline](<#Inline.Default>) + - [func \(c Inline\) MarshalJSON\(\) \(\[\]byte, error\)](<#Inline.MarshalJSON>) +- [type InputJSONDelta](<#InputJSONDelta>) + - [func \(c InputJSONDelta\) Default\(\) InputJSONDelta](<#InputJSONDelta.Default>) + - [func \(c InputJSONDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputJSONDelta.MarshalJSON>) +- [type InputTokens](<#InputTokens>) + - [func \(c InputTokens\) Default\(\) InputTokens](<#InputTokens.Default>) + - [func \(c InputTokens\) MarshalJSON\(\) \(\[\]byte, error\)](<#InputTokens.MarshalJSON>) +- [type Insert](<#Insert>) + - [func \(c Insert\) Default\(\) Insert](<#Insert.Default>) + - [func \(c Insert\) MarshalJSON\(\) \(\[\]byte, error\)](<#Insert.MarshalJSON>) +- [type InvalidRequestError](<#InvalidRequestError>) + - [func \(c InvalidRequestError\) Default\(\) InvalidRequestError](<#InvalidRequestError.Default>) + - [func \(c InvalidRequestError\) MarshalJSON\(\) \(\[\]byte, error\)](<#InvalidRequestError.MarshalJSON>) +- [type Invite](<#Invite>) + - [func \(c Invite\) Default\(\) Invite](<#Invite.Default>) + - [func \(c Invite\) MarshalJSON\(\) \(\[\]byte, error\)](<#Invite.MarshalJSON>) +- [type InviteDeleted](<#InviteDeleted>) + - [func \(c InviteDeleted\) Default\(\) InviteDeleted](<#InviteDeleted.Default>) + - [func \(c InviteDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#InviteDeleted.MarshalJSON>) +- [type JSONSchema](<#JSONSchema>) + - [func \(c JSONSchema\) Default\(\) JSONSchema](<#JSONSchema.Default>) + - [func \(c JSONSchema\) MarshalJSON\(\) \(\[\]byte, error\)](<#JSONSchema.MarshalJSON>) +- [type Limited](<#Limited>) + - [func \(c Limited\) Default\(\) Limited](<#Limited.Default>) + - [func \(c Limited\) MarshalJSON\(\) \(\[\]byte, error\)](<#Limited.MarshalJSON>) +- [type MCPToolReference](<#MCPToolReference>) + - [func \(c MCPToolReference\) Default\(\) MCPToolReference](<#MCPToolReference.Default>) + - [func \(c MCPToolReference\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPToolReference.MarshalJSON>) +- [type MCPToolResult](<#MCPToolResult>) + - [func \(c MCPToolResult\) Default\(\) MCPToolResult](<#MCPToolResult.Default>) + - [func \(c MCPToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPToolResult.MarshalJSON>) +- [type MCPToolUse](<#MCPToolUse>) + - [func \(c MCPToolUse\) Default\(\) MCPToolUse](<#MCPToolUse.Default>) + - [func \(c MCPToolUse\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPToolUse.MarshalJSON>) +- [type MCPToolset](<#MCPToolset>) + - [func \(c MCPToolset\) Default\(\) MCPToolset](<#MCPToolset.Default>) + - [func \(c MCPToolset\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPToolset.MarshalJSON>) +- [type MCPToolsetReference](<#MCPToolsetReference>) + - [func \(c MCPToolsetReference\) Default\(\) MCPToolsetReference](<#MCPToolsetReference.Default>) + - [func \(c MCPToolsetReference\) MarshalJSON\(\) \(\[\]byte, error\)](<#MCPToolsetReference.MarshalJSON>) +- [type Memory](<#Memory>) + - [func \(c Memory\) Default\(\) Memory](<#Memory.Default>) + - [func \(c Memory\) MarshalJSON\(\) \(\[\]byte, error\)](<#Memory.MarshalJSON>) +- [type Memory20250818](<#Memory20250818>) + - [func \(c Memory20250818\) Default\(\) Memory20250818](<#Memory20250818.Default>) + - [func \(c Memory20250818\) MarshalJSON\(\) \(\[\]byte, error\)](<#Memory20250818.MarshalJSON>) +- [type MemoryStoreArchived](<#MemoryStoreArchived>) + - [func \(c MemoryStoreArchived\) Default\(\) MemoryStoreArchived](<#MemoryStoreArchived.Default>) + - [func \(c MemoryStoreArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreArchived.MarshalJSON>) +- [type MemoryStoreCreated](<#MemoryStoreCreated>) + - [func \(c MemoryStoreCreated\) Default\(\) MemoryStoreCreated](<#MemoryStoreCreated.Default>) + - [func \(c MemoryStoreCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreCreated.MarshalJSON>) +- [type MemoryStoreDeleted](<#MemoryStoreDeleted>) + - [func \(c MemoryStoreDeleted\) Default\(\) MemoryStoreDeleted](<#MemoryStoreDeleted.Default>) + - [func \(c MemoryStoreDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#MemoryStoreDeleted.MarshalJSON>) +- [type Message](<#Message>) + - [func \(c Message\) Default\(\) Message](<#Message.Default>) + - [func \(c Message\) MarshalJSON\(\) \(\[\]byte, error\)](<#Message.MarshalJSON>) +- [type MessageBatch](<#MessageBatch>) + - [func \(c MessageBatch\) Default\(\) MessageBatch](<#MessageBatch.Default>) + - [func \(c MessageBatch\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageBatch.MarshalJSON>) +- [type MessageBatchDeleted](<#MessageBatchDeleted>) + - [func \(c MessageBatchDeleted\) Default\(\) MessageBatchDeleted](<#MessageBatchDeleted.Default>) + - [func \(c MessageBatchDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageBatchDeleted.MarshalJSON>) +- [type MessageDelta](<#MessageDelta>) + - [func \(c MessageDelta\) Default\(\) MessageDelta](<#MessageDelta.Default>) + - [func \(c MessageDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageDelta.MarshalJSON>) +- [type MessageStart](<#MessageStart>) + - [func \(c MessageStart\) Default\(\) MessageStart](<#MessageStart.Default>) + - [func \(c MessageStart\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageStart.MarshalJSON>) +- [type MessageStop](<#MessageStop>) + - [func \(c MessageStop\) Default\(\) MessageStop](<#MessageStop.Default>) + - [func \(c MessageStop\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessageStop.MarshalJSON>) +- [type MessagesChanged](<#MessagesChanged>) + - [func \(c MessagesChanged\) Default\(\) MessagesChanged](<#MessagesChanged.Default>) + - [func \(c MessagesChanged\) MarshalJSON\(\) \(\[\]byte, error\)](<#MessagesChanged.MarshalJSON>) +- [type Model](<#Model>) + - [func \(c Model\) Default\(\) Model](<#Model.Default>) + - [func \(c Model\) MarshalJSON\(\) \(\[\]byte, error\)](<#Model.MarshalJSON>) +- [type ModelChanged](<#ModelChanged>) + - [func \(c ModelChanged\) Default\(\) ModelChanged](<#ModelChanged.Default>) + - [func \(c ModelChanged\) MarshalJSON\(\) \(\[\]byte, error\)](<#ModelChanged.MarshalJSON>) +- [type None](<#None>) + - [func \(c None\) Default\(\) None](<#None.Default>) + - [func \(c None\) MarshalJSON\(\) \(\[\]byte, error\)](<#None.MarshalJSON>) +- [type NotApplied](<#NotApplied>) + - [func \(c NotApplied\) Default\(\) NotApplied](<#NotApplied.Default>) + - [func \(c NotApplied\) MarshalJSON\(\) \(\[\]byte, error\)](<#NotApplied.MarshalJSON>) +- [type NotFoundError](<#NotFoundError>) + - [func \(c NotFoundError\) Default\(\) NotFoundError](<#NotFoundError.Default>) + - [func \(c NotFoundError\) MarshalJSON\(\) \(\[\]byte, error\)](<#NotFoundError.MarshalJSON>) +- [type Object](<#Object>) + - [func \(c Object\) Default\(\) Object](<#Object.Default>) + - [func \(c Object\) MarshalJSON\(\) \(\[\]byte, error\)](<#Object.MarshalJSON>) +- [type Organization](<#Organization>) + - [func \(c Organization\) Default\(\) Organization](<#Organization.Default>) + - [func \(c Organization\) MarshalJSON\(\) \(\[\]byte, error\)](<#Organization.MarshalJSON>) +- [type OverloadedError](<#OverloadedError>) + - [func \(c OverloadedError\) Default\(\) OverloadedError](<#OverloadedError.Default>) + - [func \(c OverloadedError\) MarshalJSON\(\) \(\[\]byte, error\)](<#OverloadedError.MarshalJSON>) +- [type PageLocation](<#PageLocation>) + - [func \(c PageLocation\) Default\(\) PageLocation](<#PageLocation.Default>) + - [func \(c PageLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#PageLocation.MarshalJSON>) +- [type PermissionError](<#PermissionError>) + - [func \(c PermissionError\) Default\(\) PermissionError](<#PermissionError.Default>) + - [func \(c PermissionError\) MarshalJSON\(\) \(\[\]byte, error\)](<#PermissionError.MarshalJSON>) +- [type PreviousMessageNotFound](<#PreviousMessageNotFound>) + - [func \(c PreviousMessageNotFound\) Default\(\) PreviousMessageNotFound](<#PreviousMessageNotFound.Default>) + - [func \(c PreviousMessageNotFound\) MarshalJSON\(\) \(\[\]byte, error\)](<#PreviousMessageNotFound.MarshalJSON>) +- [type RateLimit](<#RateLimit>) + - [func \(c RateLimit\) Default\(\) RateLimit](<#RateLimit.Default>) + - [func \(c RateLimit\) MarshalJSON\(\) \(\[\]byte, error\)](<#RateLimit.MarshalJSON>) +- [type RateLimitError](<#RateLimitError>) + - [func \(c RateLimitError\) Default\(\) RateLimitError](<#RateLimitError.Default>) + - [func \(c RateLimitError\) MarshalJSON\(\) \(\[\]byte, error\)](<#RateLimitError.MarshalJSON>) +- [type Read](<#Read>) + - [func \(c Read\) Default\(\) Read](<#Read.Default>) + - [func \(c Read\) MarshalJSON\(\) \(\[\]byte, error\)](<#Read.MarshalJSON>) +- [type RedactedThinking](<#RedactedThinking>) + - [func \(c RedactedThinking\) Default\(\) RedactedThinking](<#RedactedThinking.Default>) + - [func \(c RedactedThinking\) MarshalJSON\(\) \(\[\]byte, error\)](<#RedactedThinking.MarshalJSON>) +- [type Redeemed](<#Redeemed>) + - [func \(c Redeemed\) Default\(\) Redeemed](<#Redeemed.Default>) + - [func \(c Redeemed\) MarshalJSON\(\) \(\[\]byte, error\)](<#Redeemed.MarshalJSON>) +- [type Refusal](<#Refusal>) + - [func \(c Refusal\) Default\(\) Refusal](<#Refusal.Default>) + - [func \(c Refusal\) MarshalJSON\(\) \(\[\]byte, error\)](<#Refusal.MarshalJSON>) +- [type Rename](<#Rename>) + - [func \(c Rename\) Default\(\) Rename](<#Rename.Default>) + - [func \(c Rename\) MarshalJSON\(\) \(\[\]byte, error\)](<#Rename.MarshalJSON>) +- [type SearchResult](<#SearchResult>) + - [func \(c SearchResult\) Default\(\) SearchResult](<#SearchResult.Default>) + - [func \(c SearchResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#SearchResult.MarshalJSON>) +- [type SearchResultLocation](<#SearchResultLocation>) + - [func \(c SearchResultLocation\) Default\(\) SearchResultLocation](<#SearchResultLocation.Default>) + - [func \(c SearchResultLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#SearchResultLocation.MarshalJSON>) +- [type SelfHosted](<#SelfHosted>) + - [func \(c SelfHosted\) Default\(\) SelfHosted](<#SelfHosted.Default>) + - [func \(c SelfHosted\) MarshalJSON\(\) \(\[\]byte, error\)](<#SelfHosted.MarshalJSON>) +- [type ServerToolUse](<#ServerToolUse>) + - [func \(c ServerToolUse\) Default\(\) ServerToolUse](<#ServerToolUse.Default>) + - [func \(c ServerToolUse\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServerToolUse.MarshalJSON>) +- [type ServiceAccount](<#ServiceAccount>) + - [func \(c ServiceAccount\) Default\(\) ServiceAccount](<#ServiceAccount.Default>) + - [func \(c ServiceAccount\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServiceAccount.MarshalJSON>) +- [type ServiceAccountActor](<#ServiceAccountActor>) + - [func \(c ServiceAccountActor\) Default\(\) ServiceAccountActor](<#ServiceAccountActor.Default>) + - [func \(c ServiceAccountActor\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServiceAccountActor.MarshalJSON>) +- [type ServiceAccountWorkspaceMember](<#ServiceAccountWorkspaceMember>) + - [func \(c ServiceAccountWorkspaceMember\) Default\(\) ServiceAccountWorkspaceMember](<#ServiceAccountWorkspaceMember.Default>) + - [func \(c ServiceAccountWorkspaceMember\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServiceAccountWorkspaceMember.MarshalJSON>) +- [type ServiceAccountWorkspaceMemberDeleted](<#ServiceAccountWorkspaceMemberDeleted>) + - [func \(c ServiceAccountWorkspaceMemberDeleted\) Default\(\) ServiceAccountWorkspaceMemberDeleted](<#ServiceAccountWorkspaceMemberDeleted.Default>) + - [func \(c ServiceAccountWorkspaceMemberDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#ServiceAccountWorkspaceMemberDeleted.MarshalJSON>) +- [type Session](<#Session>) + - [func \(c Session\) Default\(\) Session](<#Session.Default>) + - [func \(c Session\) MarshalJSON\(\) \(\[\]byte, error\)](<#Session.MarshalJSON>) +- [type SessionArchived](<#SessionArchived>) + - [func \(c SessionArchived\) Default\(\) SessionArchived](<#SessionArchived.Default>) + - [func \(c SessionArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionArchived.MarshalJSON>) +- [type SessionBudgetReached](<#SessionBudgetReached>) + - [func \(c SessionBudgetReached\) Default\(\) SessionBudgetReached](<#SessionBudgetReached.Default>) + - [func \(c SessionBudgetReached\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionBudgetReached.MarshalJSON>) +- [type SessionCreated](<#SessionCreated>) + - [func \(c SessionCreated\) Default\(\) SessionCreated](<#SessionCreated.Default>) + - [func \(c SessionCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionCreated.MarshalJSON>) +- [type SessionDeleted](<#SessionDeleted>) + - [func \(c SessionDeleted\) Default\(\) SessionDeleted](<#SessionDeleted.Default>) + - [func \(c SessionDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionDeleted.MarshalJSON>) +- [type SessionIdled](<#SessionIdled>) + - [func \(c SessionIdled\) Default\(\) SessionIdled](<#SessionIdled.Default>) + - [func \(c SessionIdled\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionIdled.MarshalJSON>) +- [type SessionOutcomeEvaluationEnded](<#SessionOutcomeEvaluationEnded>) + - [func \(c SessionOutcomeEvaluationEnded\) Default\(\) SessionOutcomeEvaluationEnded](<#SessionOutcomeEvaluationEnded.Default>) + - [func \(c SessionOutcomeEvaluationEnded\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionOutcomeEvaluationEnded.MarshalJSON>) +- [type SessionPending](<#SessionPending>) + - [func \(c SessionPending\) Default\(\) SessionPending](<#SessionPending.Default>) + - [func \(c SessionPending\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionPending.MarshalJSON>) +- [type SessionRequiresAction](<#SessionRequiresAction>) + - [func \(c SessionRequiresAction\) Default\(\) SessionRequiresAction](<#SessionRequiresAction.Default>) + - [func \(c SessionRequiresAction\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionRequiresAction.MarshalJSON>) +- [type SessionRunning](<#SessionRunning>) + - [func \(c SessionRunning\) Default\(\) SessionRunning](<#SessionRunning.Default>) + - [func \(c SessionRunning\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionRunning.MarshalJSON>) +- [type SessionStatusIdled](<#SessionStatusIdled>) + - [func \(c SessionStatusIdled\) Default\(\) SessionStatusIdled](<#SessionStatusIdled.Default>) + - [func \(c SessionStatusIdled\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionStatusIdled.MarshalJSON>) +- [type SessionStatusRescheduled](<#SessionStatusRescheduled>) + - [func \(c SessionStatusRescheduled\) Default\(\) SessionStatusRescheduled](<#SessionStatusRescheduled.Default>) + - [func \(c SessionStatusRescheduled\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionStatusRescheduled.MarshalJSON>) +- [type SessionStatusRunStarted](<#SessionStatusRunStarted>) + - [func \(c SessionStatusRunStarted\) Default\(\) SessionStatusRunStarted](<#SessionStatusRunStarted.Default>) + - [func \(c SessionStatusRunStarted\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionStatusRunStarted.MarshalJSON>) +- [type SessionStatusTerminated](<#SessionStatusTerminated>) + - [func \(c SessionStatusTerminated\) Default\(\) SessionStatusTerminated](<#SessionStatusTerminated.Default>) + - [func \(c SessionStatusTerminated\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionStatusTerminated.MarshalJSON>) +- [type SessionThreadCreated](<#SessionThreadCreated>) + - [func \(c SessionThreadCreated\) Default\(\) SessionThreadCreated](<#SessionThreadCreated.Default>) + - [func \(c SessionThreadCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionThreadCreated.MarshalJSON>) +- [type SessionThreadIdled](<#SessionThreadIdled>) + - [func \(c SessionThreadIdled\) Default\(\) SessionThreadIdled](<#SessionThreadIdled.Default>) + - [func \(c SessionThreadIdled\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionThreadIdled.MarshalJSON>) +- [type SessionThreadTerminated](<#SessionThreadTerminated>) + - [func \(c SessionThreadTerminated\) Default\(\) SessionThreadTerminated](<#SessionThreadTerminated.Default>) + - [func \(c SessionThreadTerminated\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionThreadTerminated.MarshalJSON>) +- [type SessionUpdated](<#SessionUpdated>) + - [func \(c SessionUpdated\) Default\(\) SessionUpdated](<#SessionUpdated.Default>) + - [func \(c SessionUpdated\) MarshalJSON\(\) \(\[\]byte, error\)](<#SessionUpdated.MarshalJSON>) +- [type SignatureDelta](<#SignatureDelta>) + - [func \(c SignatureDelta\) Default\(\) SignatureDelta](<#SignatureDelta.Default>) + - [func \(c SignatureDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#SignatureDelta.MarshalJSON>) +- [type Skill](<#Skill>) + - [func \(c Skill\) Default\(\) Skill](<#Skill.Default>) + - [func \(c Skill\) MarshalJSON\(\) \(\[\]byte, error\)](<#Skill.MarshalJSON>) +- [type SkillDeleted](<#SkillDeleted>) + - [func \(c SkillDeleted\) Default\(\) SkillDeleted](<#SkillDeleted.Default>) + - [func \(c SkillDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillDeleted.MarshalJSON>) +- [type SkillVersion](<#SkillVersion>) + - [func \(c SkillVersion\) Default\(\) SkillVersion](<#SkillVersion.Default>) + - [func \(c SkillVersion\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillVersion.MarshalJSON>) +- [type SkillVersionDeleted](<#SkillVersionDeleted>) + - [func \(c SkillVersionDeleted\) Default\(\) SkillVersionDeleted](<#SkillVersionDeleted.Default>) + - [func \(c SkillVersionDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#SkillVersionDeleted.MarshalJSON>) +- [type StrReplace](<#StrReplace>) + - [func \(c StrReplace\) Default\(\) StrReplace](<#StrReplace.Default>) + - [func \(c StrReplace\) MarshalJSON\(\) \(\[\]byte, error\)](<#StrReplace.MarshalJSON>) +- [type StrReplaceBasedEditTool](<#StrReplaceBasedEditTool>) + - [func \(c StrReplaceBasedEditTool\) Default\(\) StrReplaceBasedEditTool](<#StrReplaceBasedEditTool.Default>) + - [func \(c StrReplaceBasedEditTool\) MarshalJSON\(\) \(\[\]byte, error\)](<#StrReplaceBasedEditTool.MarshalJSON>) +- [type StrReplaceEditor](<#StrReplaceEditor>) + - [func \(c StrReplaceEditor\) Default\(\) StrReplaceEditor](<#StrReplaceEditor.Default>) + - [func \(c StrReplaceEditor\) MarshalJSON\(\) \(\[\]byte, error\)](<#StrReplaceEditor.MarshalJSON>) +- [type Succeeded](<#Succeeded>) + - [func \(c Succeeded\) Default\(\) Succeeded](<#Succeeded.Default>) + - [func \(c Succeeded\) MarshalJSON\(\) \(\[\]byte, error\)](<#Succeeded.MarshalJSON>) +- [type SystemChanged](<#SystemChanged>) + - [func \(c SystemChanged\) Default\(\) SystemChanged](<#SystemChanged.Default>) + - [func \(c SystemChanged\) MarshalJSON\(\) \(\[\]byte, error\)](<#SystemChanged.MarshalJSON>) +- [type TabOpened](<#TabOpened>) + - [func \(c TabOpened\) Default\(\) TabOpened](<#TabOpened.Default>) + - [func \(c TabOpened\) MarshalJSON\(\) \(\[\]byte, error\)](<#TabOpened.MarshalJSON>) +- [type Text](<#Text>) + - [func \(c Text\) Default\(\) Text](<#Text.Default>) + - [func \(c Text\) MarshalJSON\(\) \(\[\]byte, error\)](<#Text.MarshalJSON>) +- [type TextDelta](<#TextDelta>) + - [func \(c TextDelta\) Default\(\) TextDelta](<#TextDelta.Default>) + - [func \(c TextDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextDelta.MarshalJSON>) +- [type TextEditor20241022](<#TextEditor20241022>) + - [func \(c TextEditor20241022\) Default\(\) TextEditor20241022](<#TextEditor20241022.Default>) + - [func \(c TextEditor20241022\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditor20241022.MarshalJSON>) +- [type TextEditor20250124](<#TextEditor20250124>) + - [func \(c TextEditor20250124\) Default\(\) TextEditor20250124](<#TextEditor20250124.Default>) + - [func \(c TextEditor20250124\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditor20250124.MarshalJSON>) +- [type TextEditor20250429](<#TextEditor20250429>) + - [func \(c TextEditor20250429\) Default\(\) TextEditor20250429](<#TextEditor20250429.Default>) + - [func \(c TextEditor20250429\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditor20250429.MarshalJSON>) +- [type TextEditor20250728](<#TextEditor20250728>) + - [func \(c TextEditor20250728\) Default\(\) TextEditor20250728](<#TextEditor20250728.Default>) + - [func \(c TextEditor20250728\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditor20250728.MarshalJSON>) +- [type TextEditorCodeExecutionCreateResult](<#TextEditorCodeExecutionCreateResult>) + - [func \(c TextEditorCodeExecutionCreateResult\) Default\(\) TextEditorCodeExecutionCreateResult](<#TextEditorCodeExecutionCreateResult.Default>) + - [func \(c TextEditorCodeExecutionCreateResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionCreateResult.MarshalJSON>) +- [type TextEditorCodeExecutionStrReplaceResult](<#TextEditorCodeExecutionStrReplaceResult>) + - [func \(c TextEditorCodeExecutionStrReplaceResult\) Default\(\) TextEditorCodeExecutionStrReplaceResult](<#TextEditorCodeExecutionStrReplaceResult.Default>) + - [func \(c TextEditorCodeExecutionStrReplaceResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionStrReplaceResult.MarshalJSON>) +- [type TextEditorCodeExecutionToolResult](<#TextEditorCodeExecutionToolResult>) + - [func \(c TextEditorCodeExecutionToolResult\) Default\(\) TextEditorCodeExecutionToolResult](<#TextEditorCodeExecutionToolResult.Default>) + - [func \(c TextEditorCodeExecutionToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionToolResult.MarshalJSON>) +- [type TextEditorCodeExecutionToolResultError](<#TextEditorCodeExecutionToolResultError>) + - [func \(c TextEditorCodeExecutionToolResultError\) Default\(\) TextEditorCodeExecutionToolResultError](<#TextEditorCodeExecutionToolResultError.Default>) + - [func \(c TextEditorCodeExecutionToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionToolResultError.MarshalJSON>) +- [type TextEditorCodeExecutionViewResult](<#TextEditorCodeExecutionViewResult>) + - [func \(c TextEditorCodeExecutionViewResult\) Default\(\) TextEditorCodeExecutionViewResult](<#TextEditorCodeExecutionViewResult.Default>) + - [func \(c TextEditorCodeExecutionViewResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextEditorCodeExecutionViewResult.MarshalJSON>) +- [type TextPlain](<#TextPlain>) + - [func \(c TextPlain\) Default\(\) TextPlain](<#TextPlain.Default>) + - [func \(c TextPlain\) MarshalJSON\(\) \(\[\]byte, error\)](<#TextPlain.MarshalJSON>) +- [type Thinking](<#Thinking>) + - [func \(c Thinking\) Default\(\) Thinking](<#Thinking.Default>) + - [func \(c Thinking\) MarshalJSON\(\) \(\[\]byte, error\)](<#Thinking.MarshalJSON>) +- [type ThinkingDelta](<#ThinkingDelta>) + - [func \(c ThinkingDelta\) Default\(\) ThinkingDelta](<#ThinkingDelta.Default>) + - [func \(c ThinkingDelta\) MarshalJSON\(\) \(\[\]byte, error\)](<#ThinkingDelta.MarshalJSON>) +- [type ThinkingDropped](<#ThinkingDropped>) + - [func \(c ThinkingDropped\) Default\(\) ThinkingDropped](<#ThinkingDropped.Default>) + - [func \(c ThinkingDropped\) MarshalJSON\(\) \(\[\]byte, error\)](<#ThinkingDropped.MarshalJSON>) +- [type ThinkingTurns](<#ThinkingTurns>) + - [func \(c ThinkingTurns\) Default\(\) ThinkingTurns](<#ThinkingTurns.Default>) + - [func \(c ThinkingTurns\) MarshalJSON\(\) \(\[\]byte, error\)](<#ThinkingTurns.MarshalJSON>) +- [type TimeoutError](<#TimeoutError>) + - [func \(c TimeoutError\) Default\(\) TimeoutError](<#TimeoutError.Default>) + - [func \(c TimeoutError\) MarshalJSON\(\) \(\[\]byte, error\)](<#TimeoutError.MarshalJSON>) +- [type Tokens](<#Tokens>) + - [func \(c Tokens\) Default\(\) Tokens](<#Tokens.Default>) + - [func \(c Tokens\) MarshalJSON\(\) \(\[\]byte, error\)](<#Tokens.MarshalJSON>) +- [type Tool](<#Tool>) + - [func \(c Tool\) Default\(\) Tool](<#Tool.Default>) + - [func \(c Tool\) MarshalJSON\(\) \(\[\]byte, error\)](<#Tool.MarshalJSON>) +- [type ToolAddition](<#ToolAddition>) + - [func \(c ToolAddition\) Default\(\) ToolAddition](<#ToolAddition.Default>) + - [func \(c ToolAddition\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolAddition.MarshalJSON>) +- [type ToolReference](<#ToolReference>) + - [func \(c ToolReference\) Default\(\) ToolReference](<#ToolReference.Default>) + - [func \(c ToolReference\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolReference.MarshalJSON>) +- [type ToolRemoval](<#ToolRemoval>) + - [func \(c ToolRemoval\) Default\(\) ToolRemoval](<#ToolRemoval.Default>) + - [func \(c ToolRemoval\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolRemoval.MarshalJSON>) +- [type ToolResult](<#ToolResult>) + - [func \(c ToolResult\) Default\(\) ToolResult](<#ToolResult.Default>) + - [func \(c ToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolResult.MarshalJSON>) +- [type ToolSearchToolBm25](<#ToolSearchToolBm25>) + - [func \(c ToolSearchToolBm25\) Default\(\) ToolSearchToolBm25](<#ToolSearchToolBm25.Default>) + - [func \(c ToolSearchToolBm25\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolBm25.MarshalJSON>) +- [type ToolSearchToolRegex](<#ToolSearchToolRegex>) + - [func \(c ToolSearchToolRegex\) Default\(\) ToolSearchToolRegex](<#ToolSearchToolRegex.Default>) + - [func \(c ToolSearchToolRegex\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolRegex.MarshalJSON>) +- [type ToolSearchToolResult](<#ToolSearchToolResult>) + - [func \(c ToolSearchToolResult\) Default\(\) ToolSearchToolResult](<#ToolSearchToolResult.Default>) + - [func \(c ToolSearchToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolResult.MarshalJSON>) +- [type ToolSearchToolResultError](<#ToolSearchToolResultError>) + - [func \(c ToolSearchToolResultError\) Default\(\) ToolSearchToolResultError](<#ToolSearchToolResultError.Default>) + - [func \(c ToolSearchToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolResultError.MarshalJSON>) +- [type ToolSearchToolSearchResult](<#ToolSearchToolSearchResult>) + - [func \(c ToolSearchToolSearchResult\) Default\(\) ToolSearchToolSearchResult](<#ToolSearchToolSearchResult.Default>) + - [func \(c ToolSearchToolSearchResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolSearchToolSearchResult.MarshalJSON>) +- [type ToolUse](<#ToolUse>) + - [func \(c ToolUse\) Default\(\) ToolUse](<#ToolUse.Default>) + - [func \(c ToolUse\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolUse.MarshalJSON>) +- [type ToolUses](<#ToolUses>) + - [func \(c ToolUses\) Default\(\) ToolUses](<#ToolUses.Default>) + - [func \(c ToolUses\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolUses.MarshalJSON>) +- [type ToolsChanged](<#ToolsChanged>) + - [func \(c ToolsChanged\) Default\(\) ToolsChanged](<#ToolsChanged.Default>) + - [func \(c ToolsChanged\) MarshalJSON\(\) \(\[\]byte, error\)](<#ToolsChanged.MarshalJSON>) +- [type Tunnel](<#Tunnel>) + - [func \(c Tunnel\) Default\(\) Tunnel](<#Tunnel.Default>) + - [func \(c Tunnel\) MarshalJSON\(\) \(\[\]byte, error\)](<#Tunnel.MarshalJSON>) +- [type TunnelCertificate](<#TunnelCertificate>) + - [func \(c TunnelCertificate\) Default\(\) TunnelCertificate](<#TunnelCertificate.Default>) + - [func \(c TunnelCertificate\) MarshalJSON\(\) \(\[\]byte, error\)](<#TunnelCertificate.MarshalJSON>) +- [type TunnelToken](<#TunnelToken>) + - [func \(c TunnelToken\) Default\(\) TunnelToken](<#TunnelToken.Default>) + - [func \(c TunnelToken\) MarshalJSON\(\) \(\[\]byte, error\)](<#TunnelToken.MarshalJSON>) +- [type URL](<#URL>) + - [func \(c URL\) Default\(\) URL](<#URL.Default>) + - [func \(c URL\) MarshalJSON\(\) \(\[\]byte, error\)](<#URL.MarshalJSON>) +- [type Unattached](<#Unattached>) + - [func \(c Unattached\) Default\(\) Unattached](<#Unattached.Default>) + - [func \(c Unattached\) MarshalJSON\(\) \(\[\]byte, error\)](<#Unattached.MarshalJSON>) +- [type Unavailable](<#Unavailable>) + - [func \(c Unavailable\) Default\(\) Unavailable](<#Unavailable.Default>) + - [func \(c Unavailable\) MarshalJSON\(\) \(\[\]byte, error\)](<#Unavailable.MarshalJSON>) +- [type Unrestricted](<#Unrestricted>) + - [func \(c Unrestricted\) Default\(\) Unrestricted](<#Unrestricted.Default>) + - [func \(c Unrestricted\) MarshalJSON\(\) \(\[\]byte, error\)](<#Unrestricted.MarshalJSON>) +- [type User](<#User>) + - [func \(c User\) Default\(\) User](<#User.Default>) + - [func \(c User\) MarshalJSON\(\) \(\[\]byte, error\)](<#User.MarshalJSON>) +- [type UserActor](<#UserActor>) + - [func \(c UserActor\) Default\(\) UserActor](<#UserActor.Default>) + - [func \(c UserActor\) MarshalJSON\(\) \(\[\]byte, error\)](<#UserActor.MarshalJSON>) +- [type UserDeleted](<#UserDeleted>) + - [func \(c UserDeleted\) Default\(\) UserDeleted](<#UserDeleted.Default>) + - [func \(c UserDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#UserDeleted.MarshalJSON>) +- [type VaultArchived](<#VaultArchived>) + - [func \(c VaultArchived\) Default\(\) VaultArchived](<#VaultArchived.Default>) + - [func \(c VaultArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultArchived.MarshalJSON>) +- [type VaultCreated](<#VaultCreated>) + - [func \(c VaultCreated\) Default\(\) VaultCreated](<#VaultCreated.Default>) + - [func \(c VaultCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCreated.MarshalJSON>) +- [type VaultCredentialArchived](<#VaultCredentialArchived>) + - [func \(c VaultCredentialArchived\) Default\(\) VaultCredentialArchived](<#VaultCredentialArchived.Default>) + - [func \(c VaultCredentialArchived\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialArchived.MarshalJSON>) +- [type VaultCredentialCreated](<#VaultCredentialCreated>) + - [func \(c VaultCredentialCreated\) Default\(\) VaultCredentialCreated](<#VaultCredentialCreated.Default>) + - [func \(c VaultCredentialCreated\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialCreated.MarshalJSON>) +- [type VaultCredentialDeleted](<#VaultCredentialDeleted>) + - [func \(c VaultCredentialDeleted\) Default\(\) VaultCredentialDeleted](<#VaultCredentialDeleted.Default>) + - [func \(c VaultCredentialDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialDeleted.MarshalJSON>) +- [type VaultCredentialRefreshFailed](<#VaultCredentialRefreshFailed>) + - [func \(c VaultCredentialRefreshFailed\) Default\(\) VaultCredentialRefreshFailed](<#VaultCredentialRefreshFailed.Default>) + - [func \(c VaultCredentialRefreshFailed\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultCredentialRefreshFailed.MarshalJSON>) +- [type VaultDeleted](<#VaultDeleted>) + - [func \(c VaultDeleted\) Default\(\) VaultDeleted](<#VaultDeleted.Default>) + - [func \(c VaultDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#VaultDeleted.MarshalJSON>) +- [type View](<#View>) + - [func \(c View\) Default\(\) View](<#View.Default>) + - [func \(c View\) MarshalJSON\(\) \(\[\]byte, error\)](<#View.MarshalJSON>) +- [type WebFetch](<#WebFetch>) + - [func \(c WebFetch\) Default\(\) WebFetch](<#WebFetch.Default>) + - [func \(c WebFetch\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetch.MarshalJSON>) +- [type WebFetch20250910](<#WebFetch20250910>) + - [func \(c WebFetch20250910\) Default\(\) WebFetch20250910](<#WebFetch20250910.Default>) + - [func \(c WebFetch20250910\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetch20250910.MarshalJSON>) +- [type WebFetch20260209](<#WebFetch20260209>) + - [func \(c WebFetch20260209\) Default\(\) WebFetch20260209](<#WebFetch20260209.Default>) + - [func \(c WebFetch20260209\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetch20260209.MarshalJSON>) +- [type WebFetch20260309](<#WebFetch20260309>) + - [func \(c WebFetch20260309\) Default\(\) WebFetch20260309](<#WebFetch20260309.Default>) + - [func \(c WebFetch20260309\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetch20260309.MarshalJSON>) +- [type WebFetch20260318](<#WebFetch20260318>) + - [func \(c WebFetch20260318\) Default\(\) WebFetch20260318](<#WebFetch20260318.Default>) + - [func \(c WebFetch20260318\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetch20260318.MarshalJSON>) +- [type WebFetchResult](<#WebFetchResult>) + - [func \(c WebFetchResult\) Default\(\) WebFetchResult](<#WebFetchResult.Default>) + - [func \(c WebFetchResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetchResult.MarshalJSON>) +- [type WebFetchToolResult](<#WebFetchToolResult>) + - [func \(c WebFetchToolResult\) Default\(\) WebFetchToolResult](<#WebFetchToolResult.Default>) + - [func \(c WebFetchToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetchToolResult.MarshalJSON>) +- [type WebFetchToolResultError](<#WebFetchToolResultError>) + - [func \(c WebFetchToolResultError\) Default\(\) WebFetchToolResultError](<#WebFetchToolResultError.Default>) + - [func \(c WebFetchToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebFetchToolResultError.MarshalJSON>) +- [type WebSearch](<#WebSearch>) + - [func \(c WebSearch\) Default\(\) WebSearch](<#WebSearch.Default>) + - [func \(c WebSearch\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearch.MarshalJSON>) +- [type WebSearch20250305](<#WebSearch20250305>) + - [func \(c WebSearch20250305\) Default\(\) WebSearch20250305](<#WebSearch20250305.Default>) + - [func \(c WebSearch20250305\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearch20250305.MarshalJSON>) +- [type WebSearch20260209](<#WebSearch20260209>) + - [func \(c WebSearch20260209\) Default\(\) WebSearch20260209](<#WebSearch20260209.Default>) + - [func \(c WebSearch20260209\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearch20260209.MarshalJSON>) +- [type WebSearch20260318](<#WebSearch20260318>) + - [func \(c WebSearch20260318\) Default\(\) WebSearch20260318](<#WebSearch20260318.Default>) + - [func \(c WebSearch20260318\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearch20260318.MarshalJSON>) +- [type WebSearchResult](<#WebSearchResult>) + - [func \(c WebSearchResult\) Default\(\) WebSearchResult](<#WebSearchResult.Default>) + - [func \(c WebSearchResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchResult.MarshalJSON>) +- [type WebSearchResultLocation](<#WebSearchResultLocation>) + - [func \(c WebSearchResultLocation\) Default\(\) WebSearchResultLocation](<#WebSearchResultLocation.Default>) + - [func \(c WebSearchResultLocation\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchResultLocation.MarshalJSON>) +- [type WebSearchToolResult](<#WebSearchToolResult>) + - [func \(c WebSearchToolResult\) Default\(\) WebSearchToolResult](<#WebSearchToolResult.Default>) + - [func \(c WebSearchToolResult\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchToolResult.MarshalJSON>) +- [type WebSearchToolResultError](<#WebSearchToolResultError>) + - [func \(c WebSearchToolResultError\) Default\(\) WebSearchToolResultError](<#WebSearchToolResultError.Default>) + - [func \(c WebSearchToolResultError\) MarshalJSON\(\) \(\[\]byte, error\)](<#WebSearchToolResultError.MarshalJSON>) +- [type Work](<#Work>) + - [func \(c Work\) Default\(\) Work](<#Work.Default>) + - [func \(c Work\) MarshalJSON\(\) \(\[\]byte, error\)](<#Work.MarshalJSON>) +- [type WorkHeartbeat](<#WorkHeartbeat>) + - [func \(c WorkHeartbeat\) Default\(\) WorkHeartbeat](<#WorkHeartbeat.Default>) + - [func \(c WorkHeartbeat\) MarshalJSON\(\) \(\[\]byte, error\)](<#WorkHeartbeat.MarshalJSON>) +- [type WorkQueueStats](<#WorkQueueStats>) + - [func \(c WorkQueueStats\) Default\(\) WorkQueueStats](<#WorkQueueStats.Default>) + - [func \(c WorkQueueStats\) MarshalJSON\(\) \(\[\]byte, error\)](<#WorkQueueStats.MarshalJSON>) +- [type Workspace](<#Workspace>) + - [func \(c Workspace\) Default\(\) Workspace](<#Workspace.Default>) + - [func \(c Workspace\) MarshalJSON\(\) \(\[\]byte, error\)](<#Workspace.MarshalJSON>) +- [type WorkspaceMember](<#WorkspaceMember>) + - [func \(c WorkspaceMember\) Default\(\) WorkspaceMember](<#WorkspaceMember.Default>) + - [func \(c WorkspaceMember\) MarshalJSON\(\) \(\[\]byte, error\)](<#WorkspaceMember.MarshalJSON>) +- [type WorkspaceMemberDeleted](<#WorkspaceMemberDeleted>) + - [func \(c WorkspaceMemberDeleted\) Default\(\) WorkspaceMemberDeleted](<#WorkspaceMemberDeleted.Default>) + - [func \(c WorkspaceMemberDeleted\) MarshalJSON\(\) \(\[\]byte, error\)](<#WorkspaceMemberDeleted.MarshalJSON>) +- [type WorkspaceRateLimit](<#WorkspaceRateLimit>) + - [func \(c WorkspaceRateLimit\) Default\(\) WorkspaceRateLimit](<#WorkspaceRateLimit.Default>) + - [func \(c WorkspaceRateLimit\) MarshalJSON\(\) \(\[\]byte, error\)](<#WorkspaceRateLimit.MarshalJSON>) +- [type Write](<#Write>) + - [func \(c Write\) Default\(\) Write](<#Write.Default>) + - [func \(c Write\) MarshalJSON\(\) \(\[\]byte, error\)](<#Write.MarshalJSON>) + + + +## func [ValueOf]() + +```go +func ValueOf[T Constant[T]]() T +``` + +ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one\-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf\[constant.Foo\]\(\) + + +## type [APIError]() + + + +```go +type APIError string // Always "api_error" +``` + + +### func \(APIError\) [Default]() + +```go +func (c APIError) Default() APIError +``` + + + + +### func \(APIError\) [MarshalJSON]() + +```go +func (c APIError) MarshalJSON() ([]byte, error) +``` + + + + +## type [APIKey]() + + + +```go +type APIKey string // Always "api_key" +``` + + +### func \(APIKey\) [Default]() + +```go +func (c APIKey) Default() APIKey +``` + + + + +### func \(APIKey\) [MarshalJSON]() + +```go +func (c APIKey) MarshalJSON() ([]byte, error) +``` + + + + +## type [AWS]() + + + +```go +type AWS string // Always "aws" +``` + + +### func \(AWS\) [Default]() + +```go +func (c AWS) Default() AWS +``` + + + + +### func \(AWS\) [MarshalJSON]() + +```go +func (c AWS) MarshalJSON() ([]byte, error) +``` + + + + +## type [Adaptive]() + + + +```go +type Adaptive string // Always "adaptive" +``` + + +### func \(Adaptive\) [Default]() + +```go +func (c Adaptive) Default() Adaptive +``` + + + + +### func \(Adaptive\) [MarshalJSON]() + +```go +func (c Adaptive) MarshalJSON() ([]byte, error) +``` + + + + +## type [Advisor]() + + + +```go +type Advisor string // Always "advisor" +``` + + +### func \(Advisor\) [Default]() + +```go +func (c Advisor) Default() Advisor +``` + + + + +### func \(Advisor\) [MarshalJSON]() + +```go +func (c Advisor) MarshalJSON() ([]byte, error) +``` + + + + +## type [Advisor20260301]() + + + +```go +type Advisor20260301 string // Always "advisor_20260301" +``` + + +### func \(Advisor20260301\) [Default]() + +```go +func (c Advisor20260301) Default() Advisor20260301 +``` + + + + +### func \(Advisor20260301\) [MarshalJSON]() + +```go +func (c Advisor20260301) MarshalJSON() ([]byte, error) +``` + + + + +## type [AdvisorMessage]() + + + +```go +type AdvisorMessage string // Always "advisor_message" +``` + + +### func \(AdvisorMessage\) [Default]() + +```go +func (c AdvisorMessage) Default() AdvisorMessage +``` + + + + +### func \(AdvisorMessage\) [MarshalJSON]() + +```go +func (c AdvisorMessage) MarshalJSON() ([]byte, error) +``` + + + + +## type [AdvisorRedactedResult]() + + + +```go +type AdvisorRedactedResult string // Always "advisor_redacted_result" +``` + + +### func \(AdvisorRedactedResult\) [Default]() + +```go +func (c AdvisorRedactedResult) Default() AdvisorRedactedResult +``` + + + + +### func \(AdvisorRedactedResult\) [MarshalJSON]() + +```go +func (c AdvisorRedactedResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [AdvisorResult]() + + + +```go +type AdvisorResult string // Always "advisor_result" +``` + + +### func \(AdvisorResult\) [Default]() + +```go +func (c AdvisorResult) Default() AdvisorResult +``` + + + + +### func \(AdvisorResult\) [MarshalJSON]() + +```go +func (c AdvisorResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [AdvisorToolResult]() + + + +```go +type AdvisorToolResult string // Always "advisor_tool_result" +``` + + +### func \(AdvisorToolResult\) [Default]() + +```go +func (c AdvisorToolResult) Default() AdvisorToolResult +``` + + + + +### func \(AdvisorToolResult\) [MarshalJSON]() + +```go +func (c AdvisorToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [AdvisorToolResultError]() + + + +```go +type AdvisorToolResultError string // Always "advisor_tool_result_error" +``` + + +### func \(AdvisorToolResultError\) [Default]() + +```go +func (c AdvisorToolResultError) Default() AdvisorToolResultError +``` + + + + +### func \(AdvisorToolResultError\) [MarshalJSON]() + +```go +func (c AdvisorToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [AgentArchived]() + + + +```go +type AgentArchived string // Always "agent.archived" +``` + + +### func \(AgentArchived\) [Default]() + +```go +func (c AgentArchived) Default() AgentArchived +``` + + + + +### func \(AgentArchived\) [MarshalJSON]() + +```go +func (c AgentArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [AgentCreated]() + + + +```go +type AgentCreated string // Always "agent.created" +``` + + +### func \(AgentCreated\) [Default]() + +```go +func (c AgentCreated) Default() AgentCreated +``` + + + + +### func \(AgentCreated\) [MarshalJSON]() + +```go +func (c AgentCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [AgentDeleted]() + + + +```go +type AgentDeleted string // Always "agent.deleted" +``` + + +### func \(AgentDeleted\) [Default]() + +```go +func (c AgentDeleted) Default() AgentDeleted +``` + + + + +### func \(AgentDeleted\) [MarshalJSON]() + +```go +func (c AgentDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [AgentUpdated]() + + + +```go +type AgentUpdated string // Always "agent.updated" +``` + + +### func \(AgentUpdated\) [Default]() + +```go +func (c AgentUpdated) Default() AgentUpdated +``` + + + + +### func \(AgentUpdated\) [MarshalJSON]() + +```go +func (c AgentUpdated) MarshalJSON() ([]byte, error) +``` + + + + +## type [All]() + + + +```go +type All string // Always "all" +``` + + +### func \(All\) [Default]() + +```go +func (c All) Default() All +``` + + + + +### func \(All\) [MarshalJSON]() + +```go +func (c All) MarshalJSON() ([]byte, error) +``` + + + + +## type [Any]() + + + +```go +type Any string // Always "any" +``` + + +### func \(Any\) [Default]() + +```go +func (c Any) Default() Any +``` + + + + +### func \(Any\) [MarshalJSON]() + +```go +func (c Any) MarshalJSON() ([]byte, error) +``` + + + + +## type [ApplicationPDF]() + + + +```go +type ApplicationPDF string // Always "application/pdf" +``` + + +### func \(ApplicationPDF\) [Default]() + +```go +func (c ApplicationPDF) Default() ApplicationPDF +``` + + + + +### func \(ApplicationPDF\) [MarshalJSON]() + +```go +func (c ApplicationPDF) MarshalJSON() ([]byte, error) +``` + + + + +## type [Approximate]() + + + +```go +type Approximate string // Always "approximate" +``` + + +### func \(Approximate\) [Default]() + +```go +func (c Approximate) Default() Approximate +``` + + + + +### func \(Approximate\) [MarshalJSON]() + +```go +func (c Approximate) MarshalJSON() ([]byte, error) +``` + + + + +## type [Assistant]() + + + +```go +type Assistant string // Always "assistant" +``` + + +### func \(Assistant\) [Default]() + +```go +func (c Assistant) Default() Assistant +``` + + + + +### func \(Assistant\) [MarshalJSON]() + +```go +func (c Assistant) MarshalJSON() ([]byte, error) +``` + + + + +## type [Attached]() + + + +```go +type Attached string // Always "attached" +``` + + +### func \(Attached\) [Default]() + +```go +func (c Attached) Default() Attached +``` + + + + +### func \(Attached\) [MarshalJSON]() + +```go +func (c Attached) MarshalJSON() ([]byte, error) +``` + + + + +## type [AuthenticationError]() + + + +```go +type AuthenticationError string // Always "authentication_error" +``` + + +### func \(AuthenticationError\) [Default]() + +```go +func (c AuthenticationError) Default() AuthenticationError +``` + + + + +### func \(AuthenticationError\) [MarshalJSON]() + +```go +func (c AuthenticationError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Auto]() + + + +```go +type Auto string // Always "auto" +``` + + +### func \(Auto\) [Default]() + +```go +func (c Auto) Default() Auto +``` + + + + +### func \(Auto\) [MarshalJSON]() + +```go +func (c Auto) MarshalJSON() ([]byte, error) +``` + + + + +## type [Azure]() + + + +```go +type Azure string // Always "azure" +``` + + +### func \(Azure\) [Default]() + +```go +func (c Azure) Default() Azure +``` + + + + +### func \(Azure\) [MarshalJSON]() + +```go +func (c Azure) MarshalJSON() ([]byte, error) +``` + + + + +## type [Base64]() + + + +```go +type Base64 string // Always "base64" +``` + + +### func \(Base64\) [Default]() + +```go +func (c Base64) Default() Base64 +``` + + + + +### func \(Base64\) [MarshalJSON]() + +```go +func (c Base64) MarshalJSON() ([]byte, error) +``` + + + + +## type [Bash]() + + + +```go +type Bash string // Always "bash" +``` + + +### func \(Bash\) [Default]() + +```go +func (c Bash) Default() Bash +``` + + + + +### func \(Bash\) [MarshalJSON]() + +```go +func (c Bash) MarshalJSON() ([]byte, error) +``` + + + + +## type [Bash20241022]() + + + +```go +type Bash20241022 string // Always "bash_20241022" +``` + + +### func \(Bash20241022\) [Default]() + +```go +func (c Bash20241022) Default() Bash20241022 +``` + + + + +### func \(Bash20241022\) [MarshalJSON]() + +```go +func (c Bash20241022) MarshalJSON() ([]byte, error) +``` + + + + +## type [Bash20250124]() + + + +```go +type Bash20250124 string // Always "bash_20250124" +``` + + +### func \(Bash20250124\) [Default]() + +```go +func (c Bash20250124) Default() Bash20250124 +``` + + + + +### func \(Bash20250124\) [MarshalJSON]() + +```go +func (c Bash20250124) MarshalJSON() ([]byte, error) +``` + + + + +## type [BashCodeExecutionOutput]() + + + +```go +type BashCodeExecutionOutput string // Always "bash_code_execution_output" +``` + + +### func \(BashCodeExecutionOutput\) [Default]() + +```go +func (c BashCodeExecutionOutput) Default() BashCodeExecutionOutput +``` + + + + +### func \(BashCodeExecutionOutput\) [MarshalJSON]() + +```go +func (c BashCodeExecutionOutput) MarshalJSON() ([]byte, error) +``` + + + + +## type [BashCodeExecutionResult]() + + + +```go +type BashCodeExecutionResult string // Always "bash_code_execution_result" +``` + + +### func \(BashCodeExecutionResult\) [Default]() + +```go +func (c BashCodeExecutionResult) Default() BashCodeExecutionResult +``` + + + + +### func \(BashCodeExecutionResult\) [MarshalJSON]() + +```go +func (c BashCodeExecutionResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [BashCodeExecutionToolResult]() + + + +```go +type BashCodeExecutionToolResult string // Always "bash_code_execution_tool_result" +``` + + +### func \(BashCodeExecutionToolResult\) [Default]() + +```go +func (c BashCodeExecutionToolResult) Default() BashCodeExecutionToolResult +``` + + + + +### func \(BashCodeExecutionToolResult\) [MarshalJSON]() + +```go +func (c BashCodeExecutionToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [BashCodeExecutionToolResultError]() + + + +```go +type BashCodeExecutionToolResultError string // Always "bash_code_execution_tool_result_error" +``` + + +### func \(BashCodeExecutionToolResultError\) [Default]() + +```go +func (c BashCodeExecutionToolResultError) Default() BashCodeExecutionToolResultError +``` + + + + +### func \(BashCodeExecutionToolResultError\) [MarshalJSON]() + +```go +func (c BashCodeExecutionToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [BillingError]() + + + +```go +type BillingError string // Always "billing_error" +``` + + +### func \(BillingError\) [Default]() + +```go +func (c BillingError) Default() BillingError +``` + + + + +### func \(BillingError\) [MarshalJSON]() + +```go +func (c BillingError) MarshalJSON() ([]byte, error) +``` + + + + +## type [BrowserState]() + + + +```go +type BrowserState string // Always "browser_state" +``` + + +### func \(BrowserState\) [Default]() + +```go +func (c BrowserState) Default() BrowserState +``` + + + + +### func \(BrowserState\) [MarshalJSON]() + +```go +func (c BrowserState) MarshalJSON() ([]byte, error) +``` + + + + +## type [BrowserToolset20260801]() + + + +```go +type BrowserToolset20260801 string // Always "browser_toolset_20260801" +``` + + +### func \(BrowserToolset20260801\) [Default]() + +```go +func (c BrowserToolset20260801) Default() BrowserToolset20260801 +``` + + + + +### func \(BrowserToolset20260801\) [MarshalJSON]() + +```go +func (c BrowserToolset20260801) MarshalJSON() ([]byte, error) +``` + + + + +## type [Canceled]() + + + +```go +type Canceled string // Always "canceled" +``` + + +### func \(Canceled\) [Default]() + +```go +func (c Canceled) Default() Canceled +``` + + + + +### func \(Canceled\) [MarshalJSON]() + +```go +func (c Canceled) MarshalJSON() ([]byte, error) +``` + + + + +## type [CharLocation]() + + + +```go +type CharLocation string // Always "char_location" +``` + + +### func \(CharLocation\) [Default]() + +```go +func (c CharLocation) Default() CharLocation +``` + + + + +### func \(CharLocation\) [MarshalJSON]() + +```go +func (c CharLocation) MarshalJSON() ([]byte, error) +``` + + + + +## type [CitationsDelta]() + + + +```go +type CitationsDelta string // Always "citations_delta" +``` + + +### func \(CitationsDelta\) [Default]() + +```go +func (c CitationsDelta) Default() CitationsDelta +``` + + + + +### func \(CitationsDelta\) [MarshalJSON]() + +```go +func (c CitationsDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [ClearThinking20251015]() + + + +```go +type ClearThinking20251015 string // Always "clear_thinking_20251015" +``` + + +### func \(ClearThinking20251015\) [Default]() + +```go +func (c ClearThinking20251015) Default() ClearThinking20251015 +``` + + + + +### func \(ClearThinking20251015\) [MarshalJSON]() + +```go +func (c ClearThinking20251015) MarshalJSON() ([]byte, error) +``` + + + + +## type [ClearToolUses20250919]() + + + +```go +type ClearToolUses20250919 string // Always "clear_tool_uses_20250919" +``` + + +### func \(ClearToolUses20250919\) [Default]() + +```go +func (c ClearToolUses20250919) Default() ClearToolUses20250919 +``` + + + + +### func \(ClearToolUses20250919\) [MarshalJSON]() + +```go +func (c ClearToolUses20250919) MarshalJSON() ([]byte, error) +``` + + + + +## type [Cloud]() + + + +```go +type Cloud string // Always "cloud" +``` + + +### func \(Cloud\) [Default]() + +```go +func (c Cloud) Default() Cloud +``` + + + + +### func \(Cloud\) [MarshalJSON]() + +```go +func (c Cloud) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecution]() + + + +```go +type CodeExecution string // Always "code_execution" +``` + + +### func \(CodeExecution\) [Default]() + +```go +func (c CodeExecution) Default() CodeExecution +``` + + + + +### func \(CodeExecution\) [MarshalJSON]() + +```go +func (c CodeExecution) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecution20250522]() + + + +```go +type CodeExecution20250522 string // Always "code_execution_20250522" +``` + + +### func \(CodeExecution20250522\) [Default]() + +```go +func (c CodeExecution20250522) Default() CodeExecution20250522 +``` + + + + +### func \(CodeExecution20250522\) [MarshalJSON]() + +```go +func (c CodeExecution20250522) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecution20250825]() + + + +```go +type CodeExecution20250825 string // Always "code_execution_20250825" +``` + + +### func \(CodeExecution20250825\) [Default]() + +```go +func (c CodeExecution20250825) Default() CodeExecution20250825 +``` + + + + +### func \(CodeExecution20250825\) [MarshalJSON]() + +```go +func (c CodeExecution20250825) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecution20260120]() + + + +```go +type CodeExecution20260120 string // Always "code_execution_20260120" +``` + + +### func \(CodeExecution20260120\) [Default]() + +```go +func (c CodeExecution20260120) Default() CodeExecution20260120 +``` + + + + +### func \(CodeExecution20260120\) [MarshalJSON]() + +```go +func (c CodeExecution20260120) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecution20260521]() + + + +```go +type CodeExecution20260521 string // Always "code_execution_20260521" +``` + + +### func \(CodeExecution20260521\) [Default]() + +```go +func (c CodeExecution20260521) Default() CodeExecution20260521 +``` + + + + +### func \(CodeExecution20260521\) [MarshalJSON]() + +```go +func (c CodeExecution20260521) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecutionOutput]() + + + +```go +type CodeExecutionOutput string // Always "code_execution_output" +``` + + +### func \(CodeExecutionOutput\) [Default]() + +```go +func (c CodeExecutionOutput) Default() CodeExecutionOutput +``` + + + + +### func \(CodeExecutionOutput\) [MarshalJSON]() + +```go +func (c CodeExecutionOutput) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecutionResult]() + + + +```go +type CodeExecutionResult string // Always "code_execution_result" +``` + + +### func \(CodeExecutionResult\) [Default]() + +```go +func (c CodeExecutionResult) Default() CodeExecutionResult +``` + + + + +### func \(CodeExecutionResult\) [MarshalJSON]() + +```go +func (c CodeExecutionResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecutionToolResult]() + + + +```go +type CodeExecutionToolResult string // Always "code_execution_tool_result" +``` + + +### func \(CodeExecutionToolResult\) [Default]() + +```go +func (c CodeExecutionToolResult) Default() CodeExecutionToolResult +``` + + + + +### func \(CodeExecutionToolResult\) [MarshalJSON]() + +```go +func (c CodeExecutionToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [CodeExecutionToolResultError]() + + + +```go +type CodeExecutionToolResultError string // Always "code_execution_tool_result_error" +``` + + +### func \(CodeExecutionToolResultError\) [Default]() + +```go +func (c CodeExecutionToolResultError) Default() CodeExecutionToolResultError +``` + + + + +### func \(CodeExecutionToolResultError\) [MarshalJSON]() + +```go +func (c CodeExecutionToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Compact20260112]() + + + +```go +type Compact20260112 string // Always "compact_20260112" +``` + + +### func \(Compact20260112\) [Default]() + +```go +func (c Compact20260112) Default() Compact20260112 +``` + + + + +### func \(Compact20260112\) [MarshalJSON]() + +```go +func (c Compact20260112) MarshalJSON() ([]byte, error) +``` + + + + +## type [Compaction]() + + + +```go +type Compaction string // Always "compaction" +``` + + +### func \(Compaction\) [Default]() + +```go +func (c Compaction) Default() Compaction +``` + + + + +### func \(Compaction\) [MarshalJSON]() + +```go +func (c Compaction) MarshalJSON() ([]byte, error) +``` + + + + +## type [CompactionDelta]() + + + +```go +type CompactionDelta string // Always "compaction_delta" +``` + + +### func \(CompactionDelta\) [Default]() + +```go +func (c CompactionDelta) Default() CompactionDelta +``` + + + + +### func \(CompactionDelta\) [MarshalJSON]() + +```go +func (c CompactionDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [Completion]() + + + +```go +type Completion string // Always "completion" +``` + + +### func \(Completion\) [Default]() + +```go +func (c Completion) Default() Completion +``` + + + + +### func \(Completion\) [MarshalJSON]() + +```go +func (c Completion) MarshalJSON() ([]byte, error) +``` + + + + +## type [ComplianceSettings]() + + + +```go +type ComplianceSettings string // Always "compliance_settings" +``` + + +### func \(ComplianceSettings\) [Default]() + +```go +func (c ComplianceSettings) Default() ComplianceSettings +``` + + + + +### func \(ComplianceSettings\) [MarshalJSON]() + +```go +func (c ComplianceSettings) MarshalJSON() ([]byte, error) +``` + + + + +## type [Computer]() + + + +```go +type Computer string // Always "computer" +``` + + +### func \(Computer\) [Default]() + +```go +func (c Computer) Default() Computer +``` + + + + +### func \(Computer\) [MarshalJSON]() + +```go +func (c Computer) MarshalJSON() ([]byte, error) +``` + + + + +## type [Computer20241022]() + + + +```go +type Computer20241022 string // Always "computer_20241022" +``` + + +### func \(Computer20241022\) [Default]() + +```go +func (c Computer20241022) Default() Computer20241022 +``` + + + + +### func \(Computer20241022\) [MarshalJSON]() + +```go +func (c Computer20241022) MarshalJSON() ([]byte, error) +``` + + + + +## type [Computer20250124]() + + + +```go +type Computer20250124 string // Always "computer_20250124" +``` + + +### func \(Computer20250124\) [Default]() + +```go +func (c Computer20250124) Default() Computer20250124 +``` + + + + +### func \(Computer20250124\) [MarshalJSON]() + +```go +func (c Computer20250124) MarshalJSON() ([]byte, error) +``` + + + + +## type [Computer20251124]() + + + +```go +type Computer20251124 string // Always "computer_20251124" +``` + + +### func \(Computer20251124\) [Default]() + +```go +func (c Computer20251124) Default() Computer20251124 +``` + + + + +### func \(Computer20251124\) [MarshalJSON]() + +```go +func (c Computer20251124) MarshalJSON() ([]byte, error) +``` + + + + +## type [ComputerToolset20260801]() + + + +```go +type ComputerToolset20260801 string // Always "computer_toolset_20260801" +``` + + +### func \(ComputerToolset20260801\) [Default]() + +```go +func (c ComputerToolset20260801) Default() ComputerToolset20260801 +``` + + + + +### func \(ComputerToolset20260801\) [MarshalJSON]() + +```go +func (c ComputerToolset20260801) MarshalJSON() ([]byte, error) +``` + + + + +## type [ConflictError]() + + + +```go +type ConflictError string // Always "conflict_error" +``` + + +### func \(ConflictError\) [Default]() + +```go +func (c ConflictError) Default() ConflictError +``` + + + + +### func \(ConflictError\) [MarshalJSON]() + +```go +func (c ConflictError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Constant]() + + + +```go +type Constant[T any] interface { + Default() T +} +``` + + +## type [ContainerUpload]() + + + +```go +type ContainerUpload string // Always "container_upload" +``` + + +### func \(ContainerUpload\) [Default]() + +```go +func (c ContainerUpload) Default() ContainerUpload +``` + + + + +### func \(ContainerUpload\) [MarshalJSON]() + +```go +func (c ContainerUpload) MarshalJSON() ([]byte, error) +``` + + + + +## type [Content]() + + + +```go +type Content string // Always "content" +``` + + +### func \(Content\) [Default]() + +```go +func (c Content) Default() Content +``` + + + + +### func \(Content\) [MarshalJSON]() + +```go +func (c Content) MarshalJSON() ([]byte, error) +``` + + + + +## type [ContentBlockDelta]() + + + +```go +type ContentBlockDelta string // Always "content_block_delta" +``` + + +### func \(ContentBlockDelta\) [Default]() + +```go +func (c ContentBlockDelta) Default() ContentBlockDelta +``` + + + + +### func \(ContentBlockDelta\) [MarshalJSON]() + +```go +func (c ContentBlockDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [ContentBlockLocation]() + + + +```go +type ContentBlockLocation string // Always "content_block_location" +``` + + +### func \(ContentBlockLocation\) [Default]() + +```go +func (c ContentBlockLocation) Default() ContentBlockLocation +``` + + + + +### func \(ContentBlockLocation\) [MarshalJSON]() + +```go +func (c ContentBlockLocation) MarshalJSON() ([]byte, error) +``` + + + + +## type [ContentBlockStart]() + + + +```go +type ContentBlockStart string // Always "content_block_start" +``` + + +### func \(ContentBlockStart\) [Default]() + +```go +func (c ContentBlockStart) Default() ContentBlockStart +``` + + + + +### func \(ContentBlockStart\) [MarshalJSON]() + +```go +func (c ContentBlockStart) MarshalJSON() ([]byte, error) +``` + + + + +## type [ContentBlockStop]() + + + +```go +type ContentBlockStop string // Always "content_block_stop" +``` + + +### func \(ContentBlockStop\) [Default]() + +```go +func (c ContentBlockStop) Default() ContentBlockStop +``` + + + + +### func \(ContentBlockStop\) [MarshalJSON]() + +```go +func (c ContentBlockStop) MarshalJSON() ([]byte, error) +``` + + + + +## type [Create]() + + + +```go +type Create string // Always "create" +``` + + +### func \(Create\) [Default]() + +```go +func (c Create) Default() Create +``` + + + + +### func \(Create\) [MarshalJSON]() + +```go +func (c Create) MarshalJSON() ([]byte, error) +``` + + + + +## type [Default]() + + + +```go +type Default string // Always "default" +``` + + +### func \(Default\) [Default]() + +```go +func (c Default) Default() Default +``` + + + + +### func \(Default\) [MarshalJSON]() + +```go +func (c Default) MarshalJSON() ([]byte, error) +``` + + + + +## type [Delete]() + + + +```go +type Delete string // Always "delete" +``` + + +### func \(Delete\) [Default]() + +```go +func (c Delete) Default() Delete +``` + + + + +### func \(Delete\) [MarshalJSON]() + +```go +func (c Delete) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentArchived]() + + + +```go +type DeploymentArchived string // Always "deployment.archived" +``` + + +### func \(DeploymentArchived\) [Default]() + +```go +func (c DeploymentArchived) Default() DeploymentArchived +``` + + + + +### func \(DeploymentArchived\) [MarshalJSON]() + +```go +func (c DeploymentArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentCreated]() + + + +```go +type DeploymentCreated string // Always "deployment.created" +``` + + +### func \(DeploymentCreated\) [Default]() + +```go +func (c DeploymentCreated) Default() DeploymentCreated +``` + + + + +### func \(DeploymentCreated\) [MarshalJSON]() + +```go +func (c DeploymentCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentDeleted]() + + + +```go +type DeploymentDeleted string // Always "deployment.deleted" +``` + + +### func \(DeploymentDeleted\) [Default]() + +```go +func (c DeploymentDeleted) Default() DeploymentDeleted +``` + + + + +### func \(DeploymentDeleted\) [MarshalJSON]() + +```go +func (c DeploymentDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentPaused]() + + + +```go +type DeploymentPaused string // Always "deployment.paused" +``` + + +### func \(DeploymentPaused\) [Default]() + +```go +func (c DeploymentPaused) Default() DeploymentPaused +``` + + + + +### func \(DeploymentPaused\) [MarshalJSON]() + +```go +func (c DeploymentPaused) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentRunFailed]() + + + +```go +type DeploymentRunFailed string // Always "deployment_run.failed" +``` + + +### func \(DeploymentRunFailed\) [Default]() + +```go +func (c DeploymentRunFailed) Default() DeploymentRunFailed +``` + + + + +### func \(DeploymentRunFailed\) [MarshalJSON]() + +```go +func (c DeploymentRunFailed) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentRunStarted]() + + + +```go +type DeploymentRunStarted string // Always "deployment_run.started" +``` + + +### func \(DeploymentRunStarted\) [Default]() + +```go +func (c DeploymentRunStarted) Default() DeploymentRunStarted +``` + + + + +### func \(DeploymentRunStarted\) [MarshalJSON]() + +```go +func (c DeploymentRunStarted) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentRunSucceeded]() + + + +```go +type DeploymentRunSucceeded string // Always "deployment_run.succeeded" +``` + + +### func \(DeploymentRunSucceeded\) [Default]() + +```go +func (c DeploymentRunSucceeded) Default() DeploymentRunSucceeded +``` + + + + +### func \(DeploymentRunSucceeded\) [MarshalJSON]() + +```go +func (c DeploymentRunSucceeded) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentUnpaused]() + + + +```go +type DeploymentUnpaused string // Always "deployment.unpaused" +``` + + +### func \(DeploymentUnpaused\) [Default]() + +```go +func (c DeploymentUnpaused) Default() DeploymentUnpaused +``` + + + + +### func \(DeploymentUnpaused\) [MarshalJSON]() + +```go +func (c DeploymentUnpaused) MarshalJSON() ([]byte, error) +``` + + + + +## type [DeploymentUpdated]() + + + +```go +type DeploymentUpdated string // Always "deployment.updated" +``` + + +### func \(DeploymentUpdated\) [Default]() + +```go +func (c DeploymentUpdated) Default() DeploymentUpdated +``` + + + + +### func \(DeploymentUpdated\) [MarshalJSON]() + +```go +func (c DeploymentUpdated) MarshalJSON() ([]byte, error) +``` + + + + +## type [Direct]() + + + +```go +type Direct string // Always "direct" +``` + + +### func \(Direct\) [Default]() + +```go +func (c Direct) Default() Direct +``` + + + + +### func \(Direct\) [MarshalJSON]() + +```go +func (c Direct) MarshalJSON() ([]byte, error) +``` + + + + +## type [Disabled]() + + + +```go +type Disabled string // Always "disabled" +``` + + +### func \(Disabled\) [Default]() + +```go +func (c Disabled) Default() Disabled +``` + + + + +### func \(Disabled\) [MarshalJSON]() + +```go +func (c Disabled) MarshalJSON() ([]byte, error) +``` + + + + +## type [Discovery]() + + + +```go +type Discovery string // Always "discovery" +``` + + +### func \(Discovery\) [Default]() + +```go +func (c Discovery) Default() Discovery +``` + + + + +### func \(Discovery\) [MarshalJSON]() + +```go +func (c Discovery) MarshalJSON() ([]byte, error) +``` + + + + +## type [Document]() + + + +```go +type Document string // Always "document" +``` + + +### func \(Document\) [Default]() + +```go +func (c Document) Default() Document +``` + + + + +### func \(Document\) [MarshalJSON]() + +```go +func (c Document) MarshalJSON() ([]byte, error) +``` + + + + +## type [DownloadCompleted]() + + + +```go +type DownloadCompleted string // Always "download_completed" +``` + + +### func \(DownloadCompleted\) [Default]() + +```go +func (c DownloadCompleted) Default() DownloadCompleted +``` + + + + +### func \(DownloadCompleted\) [MarshalJSON]() + +```go +func (c DownloadCompleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [DownloadFailed]() + + + +```go +type DownloadFailed string // Always "download_failed" +``` + + +### func \(DownloadFailed\) [Default]() + +```go +func (c DownloadFailed) Default() DownloadFailed +``` + + + + +### func \(DownloadFailed\) [MarshalJSON]() + +```go +func (c DownloadFailed) MarshalJSON() ([]byte, error) +``` + + + + +## type [DownloadStarted]() + + + +```go +type DownloadStarted string // Always "download_started" +``` + + +### func \(DownloadStarted\) [Default]() + +```go +func (c DownloadStarted) Default() DownloadStarted +``` + + + + +### func \(DownloadStarted\) [MarshalJSON]() + +```go +func (c DownloadStarted) MarshalJSON() ([]byte, error) +``` + + + + +## type [Edit]() + + + +```go +type Edit string // Always "edit" +``` + + +### func \(Edit\) [Default]() + +```go +func (c Edit) Default() Edit +``` + + + + +### func \(Edit\) [MarshalJSON]() + +```go +func (c Edit) MarshalJSON() ([]byte, error) +``` + + + + +## type [Enabled]() + + + +```go +type Enabled string // Always "enabled" +``` + + +### func \(Enabled\) [Default]() + +```go +func (c Enabled) Default() Enabled +``` + + + + +### func \(Enabled\) [MarshalJSON]() + +```go +func (c Enabled) MarshalJSON() ([]byte, error) +``` + + + + +## type [EncryptedCodeExecutionResult]() + + + +```go +type EncryptedCodeExecutionResult string // Always "encrypted_code_execution_result" +``` + + +### func \(EncryptedCodeExecutionResult\) [Default]() + +```go +func (c EncryptedCodeExecutionResult) Default() EncryptedCodeExecutionResult +``` + + + + +### func \(EncryptedCodeExecutionResult\) [MarshalJSON]() + +```go +func (c EncryptedCodeExecutionResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [Environment]() + + + +```go +type Environment string // Always "environment" +``` + + +### func \(Environment\) [Default]() + +```go +func (c Environment) Default() Environment +``` + + + + +### func \(Environment\) [MarshalJSON]() + +```go +func (c Environment) MarshalJSON() ([]byte, error) +``` + + + + +## type [EnvironmentArchived]() + + + +```go +type EnvironmentArchived string // Always "environment.archived" +``` + + +### func \(EnvironmentArchived\) [Default]() + +```go +func (c EnvironmentArchived) Default() EnvironmentArchived +``` + + + + +### func \(EnvironmentArchived\) [MarshalJSON]() + +```go +func (c EnvironmentArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [EnvironmentCreated]() + + + +```go +type EnvironmentCreated string // Always "environment.created" +``` + + +### func \(EnvironmentCreated\) [Default]() + +```go +func (c EnvironmentCreated) Default() EnvironmentCreated +``` + + + + +### func \(EnvironmentCreated\) [MarshalJSON]() + +```go +func (c EnvironmentCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [EnvironmentDeleted]() + + + +```go +type EnvironmentDeleted string // Always "environment.deleted" +``` + + +### func \(EnvironmentDeleted\) [Default]() + +```go +func (c EnvironmentDeleted) Default() EnvironmentDeleted +``` + + + + +### func \(EnvironmentDeleted\) [MarshalJSON]() + +```go +func (c EnvironmentDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [EnvironmentUpdated]() + + + +```go +type EnvironmentUpdated string // Always "environment.updated" +``` + + +### func \(EnvironmentUpdated\) [Default]() + +```go +func (c EnvironmentUpdated) Default() EnvironmentUpdated +``` + + + + +### func \(EnvironmentUpdated\) [MarshalJSON]() + +```go +func (c EnvironmentUpdated) MarshalJSON() ([]byte, error) +``` + + + + +## type [Ephemeral]() + + + +```go +type Ephemeral string // Always "ephemeral" +``` + + +### func \(Ephemeral\) [Default]() + +```go +func (c Ephemeral) Default() Ephemeral +``` + + + + +### func \(Ephemeral\) [MarshalJSON]() + +```go +func (c Ephemeral) MarshalJSON() ([]byte, error) +``` + + + + +## type [Error]() + + + +```go +type Error string // Always "error" +``` + + +### func \(Error\) [Default]() + +```go +func (c Error) Default() Error +``` + + + + +### func \(Error\) [MarshalJSON]() + +```go +func (c Error) MarshalJSON() ([]byte, error) +``` + + + + +## type [Errored]() + + + +```go +type Errored string // Always "errored" +``` + + +### func \(Errored\) [Default]() + +```go +func (c Errored) Default() Errored +``` + + + + +### func \(Errored\) [MarshalJSON]() + +```go +func (c Errored) MarshalJSON() ([]byte, error) +``` + + + + +## type [Event]() + + + +```go +type Event string // Always "event" +``` + + +### func \(Event\) [Default]() + +```go +func (c Event) Default() Event +``` + + + + +### func \(Event\) [MarshalJSON]() + +```go +func (c Event) MarshalJSON() ([]byte, error) +``` + + + + +## type [Expired]() + + + +```go +type Expired string // Always "expired" +``` + + +### func \(Expired\) [Default]() + +```go +func (c Expired) Default() Expired +``` + + + + +### func \(Expired\) [MarshalJSON]() + +```go +func (c Expired) MarshalJSON() ([]byte, error) +``` + + + + +## type [ExplicitURL]() + + + +```go +type ExplicitURL string // Always "explicit_url" +``` + + +### func \(ExplicitURL\) [Default]() + +```go +func (c ExplicitURL) Default() ExplicitURL +``` + + + + +### func \(ExplicitURL\) [MarshalJSON]() + +```go +func (c ExplicitURL) MarshalJSON() ([]byte, error) +``` + + + + +## type [ExternalKey]() + + + +```go +type ExternalKey string // Always "external_key" +``` + + +### func \(ExternalKey\) [Default]() + +```go +func (c ExternalKey) Default() ExternalKey +``` + + + + +### func \(ExternalKey\) [MarshalJSON]() + +```go +func (c ExternalKey) MarshalJSON() ([]byte, error) +``` + + + + +## type [ExternalKeyDeleted]() + + + +```go +type ExternalKeyDeleted string // Always "external_key_deleted" +``` + + +### func \(ExternalKeyDeleted\) [Default]() + +```go +func (c ExternalKeyDeleted) Default() ExternalKeyDeleted +``` + + + + +### func \(ExternalKeyDeleted\) [MarshalJSON]() + +```go +func (c ExternalKeyDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [ExternalKeyValidation]() + + + +```go +type ExternalKeyValidation string // Always "external_key_validation" +``` + + +### func \(ExternalKeyValidation\) [Default]() + +```go +func (c ExternalKeyValidation) Default() ExternalKeyValidation +``` + + + + +### func \(ExternalKeyValidation\) [MarshalJSON]() + +```go +func (c ExternalKeyValidation) MarshalJSON() ([]byte, error) +``` + + + + +## type [Fallback]() + + + +```go +type Fallback string // Always "fallback" +``` + + +### func \(Fallback\) [Default]() + +```go +func (c Fallback) Default() Fallback +``` + + + + +### func \(Fallback\) [MarshalJSON]() + +```go +func (c Fallback) MarshalJSON() ([]byte, error) +``` + + + + +## type [FallbackMessage]() + + + +```go +type FallbackMessage string // Always "fallback_message" +``` + + +### func \(FallbackMessage\) [Default]() + +```go +func (c FallbackMessage) Default() FallbackMessage +``` + + + + +### func \(FallbackMessage\) [MarshalJSON]() + +```go +func (c FallbackMessage) MarshalJSON() ([]byte, error) +``` + + + + +## type [FederationIssuer]() + + + +```go +type FederationIssuer string // Always "federation_issuer" +``` + + +### func \(FederationIssuer\) [Default]() + +```go +func (c FederationIssuer) Default() FederationIssuer +``` + + + + +### func \(FederationIssuer\) [MarshalJSON]() + +```go +func (c FederationIssuer) MarshalJSON() ([]byte, error) +``` + + + + +## type [FederationRule]() + + + +```go +type FederationRule string // Always "federation_rule" +``` + + +### func \(FederationRule\) [Default]() + +```go +func (c FederationRule) Default() FederationRule +``` + + + + +### func \(FederationRule\) [MarshalJSON]() + +```go +func (c FederationRule) MarshalJSON() ([]byte, error) +``` + + + + +## type [FederationRuleWorkspace]() + + + +```go +type FederationRuleWorkspace string // Always "federation_rule_workspace" +``` + + +### func \(FederationRuleWorkspace\) [Default]() + +```go +func (c FederationRuleWorkspace) Default() FederationRuleWorkspace +``` + + + + +### func \(FederationRuleWorkspace\) [MarshalJSON]() + +```go +func (c FederationRuleWorkspace) MarshalJSON() ([]byte, error) +``` + + + + +## type [FederationRuleWorkspaceDeleted]() + + + +```go +type FederationRuleWorkspaceDeleted string // Always "federation_rule_workspace_deleted" +``` + + +### func \(FederationRuleWorkspaceDeleted\) [Default]() + +```go +func (c FederationRuleWorkspaceDeleted) Default() FederationRuleWorkspaceDeleted +``` + + + + +### func \(FederationRuleWorkspaceDeleted\) [MarshalJSON]() + +```go +func (c FederationRuleWorkspaceDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [File]() + + + +```go +type File string // Always "file" +``` + + +### func \(File\) [Default]() + +```go +func (c File) Default() File +``` + + + + +### func \(File\) [MarshalJSON]() + +```go +func (c File) MarshalJSON() ([]byte, error) +``` + + + + +## type [GCP]() + + + +```go +type GCP string // Always "gcp" +``` + + +### func \(GCP\) [Default]() + +```go +func (c GCP) Default() GCP +``` + + + + +### func \(GCP\) [MarshalJSON]() + +```go +func (c GCP) MarshalJSON() ([]byte, error) +``` + + + + +## type [Glob]() + + + +```go +type Glob string // Always "glob" +``` + + +### func \(Glob\) [Default]() + +```go +func (c Glob) Default() Glob +``` + + + + +### func \(Glob\) [MarshalJSON]() + +```go +func (c Glob) MarshalJSON() ([]byte, error) +``` + + + + +## type [Grep]() + + + +```go +type Grep string // Always "grep" +``` + + +### func \(Grep\) [Default]() + +```go +func (c Grep) Default() Grep +``` + + + + +### func \(Grep\) [MarshalJSON]() + +```go +func (c Grep) MarshalJSON() ([]byte, error) +``` + + + + +## type [Image]() + + + +```go +type Image string // Always "image" +``` + + +### func \(Image\) [Default]() + +```go +func (c Image) Default() Image +``` + + + + +### func \(Image\) [MarshalJSON]() + +```go +func (c Image) MarshalJSON() ([]byte, error) +``` + + + + +## type [Inline]() + + + +```go +type Inline string // Always "inline" +``` + + +### func \(Inline\) [Default]() + +```go +func (c Inline) Default() Inline +``` + + + + +### func \(Inline\) [MarshalJSON]() + +```go +func (c Inline) MarshalJSON() ([]byte, error) +``` + + + + +## type [InputJSONDelta]() + + + +```go +type InputJSONDelta string // Always "input_json_delta" +``` + + +### func \(InputJSONDelta\) [Default]() + +```go +func (c InputJSONDelta) Default() InputJSONDelta +``` + + + + +### func \(InputJSONDelta\) [MarshalJSON]() + +```go +func (c InputJSONDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [InputTokens]() + + + +```go +type InputTokens string // Always "input_tokens" +``` + + +### func \(InputTokens\) [Default]() + +```go +func (c InputTokens) Default() InputTokens +``` + + + + +### func \(InputTokens\) [MarshalJSON]() + +```go +func (c InputTokens) MarshalJSON() ([]byte, error) +``` + + + + +## type [Insert]() + + + +```go +type Insert string // Always "insert" +``` + + +### func \(Insert\) [Default]() + +```go +func (c Insert) Default() Insert +``` + + + + +### func \(Insert\) [MarshalJSON]() + +```go +func (c Insert) MarshalJSON() ([]byte, error) +``` + + + + +## type [InvalidRequestError]() + + + +```go +type InvalidRequestError string // Always "invalid_request_error" +``` + + +### func \(InvalidRequestError\) [Default]() + +```go +func (c InvalidRequestError) Default() InvalidRequestError +``` + + + + +### func \(InvalidRequestError\) [MarshalJSON]() + +```go +func (c InvalidRequestError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Invite]() + + + +```go +type Invite string // Always "invite" +``` + + +### func \(Invite\) [Default]() + +```go +func (c Invite) Default() Invite +``` + + + + +### func \(Invite\) [MarshalJSON]() + +```go +func (c Invite) MarshalJSON() ([]byte, error) +``` + + + + +## type [InviteDeleted]() + + + +```go +type InviteDeleted string // Always "invite_deleted" +``` + + +### func \(InviteDeleted\) [Default]() + +```go +func (c InviteDeleted) Default() InviteDeleted +``` + + + + +### func \(InviteDeleted\) [MarshalJSON]() + +```go +func (c InviteDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [JSONSchema]() + + + +```go +type JSONSchema string // Always "json_schema" +``` + + +### func \(JSONSchema\) [Default]() + +```go +func (c JSONSchema) Default() JSONSchema +``` + + + + +### func \(JSONSchema\) [MarshalJSON]() + +```go +func (c JSONSchema) MarshalJSON() ([]byte, error) +``` + + + + +## type [Limited]() + + + +```go +type Limited string // Always "limited" +``` + + +### func \(Limited\) [Default]() + +```go +func (c Limited) Default() Limited +``` + + + + +### func \(Limited\) [MarshalJSON]() + +```go +func (c Limited) MarshalJSON() ([]byte, error) +``` + + + + +## type [MCPToolReference]() + + + +```go +type MCPToolReference string // Always "mcp_tool_reference" +``` + + +### func \(MCPToolReference\) [Default]() + +```go +func (c MCPToolReference) Default() MCPToolReference +``` + + + + +### func \(MCPToolReference\) [MarshalJSON]() + +```go +func (c MCPToolReference) MarshalJSON() ([]byte, error) +``` + + + + +## type [MCPToolResult]() + + + +```go +type MCPToolResult string // Always "mcp_tool_result" +``` + + +### func \(MCPToolResult\) [Default]() + +```go +func (c MCPToolResult) Default() MCPToolResult +``` + + + + +### func \(MCPToolResult\) [MarshalJSON]() + +```go +func (c MCPToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [MCPToolUse]() + + + +```go +type MCPToolUse string // Always "mcp_tool_use" +``` + + +### func \(MCPToolUse\) [Default]() + +```go +func (c MCPToolUse) Default() MCPToolUse +``` + + + + +### func \(MCPToolUse\) [MarshalJSON]() + +```go +func (c MCPToolUse) MarshalJSON() ([]byte, error) +``` + + + + +## type [MCPToolset]() + + + +```go +type MCPToolset string // Always "mcp_toolset" +``` + + +### func \(MCPToolset\) [Default]() + +```go +func (c MCPToolset) Default() MCPToolset +``` + + + + +### func \(MCPToolset\) [MarshalJSON]() + +```go +func (c MCPToolset) MarshalJSON() ([]byte, error) +``` + + + + +## type [MCPToolsetReference]() + + + +```go +type MCPToolsetReference string // Always "mcp_toolset_reference" +``` + + +### func \(MCPToolsetReference\) [Default]() + +```go +func (c MCPToolsetReference) Default() MCPToolsetReference +``` + + + + +### func \(MCPToolsetReference\) [MarshalJSON]() + +```go +func (c MCPToolsetReference) MarshalJSON() ([]byte, error) +``` + + + + +## type [Memory]() + + + +```go +type Memory string // Always "memory" +``` + + +### func \(Memory\) [Default]() + +```go +func (c Memory) Default() Memory +``` + + + + +### func \(Memory\) [MarshalJSON]() + +```go +func (c Memory) MarshalJSON() ([]byte, error) +``` + + + + +## type [Memory20250818]() + + + +```go +type Memory20250818 string // Always "memory_20250818" +``` + + +### func \(Memory20250818\) [Default]() + +```go +func (c Memory20250818) Default() Memory20250818 +``` + + + + +### func \(Memory20250818\) [MarshalJSON]() + +```go +func (c Memory20250818) MarshalJSON() ([]byte, error) +``` + + + + +## type [MemoryStoreArchived]() + + + +```go +type MemoryStoreArchived string // Always "memory_store.archived" +``` + + +### func \(MemoryStoreArchived\) [Default]() + +```go +func (c MemoryStoreArchived) Default() MemoryStoreArchived +``` + + + + +### func \(MemoryStoreArchived\) [MarshalJSON]() + +```go +func (c MemoryStoreArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [MemoryStoreCreated]() + + + +```go +type MemoryStoreCreated string // Always "memory_store.created" +``` + + +### func \(MemoryStoreCreated\) [Default]() + +```go +func (c MemoryStoreCreated) Default() MemoryStoreCreated +``` + + + + +### func \(MemoryStoreCreated\) [MarshalJSON]() + +```go +func (c MemoryStoreCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [MemoryStoreDeleted]() + + + +```go +type MemoryStoreDeleted string // Always "memory_store.deleted" +``` + + +### func \(MemoryStoreDeleted\) [Default]() + +```go +func (c MemoryStoreDeleted) Default() MemoryStoreDeleted +``` + + + + +### func \(MemoryStoreDeleted\) [MarshalJSON]() + +```go +func (c MemoryStoreDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [Message]() + + + +```go +type Message string // Always "message" +``` + + +### func \(Message\) [Default]() + +```go +func (c Message) Default() Message +``` + + + + +### func \(Message\) [MarshalJSON]() + +```go +func (c Message) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessageBatch]() + + + +```go +type MessageBatch string // Always "message_batch" +``` + + +### func \(MessageBatch\) [Default]() + +```go +func (c MessageBatch) Default() MessageBatch +``` + + + + +### func \(MessageBatch\) [MarshalJSON]() + +```go +func (c MessageBatch) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessageBatchDeleted]() + + + +```go +type MessageBatchDeleted string // Always "message_batch_deleted" +``` + + +### func \(MessageBatchDeleted\) [Default]() + +```go +func (c MessageBatchDeleted) Default() MessageBatchDeleted +``` + + + + +### func \(MessageBatchDeleted\) [MarshalJSON]() + +```go +func (c MessageBatchDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessageDelta]() + + + +```go +type MessageDelta string // Always "message_delta" +``` + + +### func \(MessageDelta\) [Default]() + +```go +func (c MessageDelta) Default() MessageDelta +``` + + + + +### func \(MessageDelta\) [MarshalJSON]() + +```go +func (c MessageDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessageStart]() + + + +```go +type MessageStart string // Always "message_start" +``` + + +### func \(MessageStart\) [Default]() + +```go +func (c MessageStart) Default() MessageStart +``` + + + + +### func \(MessageStart\) [MarshalJSON]() + +```go +func (c MessageStart) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessageStop]() + + + +```go +type MessageStop string // Always "message_stop" +``` + + +### func \(MessageStop\) [Default]() + +```go +func (c MessageStop) Default() MessageStop +``` + + + + +### func \(MessageStop\) [MarshalJSON]() + +```go +func (c MessageStop) MarshalJSON() ([]byte, error) +``` + + + + +## type [MessagesChanged]() + + + +```go +type MessagesChanged string // Always "messages_changed" +``` + + +### func \(MessagesChanged\) [Default]() + +```go +func (c MessagesChanged) Default() MessagesChanged +``` + + + + +### func \(MessagesChanged\) [MarshalJSON]() + +```go +func (c MessagesChanged) MarshalJSON() ([]byte, error) +``` + + + + +## type [Model]() + + + +```go +type Model string // Always "model" +``` + + +### func \(Model\) [Default]() + +```go +func (c Model) Default() Model +``` + + + + +### func \(Model\) [MarshalJSON]() + +```go +func (c Model) MarshalJSON() ([]byte, error) +``` + + + + +## type [ModelChanged]() + + + +```go +type ModelChanged string // Always "model_changed" +``` + + +### func \(ModelChanged\) [Default]() + +```go +func (c ModelChanged) Default() ModelChanged +``` + + + + +### func \(ModelChanged\) [MarshalJSON]() + +```go +func (c ModelChanged) MarshalJSON() ([]byte, error) +``` + + + + +## type [None]() + + + +```go +type None string // Always "none" +``` + + +### func \(None\) [Default]() + +```go +func (c None) Default() None +``` + + + + +### func \(None\) [MarshalJSON]() + +```go +func (c None) MarshalJSON() ([]byte, error) +``` + + + + +## type [NotApplied]() + + + +```go +type NotApplied string // Always "not_applied" +``` + + +### func \(NotApplied\) [Default]() + +```go +func (c NotApplied) Default() NotApplied +``` + + + + +### func \(NotApplied\) [MarshalJSON]() + +```go +func (c NotApplied) MarshalJSON() ([]byte, error) +``` + + + + +## type [NotFoundError]() + + + +```go +type NotFoundError string // Always "not_found_error" +``` + + +### func \(NotFoundError\) [Default]() + +```go +func (c NotFoundError) Default() NotFoundError +``` + + + + +### func \(NotFoundError\) [MarshalJSON]() + +```go +func (c NotFoundError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Object]() + + + +```go +type Object string // Always "object" +``` + + +### func \(Object\) [Default]() + +```go +func (c Object) Default() Object +``` + + + + +### func \(Object\) [MarshalJSON]() + +```go +func (c Object) MarshalJSON() ([]byte, error) +``` + + + + +## type [Organization]() + + + +```go +type Organization string // Always "organization" +``` + + +### func \(Organization\) [Default]() + +```go +func (c Organization) Default() Organization +``` + + + + +### func \(Organization\) [MarshalJSON]() + +```go +func (c Organization) MarshalJSON() ([]byte, error) +``` + + + + +## type [OverloadedError]() + + + +```go +type OverloadedError string // Always "overloaded_error" +``` + + +### func \(OverloadedError\) [Default]() + +```go +func (c OverloadedError) Default() OverloadedError +``` + + + + +### func \(OverloadedError\) [MarshalJSON]() + +```go +func (c OverloadedError) MarshalJSON() ([]byte, error) +``` + + + + +## type [PageLocation]() + + + +```go +type PageLocation string // Always "page_location" +``` + + +### func \(PageLocation\) [Default]() + +```go +func (c PageLocation) Default() PageLocation +``` + + + + +### func \(PageLocation\) [MarshalJSON]() + +```go +func (c PageLocation) MarshalJSON() ([]byte, error) +``` + + + + +## type [PermissionError]() + + + +```go +type PermissionError string // Always "permission_error" +``` + + +### func \(PermissionError\) [Default]() + +```go +func (c PermissionError) Default() PermissionError +``` + + + + +### func \(PermissionError\) [MarshalJSON]() + +```go +func (c PermissionError) MarshalJSON() ([]byte, error) +``` + + + + +## type [PreviousMessageNotFound]() + + + +```go +type PreviousMessageNotFound string // Always "previous_message_not_found" +``` + + +### func \(PreviousMessageNotFound\) [Default]() + +```go +func (c PreviousMessageNotFound) Default() PreviousMessageNotFound +``` + + + + +### func \(PreviousMessageNotFound\) [MarshalJSON]() + +```go +func (c PreviousMessageNotFound) MarshalJSON() ([]byte, error) +``` + + + + +## type [RateLimit]() + + + +```go +type RateLimit string // Always "rate_limit" +``` + + +### func \(RateLimit\) [Default]() + +```go +func (c RateLimit) Default() RateLimit +``` + + + + +### func \(RateLimit\) [MarshalJSON]() + +```go +func (c RateLimit) MarshalJSON() ([]byte, error) +``` + + + + +## type [RateLimitError]() + + + +```go +type RateLimitError string // Always "rate_limit_error" +``` + + +### func \(RateLimitError\) [Default]() + +```go +func (c RateLimitError) Default() RateLimitError +``` + + + + +### func \(RateLimitError\) [MarshalJSON]() + +```go +func (c RateLimitError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Read]() + + + +```go +type Read string // Always "read" +``` + + +### func \(Read\) [Default]() + +```go +func (c Read) Default() Read +``` + + + + +### func \(Read\) [MarshalJSON]() + +```go +func (c Read) MarshalJSON() ([]byte, error) +``` + + + + +## type [RedactedThinking]() + + + +```go +type RedactedThinking string // Always "redacted_thinking" +``` + + +### func \(RedactedThinking\) [Default]() + +```go +func (c RedactedThinking) Default() RedactedThinking +``` + + + + +### func \(RedactedThinking\) [MarshalJSON]() + +```go +func (c RedactedThinking) MarshalJSON() ([]byte, error) +``` + + + + +## type [Redeemed]() + + + +```go +type Redeemed string // Always "redeemed" +``` + + +### func \(Redeemed\) [Default]() + +```go +func (c Redeemed) Default() Redeemed +``` + + + + +### func \(Redeemed\) [MarshalJSON]() + +```go +func (c Redeemed) MarshalJSON() ([]byte, error) +``` + + + + +## type [Refusal]() + + + +```go +type Refusal string // Always "refusal" +``` + + +### func \(Refusal\) [Default]() + +```go +func (c Refusal) Default() Refusal +``` + + + + +### func \(Refusal\) [MarshalJSON]() + +```go +func (c Refusal) MarshalJSON() ([]byte, error) +``` + + + + +## type [Rename]() + + + +```go +type Rename string // Always "rename" +``` + + +### func \(Rename\) [Default]() + +```go +func (c Rename) Default() Rename +``` + + + + +### func \(Rename\) [MarshalJSON]() + +```go +func (c Rename) MarshalJSON() ([]byte, error) +``` + + + + +## type [SearchResult]() + + + +```go +type SearchResult string // Always "search_result" +``` + + +### func \(SearchResult\) [Default]() + +```go +func (c SearchResult) Default() SearchResult +``` + + + + +### func \(SearchResult\) [MarshalJSON]() + +```go +func (c SearchResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [SearchResultLocation]() + + + +```go +type SearchResultLocation string // Always "search_result_location" +``` + + +### func \(SearchResultLocation\) [Default]() + +```go +func (c SearchResultLocation) Default() SearchResultLocation +``` + + + + +### func \(SearchResultLocation\) [MarshalJSON]() + +```go +func (c SearchResultLocation) MarshalJSON() ([]byte, error) +``` + + + + +## type [SelfHosted]() + + + +```go +type SelfHosted string // Always "self_hosted" +``` + + +### func \(SelfHosted\) [Default]() + +```go +func (c SelfHosted) Default() SelfHosted +``` + + + + +### func \(SelfHosted\) [MarshalJSON]() + +```go +func (c SelfHosted) MarshalJSON() ([]byte, error) +``` + + + + +## type [ServerToolUse]() + + + +```go +type ServerToolUse string // Always "server_tool_use" +``` + + +### func \(ServerToolUse\) [Default]() + +```go +func (c ServerToolUse) Default() ServerToolUse +``` + + + + +### func \(ServerToolUse\) [MarshalJSON]() + +```go +func (c ServerToolUse) MarshalJSON() ([]byte, error) +``` + + + + +## type [ServiceAccount]() + + + +```go +type ServiceAccount string // Always "service_account" +``` + + +### func \(ServiceAccount\) [Default]() + +```go +func (c ServiceAccount) Default() ServiceAccount +``` + + + + +### func \(ServiceAccount\) [MarshalJSON]() + +```go +func (c ServiceAccount) MarshalJSON() ([]byte, error) +``` + + + + +## type [ServiceAccountActor]() + + + +```go +type ServiceAccountActor string // Always "service_account_actor" +``` + + +### func \(ServiceAccountActor\) [Default]() + +```go +func (c ServiceAccountActor) Default() ServiceAccountActor +``` + + + + +### func \(ServiceAccountActor\) [MarshalJSON]() + +```go +func (c ServiceAccountActor) MarshalJSON() ([]byte, error) +``` + + + + +## type [ServiceAccountWorkspaceMember]() + + + +```go +type ServiceAccountWorkspaceMember string // Always "service_account_workspace_member" +``` + + +### func \(ServiceAccountWorkspaceMember\) [Default]() + +```go +func (c ServiceAccountWorkspaceMember) Default() ServiceAccountWorkspaceMember +``` + + + + +### func \(ServiceAccountWorkspaceMember\) [MarshalJSON]() + +```go +func (c ServiceAccountWorkspaceMember) MarshalJSON() ([]byte, error) +``` + + + + +## type [ServiceAccountWorkspaceMemberDeleted]() + + + +```go +type ServiceAccountWorkspaceMemberDeleted string // Always "service_account_workspace_member_deleted" +``` + + +### func \(ServiceAccountWorkspaceMemberDeleted\) [Default]() + +```go +func (c ServiceAccountWorkspaceMemberDeleted) Default() ServiceAccountWorkspaceMemberDeleted +``` + + + + +### func \(ServiceAccountWorkspaceMemberDeleted\) [MarshalJSON]() + +```go +func (c ServiceAccountWorkspaceMemberDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [Session]() + + + +```go +type Session string // Always "session" +``` + + +### func \(Session\) [Default]() + +```go +func (c Session) Default() Session +``` + + + + +### func \(Session\) [MarshalJSON]() + +```go +func (c Session) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionArchived]() + + + +```go +type SessionArchived string // Always "session.archived" +``` + + +### func \(SessionArchived\) [Default]() + +```go +func (c SessionArchived) Default() SessionArchived +``` + + + + +### func \(SessionArchived\) [MarshalJSON]() + +```go +func (c SessionArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionBudgetReached]() + + + +```go +type SessionBudgetReached string // Always "session.budget_reached" +``` + + +### func \(SessionBudgetReached\) [Default]() + +```go +func (c SessionBudgetReached) Default() SessionBudgetReached +``` + + + + +### func \(SessionBudgetReached\) [MarshalJSON]() + +```go +func (c SessionBudgetReached) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionCreated]() + + + +```go +type SessionCreated string // Always "session.created" +``` + + +### func \(SessionCreated\) [Default]() + +```go +func (c SessionCreated) Default() SessionCreated +``` + + + + +### func \(SessionCreated\) [MarshalJSON]() + +```go +func (c SessionCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionDeleted]() + + + +```go +type SessionDeleted string // Always "session.deleted" +``` + + +### func \(SessionDeleted\) [Default]() + +```go +func (c SessionDeleted) Default() SessionDeleted +``` + + + + +### func \(SessionDeleted\) [MarshalJSON]() + +```go +func (c SessionDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionIdled]() + + + +```go +type SessionIdled string // Always "session.idled" +``` + + +### func \(SessionIdled\) [Default]() + +```go +func (c SessionIdled) Default() SessionIdled +``` + + + + +### func \(SessionIdled\) [MarshalJSON]() + +```go +func (c SessionIdled) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionOutcomeEvaluationEnded]() + + + +```go +type SessionOutcomeEvaluationEnded string // Always "session.outcome_evaluation_ended" +``` + + +### func \(SessionOutcomeEvaluationEnded\) [Default]() + +```go +func (c SessionOutcomeEvaluationEnded) Default() SessionOutcomeEvaluationEnded +``` + + + + +### func \(SessionOutcomeEvaluationEnded\) [MarshalJSON]() + +```go +func (c SessionOutcomeEvaluationEnded) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionPending]() + + + +```go +type SessionPending string // Always "session.pending" +``` + + +### func \(SessionPending\) [Default]() + +```go +func (c SessionPending) Default() SessionPending +``` + + + + +### func \(SessionPending\) [MarshalJSON]() + +```go +func (c SessionPending) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionRequiresAction]() + + + +```go +type SessionRequiresAction string // Always "session.requires_action" +``` + + +### func \(SessionRequiresAction\) [Default]() + +```go +func (c SessionRequiresAction) Default() SessionRequiresAction +``` + + + + +### func \(SessionRequiresAction\) [MarshalJSON]() + +```go +func (c SessionRequiresAction) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionRunning]() + + + +```go +type SessionRunning string // Always "session.running" +``` + + +### func \(SessionRunning\) [Default]() + +```go +func (c SessionRunning) Default() SessionRunning +``` + + + + +### func \(SessionRunning\) [MarshalJSON]() + +```go +func (c SessionRunning) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionStatusIdled]() + + + +```go +type SessionStatusIdled string // Always "session.status_idled" +``` + + +### func \(SessionStatusIdled\) [Default]() + +```go +func (c SessionStatusIdled) Default() SessionStatusIdled +``` + + + + +### func \(SessionStatusIdled\) [MarshalJSON]() + +```go +func (c SessionStatusIdled) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionStatusRescheduled]() + + + +```go +type SessionStatusRescheduled string // Always "session.status_rescheduled" +``` + + +### func \(SessionStatusRescheduled\) [Default]() + +```go +func (c SessionStatusRescheduled) Default() SessionStatusRescheduled +``` + + + + +### func \(SessionStatusRescheduled\) [MarshalJSON]() + +```go +func (c SessionStatusRescheduled) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionStatusRunStarted]() + + + +```go +type SessionStatusRunStarted string // Always "session.status_run_started" +``` + + +### func \(SessionStatusRunStarted\) [Default]() + +```go +func (c SessionStatusRunStarted) Default() SessionStatusRunStarted +``` + + + + +### func \(SessionStatusRunStarted\) [MarshalJSON]() + +```go +func (c SessionStatusRunStarted) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionStatusTerminated]() + + + +```go +type SessionStatusTerminated string // Always "session.status_terminated" +``` + + +### func \(SessionStatusTerminated\) [Default]() + +```go +func (c SessionStatusTerminated) Default() SessionStatusTerminated +``` + + + + +### func \(SessionStatusTerminated\) [MarshalJSON]() + +```go +func (c SessionStatusTerminated) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionThreadCreated]() + + + +```go +type SessionThreadCreated string // Always "session.thread_created" +``` + + +### func \(SessionThreadCreated\) [Default]() + +```go +func (c SessionThreadCreated) Default() SessionThreadCreated +``` + + + + +### func \(SessionThreadCreated\) [MarshalJSON]() + +```go +func (c SessionThreadCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionThreadIdled]() + + + +```go +type SessionThreadIdled string // Always "session.thread_idled" +``` + + +### func \(SessionThreadIdled\) [Default]() + +```go +func (c SessionThreadIdled) Default() SessionThreadIdled +``` + + + + +### func \(SessionThreadIdled\) [MarshalJSON]() + +```go +func (c SessionThreadIdled) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionThreadTerminated]() + + + +```go +type SessionThreadTerminated string // Always "session.thread_terminated" +``` + + +### func \(SessionThreadTerminated\) [Default]() + +```go +func (c SessionThreadTerminated) Default() SessionThreadTerminated +``` + + + + +### func \(SessionThreadTerminated\) [MarshalJSON]() + +```go +func (c SessionThreadTerminated) MarshalJSON() ([]byte, error) +``` + + + + +## type [SessionUpdated]() + + + +```go +type SessionUpdated string // Always "session.updated" +``` + + +### func \(SessionUpdated\) [Default]() + +```go +func (c SessionUpdated) Default() SessionUpdated +``` + + + + +### func \(SessionUpdated\) [MarshalJSON]() + +```go +func (c SessionUpdated) MarshalJSON() ([]byte, error) +``` + + + + +## type [SignatureDelta]() + + + +```go +type SignatureDelta string // Always "signature_delta" +``` + + +### func \(SignatureDelta\) [Default]() + +```go +func (c SignatureDelta) Default() SignatureDelta +``` + + + + +### func \(SignatureDelta\) [MarshalJSON]() + +```go +func (c SignatureDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [Skill]() + + + +```go +type Skill string // Always "skill" +``` + + +### func \(Skill\) [Default]() + +```go +func (c Skill) Default() Skill +``` + + + + +### func \(Skill\) [MarshalJSON]() + +```go +func (c Skill) MarshalJSON() ([]byte, error) +``` + + + + +## type [SkillDeleted]() + + + +```go +type SkillDeleted string // Always "skill_deleted" +``` + + +### func \(SkillDeleted\) [Default]() + +```go +func (c SkillDeleted) Default() SkillDeleted +``` + + + + +### func \(SkillDeleted\) [MarshalJSON]() + +```go +func (c SkillDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [SkillVersion]() + + + +```go +type SkillVersion string // Always "skill_version" +``` + + +### func \(SkillVersion\) [Default]() + +```go +func (c SkillVersion) Default() SkillVersion +``` + + + + +### func \(SkillVersion\) [MarshalJSON]() + +```go +func (c SkillVersion) MarshalJSON() ([]byte, error) +``` + + + + +## type [SkillVersionDeleted]() + + + +```go +type SkillVersionDeleted string // Always "skill_version_deleted" +``` + + +### func \(SkillVersionDeleted\) [Default]() + +```go +func (c SkillVersionDeleted) Default() SkillVersionDeleted +``` + + + + +### func \(SkillVersionDeleted\) [MarshalJSON]() + +```go +func (c SkillVersionDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [StrReplace]() + + + +```go +type StrReplace string // Always "str_replace" +``` + + +### func \(StrReplace\) [Default]() + +```go +func (c StrReplace) Default() StrReplace +``` + + + + +### func \(StrReplace\) [MarshalJSON]() + +```go +func (c StrReplace) MarshalJSON() ([]byte, error) +``` + + + + +## type [StrReplaceBasedEditTool]() + + + +```go +type StrReplaceBasedEditTool string // Always "str_replace_based_edit_tool" +``` + + +### func \(StrReplaceBasedEditTool\) [Default]() + +```go +func (c StrReplaceBasedEditTool) Default() StrReplaceBasedEditTool +``` + + + + +### func \(StrReplaceBasedEditTool\) [MarshalJSON]() + +```go +func (c StrReplaceBasedEditTool) MarshalJSON() ([]byte, error) +``` + + + + +## type [StrReplaceEditor]() + + + +```go +type StrReplaceEditor string // Always "str_replace_editor" +``` + + +### func \(StrReplaceEditor\) [Default]() + +```go +func (c StrReplaceEditor) Default() StrReplaceEditor +``` + + + + +### func \(StrReplaceEditor\) [MarshalJSON]() + +```go +func (c StrReplaceEditor) MarshalJSON() ([]byte, error) +``` + + + + +## type [Succeeded]() + + + +```go +type Succeeded string // Always "succeeded" +``` + + +### func \(Succeeded\) [Default]() + +```go +func (c Succeeded) Default() Succeeded +``` + + + + +### func \(Succeeded\) [MarshalJSON]() + +```go +func (c Succeeded) MarshalJSON() ([]byte, error) +``` + + + + +## type [SystemChanged]() + + + +```go +type SystemChanged string // Always "system_changed" +``` + + +### func \(SystemChanged\) [Default]() + +```go +func (c SystemChanged) Default() SystemChanged +``` + + + + +### func \(SystemChanged\) [MarshalJSON]() + +```go +func (c SystemChanged) MarshalJSON() ([]byte, error) +``` + + + + +## type [TabOpened]() + + + +```go +type TabOpened string // Always "tab_opened" +``` + + +### func \(TabOpened\) [Default]() + +```go +func (c TabOpened) Default() TabOpened +``` + + + + +### func \(TabOpened\) [MarshalJSON]() + +```go +func (c TabOpened) MarshalJSON() ([]byte, error) +``` + + + + +## type [Text]() + + + +```go +type Text string // Always "text" +``` + + +### func \(Text\) [Default]() + +```go +func (c Text) Default() Text +``` + + + + +### func \(Text\) [MarshalJSON]() + +```go +func (c Text) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextDelta]() + + + +```go +type TextDelta string // Always "text_delta" +``` + + +### func \(TextDelta\) [Default]() + +```go +func (c TextDelta) Default() TextDelta +``` + + + + +### func \(TextDelta\) [MarshalJSON]() + +```go +func (c TextDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditor20241022]() + + + +```go +type TextEditor20241022 string // Always "text_editor_20241022" +``` + + +### func \(TextEditor20241022\) [Default]() + +```go +func (c TextEditor20241022) Default() TextEditor20241022 +``` + + + + +### func \(TextEditor20241022\) [MarshalJSON]() + +```go +func (c TextEditor20241022) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditor20250124]() + + + +```go +type TextEditor20250124 string // Always "text_editor_20250124" +``` + + +### func \(TextEditor20250124\) [Default]() + +```go +func (c TextEditor20250124) Default() TextEditor20250124 +``` + + + + +### func \(TextEditor20250124\) [MarshalJSON]() + +```go +func (c TextEditor20250124) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditor20250429]() + + + +```go +type TextEditor20250429 string // Always "text_editor_20250429" +``` + + +### func \(TextEditor20250429\) [Default]() + +```go +func (c TextEditor20250429) Default() TextEditor20250429 +``` + + + + +### func \(TextEditor20250429\) [MarshalJSON]() + +```go +func (c TextEditor20250429) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditor20250728]() + + + +```go +type TextEditor20250728 string // Always "text_editor_20250728" +``` + + +### func \(TextEditor20250728\) [Default]() + +```go +func (c TextEditor20250728) Default() TextEditor20250728 +``` + + + + +### func \(TextEditor20250728\) [MarshalJSON]() + +```go +func (c TextEditor20250728) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditorCodeExecutionCreateResult]() + + + +```go +type TextEditorCodeExecutionCreateResult string // Always "text_editor_code_execution_create_result" +``` + + +### func \(TextEditorCodeExecutionCreateResult\) [Default]() + +```go +func (c TextEditorCodeExecutionCreateResult) Default() TextEditorCodeExecutionCreateResult +``` + + + + +### func \(TextEditorCodeExecutionCreateResult\) [MarshalJSON]() + +```go +func (c TextEditorCodeExecutionCreateResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditorCodeExecutionStrReplaceResult]() + + + +```go +type TextEditorCodeExecutionStrReplaceResult string // Always "text_editor_code_execution_str_replace_result" +``` + + +### func \(TextEditorCodeExecutionStrReplaceResult\) [Default]() + +```go +func (c TextEditorCodeExecutionStrReplaceResult) Default() TextEditorCodeExecutionStrReplaceResult +``` + + + + +### func \(TextEditorCodeExecutionStrReplaceResult\) [MarshalJSON]() + +```go +func (c TextEditorCodeExecutionStrReplaceResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditorCodeExecutionToolResult]() + + + +```go +type TextEditorCodeExecutionToolResult string // Always "text_editor_code_execution_tool_result" +``` + + +### func \(TextEditorCodeExecutionToolResult\) [Default]() + +```go +func (c TextEditorCodeExecutionToolResult) Default() TextEditorCodeExecutionToolResult +``` + + + + +### func \(TextEditorCodeExecutionToolResult\) [MarshalJSON]() + +```go +func (c TextEditorCodeExecutionToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditorCodeExecutionToolResultError]() + + + +```go +type TextEditorCodeExecutionToolResultError string // Always "text_editor_code_execution_tool_result_error" +``` + + +### func \(TextEditorCodeExecutionToolResultError\) [Default]() + +```go +func (c TextEditorCodeExecutionToolResultError) Default() TextEditorCodeExecutionToolResultError +``` + + + + +### func \(TextEditorCodeExecutionToolResultError\) [MarshalJSON]() + +```go +func (c TextEditorCodeExecutionToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextEditorCodeExecutionViewResult]() + + + +```go +type TextEditorCodeExecutionViewResult string // Always "text_editor_code_execution_view_result" +``` + + +### func \(TextEditorCodeExecutionViewResult\) [Default]() + +```go +func (c TextEditorCodeExecutionViewResult) Default() TextEditorCodeExecutionViewResult +``` + + + + +### func \(TextEditorCodeExecutionViewResult\) [MarshalJSON]() + +```go +func (c TextEditorCodeExecutionViewResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [TextPlain]() + + + +```go +type TextPlain string // Always "text/plain" +``` + + +### func \(TextPlain\) [Default]() + +```go +func (c TextPlain) Default() TextPlain +``` + + + + +### func \(TextPlain\) [MarshalJSON]() + +```go +func (c TextPlain) MarshalJSON() ([]byte, error) +``` + + + + +## type [Thinking]() + + + +```go +type Thinking string // Always "thinking" +``` + + +### func \(Thinking\) [Default]() + +```go +func (c Thinking) Default() Thinking +``` + + + + +### func \(Thinking\) [MarshalJSON]() + +```go +func (c Thinking) MarshalJSON() ([]byte, error) +``` + + + + +## type [ThinkingDelta]() + + + +```go +type ThinkingDelta string // Always "thinking_delta" +``` + + +### func \(ThinkingDelta\) [Default]() + +```go +func (c ThinkingDelta) Default() ThinkingDelta +``` + + + + +### func \(ThinkingDelta\) [MarshalJSON]() + +```go +func (c ThinkingDelta) MarshalJSON() ([]byte, error) +``` + + + + +## type [ThinkingDropped]() + + + +```go +type ThinkingDropped string // Always "thinking_dropped" +``` + + +### func \(ThinkingDropped\) [Default]() + +```go +func (c ThinkingDropped) Default() ThinkingDropped +``` + + + + +### func \(ThinkingDropped\) [MarshalJSON]() + +```go +func (c ThinkingDropped) MarshalJSON() ([]byte, error) +``` + + + + +## type [ThinkingTurns]() + + + +```go +type ThinkingTurns string // Always "thinking_turns" +``` + + +### func \(ThinkingTurns\) [Default]() + +```go +func (c ThinkingTurns) Default() ThinkingTurns +``` + + + + +### func \(ThinkingTurns\) [MarshalJSON]() + +```go +func (c ThinkingTurns) MarshalJSON() ([]byte, error) +``` + + + + +## type [TimeoutError]() + + + +```go +type TimeoutError string // Always "timeout_error" +``` + + +### func \(TimeoutError\) [Default]() + +```go +func (c TimeoutError) Default() TimeoutError +``` + + + + +### func \(TimeoutError\) [MarshalJSON]() + +```go +func (c TimeoutError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Tokens]() + + + +```go +type Tokens string // Always "tokens" +``` + + +### func \(Tokens\) [Default]() + +```go +func (c Tokens) Default() Tokens +``` + + + + +### func \(Tokens\) [MarshalJSON]() + +```go +func (c Tokens) MarshalJSON() ([]byte, error) +``` + + + + +## type [Tool]() + + + +```go +type Tool string // Always "tool" +``` + + +### func \(Tool\) [Default]() + +```go +func (c Tool) Default() Tool +``` + + + + +### func \(Tool\) [MarshalJSON]() + +```go +func (c Tool) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolAddition]() + + + +```go +type ToolAddition string // Always "tool_addition" +``` + + +### func \(ToolAddition\) [Default]() + +```go +func (c ToolAddition) Default() ToolAddition +``` + + + + +### func \(ToolAddition\) [MarshalJSON]() + +```go +func (c ToolAddition) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolReference]() + + + +```go +type ToolReference string // Always "tool_reference" +``` + + +### func \(ToolReference\) [Default]() + +```go +func (c ToolReference) Default() ToolReference +``` + + + + +### func \(ToolReference\) [MarshalJSON]() + +```go +func (c ToolReference) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolRemoval]() + + + +```go +type ToolRemoval string // Always "tool_removal" +``` + + +### func \(ToolRemoval\) [Default]() + +```go +func (c ToolRemoval) Default() ToolRemoval +``` + + + + +### func \(ToolRemoval\) [MarshalJSON]() + +```go +func (c ToolRemoval) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolResult]() + + + +```go +type ToolResult string // Always "tool_result" +``` + + +### func \(ToolResult\) [Default]() + +```go +func (c ToolResult) Default() ToolResult +``` + + + + +### func \(ToolResult\) [MarshalJSON]() + +```go +func (c ToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolSearchToolBm25]() + + + +```go +type ToolSearchToolBm25 string // Always "tool_search_tool_bm25" +``` + + +### func \(ToolSearchToolBm25\) [Default]() + +```go +func (c ToolSearchToolBm25) Default() ToolSearchToolBm25 +``` + + + + +### func \(ToolSearchToolBm25\) [MarshalJSON]() + +```go +func (c ToolSearchToolBm25) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolSearchToolRegex]() + + + +```go +type ToolSearchToolRegex string // Always "tool_search_tool_regex" +``` + + +### func \(ToolSearchToolRegex\) [Default]() + +```go +func (c ToolSearchToolRegex) Default() ToolSearchToolRegex +``` + + + + +### func \(ToolSearchToolRegex\) [MarshalJSON]() + +```go +func (c ToolSearchToolRegex) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolSearchToolResult]() + + + +```go +type ToolSearchToolResult string // Always "tool_search_tool_result" +``` + + +### func \(ToolSearchToolResult\) [Default]() + +```go +func (c ToolSearchToolResult) Default() ToolSearchToolResult +``` + + + + +### func \(ToolSearchToolResult\) [MarshalJSON]() + +```go +func (c ToolSearchToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolSearchToolResultError]() + + + +```go +type ToolSearchToolResultError string // Always "tool_search_tool_result_error" +``` + + +### func \(ToolSearchToolResultError\) [Default]() + +```go +func (c ToolSearchToolResultError) Default() ToolSearchToolResultError +``` + + + + +### func \(ToolSearchToolResultError\) [MarshalJSON]() + +```go +func (c ToolSearchToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolSearchToolSearchResult]() + + + +```go +type ToolSearchToolSearchResult string // Always "tool_search_tool_search_result" +``` + + +### func \(ToolSearchToolSearchResult\) [Default]() + +```go +func (c ToolSearchToolSearchResult) Default() ToolSearchToolSearchResult +``` + + + + +### func \(ToolSearchToolSearchResult\) [MarshalJSON]() + +```go +func (c ToolSearchToolSearchResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolUse]() + + + +```go +type ToolUse string // Always "tool_use" +``` + + +### func \(ToolUse\) [Default]() + +```go +func (c ToolUse) Default() ToolUse +``` + + + + +### func \(ToolUse\) [MarshalJSON]() + +```go +func (c ToolUse) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolUses]() + + + +```go +type ToolUses string // Always "tool_uses" +``` + + +### func \(ToolUses\) [Default]() + +```go +func (c ToolUses) Default() ToolUses +``` + + + + +### func \(ToolUses\) [MarshalJSON]() + +```go +func (c ToolUses) MarshalJSON() ([]byte, error) +``` + + + + +## type [ToolsChanged]() + + + +```go +type ToolsChanged string // Always "tools_changed" +``` + + +### func \(ToolsChanged\) [Default]() + +```go +func (c ToolsChanged) Default() ToolsChanged +``` + + + + +### func \(ToolsChanged\) [MarshalJSON]() + +```go +func (c ToolsChanged) MarshalJSON() ([]byte, error) +``` + + + + +## type [Tunnel]() + + + +```go +type Tunnel string // Always "tunnel" +``` + + +### func \(Tunnel\) [Default]() + +```go +func (c Tunnel) Default() Tunnel +``` + + + + +### func \(Tunnel\) [MarshalJSON]() + +```go +func (c Tunnel) MarshalJSON() ([]byte, error) +``` + + + + +## type [TunnelCertificate]() + + + +```go +type TunnelCertificate string // Always "tunnel_certificate" +``` + + +### func \(TunnelCertificate\) [Default]() + +```go +func (c TunnelCertificate) Default() TunnelCertificate +``` + + + + +### func \(TunnelCertificate\) [MarshalJSON]() + +```go +func (c TunnelCertificate) MarshalJSON() ([]byte, error) +``` + + + + +## type [TunnelToken]() + + + +```go +type TunnelToken string // Always "tunnel_token" +``` + + +### func \(TunnelToken\) [Default]() + +```go +func (c TunnelToken) Default() TunnelToken +``` + + + + +### func \(TunnelToken\) [MarshalJSON]() + +```go +func (c TunnelToken) MarshalJSON() ([]byte, error) +``` + + + + +## type [URL]() + + + +```go +type URL string // Always "url" +``` + + +### func \(URL\) [Default]() + +```go +func (c URL) Default() URL +``` + + + + +### func \(URL\) [MarshalJSON]() + +```go +func (c URL) MarshalJSON() ([]byte, error) +``` + + + + +## type [Unattached]() + + + +```go +type Unattached string // Always "unattached" +``` + + +### func \(Unattached\) [Default]() + +```go +func (c Unattached) Default() Unattached +``` + + + + +### func \(Unattached\) [MarshalJSON]() + +```go +func (c Unattached) MarshalJSON() ([]byte, error) +``` + + + + +## type [Unavailable]() + + + +```go +type Unavailable string // Always "unavailable" +``` + + +### func \(Unavailable\) [Default]() + +```go +func (c Unavailable) Default() Unavailable +``` + + + + +### func \(Unavailable\) [MarshalJSON]() + +```go +func (c Unavailable) MarshalJSON() ([]byte, error) +``` + + + + +## type [Unrestricted]() + + + +```go +type Unrestricted string // Always "unrestricted" +``` + + +### func \(Unrestricted\) [Default]() + +```go +func (c Unrestricted) Default() Unrestricted +``` + + + + +### func \(Unrestricted\) [MarshalJSON]() + +```go +func (c Unrestricted) MarshalJSON() ([]byte, error) +``` + + + + +## type [User]() + + + +```go +type User string // Always "user" +``` + + +### func \(User\) [Default]() + +```go +func (c User) Default() User +``` + + + + +### func \(User\) [MarshalJSON]() + +```go +func (c User) MarshalJSON() ([]byte, error) +``` + + + + +## type [UserActor]() + + + +```go +type UserActor string // Always "user_actor" +``` + + +### func \(UserActor\) [Default]() + +```go +func (c UserActor) Default() UserActor +``` + + + + +### func \(UserActor\) [MarshalJSON]() + +```go +func (c UserActor) MarshalJSON() ([]byte, error) +``` + + + + +## type [UserDeleted]() + + + +```go +type UserDeleted string // Always "user_deleted" +``` + + +### func \(UserDeleted\) [Default]() + +```go +func (c UserDeleted) Default() UserDeleted +``` + + + + +### func \(UserDeleted\) [MarshalJSON]() + +```go +func (c UserDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultArchived]() + + + +```go +type VaultArchived string // Always "vault.archived" +``` + + +### func \(VaultArchived\) [Default]() + +```go +func (c VaultArchived) Default() VaultArchived +``` + + + + +### func \(VaultArchived\) [MarshalJSON]() + +```go +func (c VaultArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultCreated]() + + + +```go +type VaultCreated string // Always "vault.created" +``` + + +### func \(VaultCreated\) [Default]() + +```go +func (c VaultCreated) Default() VaultCreated +``` + + + + +### func \(VaultCreated\) [MarshalJSON]() + +```go +func (c VaultCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultCredentialArchived]() + + + +```go +type VaultCredentialArchived string // Always "vault_credential.archived" +``` + + +### func \(VaultCredentialArchived\) [Default]() + +```go +func (c VaultCredentialArchived) Default() VaultCredentialArchived +``` + + + + +### func \(VaultCredentialArchived\) [MarshalJSON]() + +```go +func (c VaultCredentialArchived) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultCredentialCreated]() + + + +```go +type VaultCredentialCreated string // Always "vault_credential.created" +``` + + +### func \(VaultCredentialCreated\) [Default]() + +```go +func (c VaultCredentialCreated) Default() VaultCredentialCreated +``` + + + + +### func \(VaultCredentialCreated\) [MarshalJSON]() + +```go +func (c VaultCredentialCreated) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultCredentialDeleted]() + + + +```go +type VaultCredentialDeleted string // Always "vault_credential.deleted" +``` + + +### func \(VaultCredentialDeleted\) [Default]() + +```go +func (c VaultCredentialDeleted) Default() VaultCredentialDeleted +``` + + + + +### func \(VaultCredentialDeleted\) [MarshalJSON]() + +```go +func (c VaultCredentialDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultCredentialRefreshFailed]() + + + +```go +type VaultCredentialRefreshFailed string // Always "vault_credential.refresh_failed" +``` + + +### func \(VaultCredentialRefreshFailed\) [Default]() + +```go +func (c VaultCredentialRefreshFailed) Default() VaultCredentialRefreshFailed +``` + + + + +### func \(VaultCredentialRefreshFailed\) [MarshalJSON]() + +```go +func (c VaultCredentialRefreshFailed) MarshalJSON() ([]byte, error) +``` + + + + +## type [VaultDeleted]() + + + +```go +type VaultDeleted string // Always "vault.deleted" +``` + + +### func \(VaultDeleted\) [Default]() + +```go +func (c VaultDeleted) Default() VaultDeleted +``` + + + + +### func \(VaultDeleted\) [MarshalJSON]() + +```go +func (c VaultDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [View]() + + + +```go +type View string // Always "view" +``` + + +### func \(View\) [Default]() + +```go +func (c View) Default() View +``` + + + + +### func \(View\) [MarshalJSON]() + +```go +func (c View) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetch]() + + + +```go +type WebFetch string // Always "web_fetch" +``` + + +### func \(WebFetch\) [Default]() + +```go +func (c WebFetch) Default() WebFetch +``` + + + + +### func \(WebFetch\) [MarshalJSON]() + +```go +func (c WebFetch) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetch20250910]() + + + +```go +type WebFetch20250910 string // Always "web_fetch_20250910" +``` + + +### func \(WebFetch20250910\) [Default]() + +```go +func (c WebFetch20250910) Default() WebFetch20250910 +``` + + + + +### func \(WebFetch20250910\) [MarshalJSON]() + +```go +func (c WebFetch20250910) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetch20260209]() + + + +```go +type WebFetch20260209 string // Always "web_fetch_20260209" +``` + + +### func \(WebFetch20260209\) [Default]() + +```go +func (c WebFetch20260209) Default() WebFetch20260209 +``` + + + + +### func \(WebFetch20260209\) [MarshalJSON]() + +```go +func (c WebFetch20260209) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetch20260309]() + + + +```go +type WebFetch20260309 string // Always "web_fetch_20260309" +``` + + +### func \(WebFetch20260309\) [Default]() + +```go +func (c WebFetch20260309) Default() WebFetch20260309 +``` + + + + +### func \(WebFetch20260309\) [MarshalJSON]() + +```go +func (c WebFetch20260309) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetch20260318]() + + + +```go +type WebFetch20260318 string // Always "web_fetch_20260318" +``` + + +### func \(WebFetch20260318\) [Default]() + +```go +func (c WebFetch20260318) Default() WebFetch20260318 +``` + + + + +### func \(WebFetch20260318\) [MarshalJSON]() + +```go +func (c WebFetch20260318) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetchResult]() + + + +```go +type WebFetchResult string // Always "web_fetch_result" +``` + + +### func \(WebFetchResult\) [Default]() + +```go +func (c WebFetchResult) Default() WebFetchResult +``` + + + + +### func \(WebFetchResult\) [MarshalJSON]() + +```go +func (c WebFetchResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetchToolResult]() + + + +```go +type WebFetchToolResult string // Always "web_fetch_tool_result" +``` + + +### func \(WebFetchToolResult\) [Default]() + +```go +func (c WebFetchToolResult) Default() WebFetchToolResult +``` + + + + +### func \(WebFetchToolResult\) [MarshalJSON]() + +```go +func (c WebFetchToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebFetchToolResultError]() + + + +```go +type WebFetchToolResultError string // Always "web_fetch_tool_result_error" +``` + + +### func \(WebFetchToolResultError\) [Default]() + +```go +func (c WebFetchToolResultError) Default() WebFetchToolResultError +``` + + + + +### func \(WebFetchToolResultError\) [MarshalJSON]() + +```go +func (c WebFetchToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearch]() + + + +```go +type WebSearch string // Always "web_search" +``` + + +### func \(WebSearch\) [Default]() + +```go +func (c WebSearch) Default() WebSearch +``` + + + + +### func \(WebSearch\) [MarshalJSON]() + +```go +func (c WebSearch) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearch20250305]() + + + +```go +type WebSearch20250305 string // Always "web_search_20250305" +``` + + +### func \(WebSearch20250305\) [Default]() + +```go +func (c WebSearch20250305) Default() WebSearch20250305 +``` + + + + +### func \(WebSearch20250305\) [MarshalJSON]() + +```go +func (c WebSearch20250305) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearch20260209]() + + + +```go +type WebSearch20260209 string // Always "web_search_20260209" +``` + + +### func \(WebSearch20260209\) [Default]() + +```go +func (c WebSearch20260209) Default() WebSearch20260209 +``` + + + + +### func \(WebSearch20260209\) [MarshalJSON]() + +```go +func (c WebSearch20260209) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearch20260318]() + + + +```go +type WebSearch20260318 string // Always "web_search_20260318" +``` + + +### func \(WebSearch20260318\) [Default]() + +```go +func (c WebSearch20260318) Default() WebSearch20260318 +``` + + + + +### func \(WebSearch20260318\) [MarshalJSON]() + +```go +func (c WebSearch20260318) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearchResult]() + + + +```go +type WebSearchResult string // Always "web_search_result" +``` + + +### func \(WebSearchResult\) [Default]() + +```go +func (c WebSearchResult) Default() WebSearchResult +``` + + + + +### func \(WebSearchResult\) [MarshalJSON]() + +```go +func (c WebSearchResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearchResultLocation]() + + + +```go +type WebSearchResultLocation string // Always "web_search_result_location" +``` + + +### func \(WebSearchResultLocation\) [Default]() + +```go +func (c WebSearchResultLocation) Default() WebSearchResultLocation +``` + + + + +### func \(WebSearchResultLocation\) [MarshalJSON]() + +```go +func (c WebSearchResultLocation) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearchToolResult]() + + + +```go +type WebSearchToolResult string // Always "web_search_tool_result" +``` + + +### func \(WebSearchToolResult\) [Default]() + +```go +func (c WebSearchToolResult) Default() WebSearchToolResult +``` + + + + +### func \(WebSearchToolResult\) [MarshalJSON]() + +```go +func (c WebSearchToolResult) MarshalJSON() ([]byte, error) +``` + + + + +## type [WebSearchToolResultError]() + + + +```go +type WebSearchToolResultError string // Always "web_search_tool_result_error" +``` + + +### func \(WebSearchToolResultError\) [Default]() + +```go +func (c WebSearchToolResultError) Default() WebSearchToolResultError +``` + + + + +### func \(WebSearchToolResultError\) [MarshalJSON]() + +```go +func (c WebSearchToolResultError) MarshalJSON() ([]byte, error) +``` + + + + +## type [Work]() + + + +```go +type Work string // Always "work" +``` + + +### func \(Work\) [Default]() + +```go +func (c Work) Default() Work +``` + + + + +### func \(Work\) [MarshalJSON]() + +```go +func (c Work) MarshalJSON() ([]byte, error) +``` + + + + +## type [WorkHeartbeat]() + + + +```go +type WorkHeartbeat string // Always "work_heartbeat" +``` + + +### func \(WorkHeartbeat\) [Default]() + +```go +func (c WorkHeartbeat) Default() WorkHeartbeat +``` + + + + +### func \(WorkHeartbeat\) [MarshalJSON]() + +```go +func (c WorkHeartbeat) MarshalJSON() ([]byte, error) +``` + + + + +## type [WorkQueueStats]() + + + +```go +type WorkQueueStats string // Always "work_queue_stats" +``` + + +### func \(WorkQueueStats\) [Default]() + +```go +func (c WorkQueueStats) Default() WorkQueueStats +``` + + + + +### func \(WorkQueueStats\) [MarshalJSON]() + +```go +func (c WorkQueueStats) MarshalJSON() ([]byte, error) +``` + + + + +## type [Workspace]() + + + +```go +type Workspace string // Always "workspace" +``` + + +### func \(Workspace\) [Default]() + +```go +func (c Workspace) Default() Workspace +``` + + + + +### func \(Workspace\) [MarshalJSON]() + +```go +func (c Workspace) MarshalJSON() ([]byte, error) +``` + + + + +## type [WorkspaceMember]() + + + +```go +type WorkspaceMember string // Always "workspace_member" +``` + + +### func \(WorkspaceMember\) [Default]() + +```go +func (c WorkspaceMember) Default() WorkspaceMember +``` + + + + +### func \(WorkspaceMember\) [MarshalJSON]() + +```go +func (c WorkspaceMember) MarshalJSON() ([]byte, error) +``` + + + + +## type [WorkspaceMemberDeleted]() + + + +```go +type WorkspaceMemberDeleted string // Always "workspace_member_deleted" +``` + + +### func \(WorkspaceMemberDeleted\) [Default]() + +```go +func (c WorkspaceMemberDeleted) Default() WorkspaceMemberDeleted +``` + + + + +### func \(WorkspaceMemberDeleted\) [MarshalJSON]() + +```go +func (c WorkspaceMemberDeleted) MarshalJSON() ([]byte, error) +``` + + + + +## type [WorkspaceRateLimit]() + + + +```go +type WorkspaceRateLimit string // Always "workspace_rate_limit" +``` + + +### func \(WorkspaceRateLimit\) [Default]() + +```go +func (c WorkspaceRateLimit) Default() WorkspaceRateLimit +``` + + + + +### func \(WorkspaceRateLimit\) [MarshalJSON]() + +```go +func (c WorkspaceRateLimit) MarshalJSON() ([]byte, error) +``` + + + + +## type [Write]() + + + +```go +type Write string // Always "write" +``` + + +### func \(Write\) [Default]() + +```go +func (c Write) Default() Write +``` + + + + +### func \(Write\) [MarshalJSON]() + +```go +func (c Write) MarshalJSON() ([]byte, error) +``` + + + +# option + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/option" +``` + +## Index + +- [type HTTPClient](<#HTTPClient>) +- [type Middleware](<#Middleware>) +- [type MiddlewareNext](<#MiddlewareNext>) +- [type RequestOption](<#RequestOption>) + - [func WithAuthToken\(value string\) RequestOption](<#WithAuthToken>) + - [func WithBaseURL\(base string\) RequestOption](<#WithBaseURL>) + - [func WithCredential\(credential requestconfig.Credential\) RequestOption](<#WithCredential>) + - [func WithHTTPClient\(client HTTPClient\) RequestOption](<#WithHTTPClient>) + - [func WithHeader\(key, value string\) RequestOption](<#WithHeader>) + - [func WithHeaderAdd\(key, value string\) RequestOption](<#WithHeaderAdd>) + - [func WithHeaderDel\(key string\) RequestOption](<#WithHeaderDel>) + - [func WithJSONDel\(key string\) RequestOption](<#WithJSONDel>) + - [func WithJSONSet\(key string, value any\) RequestOption](<#WithJSONSet>) + - [func WithMaxRetries\(retries int\) RequestOption](<#WithMaxRetries>) + - [func WithMiddleware\(middlewares ...Middleware\) RequestOption](<#WithMiddleware>) + - [func WithPAT\(value string\) RequestOption](<#WithPAT>) + - [func WithQuery\(key, value string\) RequestOption](<#WithQuery>) + - [func WithQueryAdd\(key, value string\) RequestOption](<#WithQueryAdd>) + - [func WithQueryDel\(key string\) RequestOption](<#WithQueryDel>) + - [func WithRequestBody\(contentType string, body any\) RequestOption](<#WithRequestBody>) + - [func WithRequestTimeout\(dur time.Duration\) RequestOption](<#WithRequestTimeout>) + - [func WithResponseBodyInto\(dst any\) RequestOption](<#WithResponseBodyInto>) + - [func WithResponseInto\(dst \*\*http.Response\) RequestOption](<#WithResponseInto>) + + + +## type [HTTPClient]() + +HTTPClient is primarily used to describe an \[\*http.Client\], but also supports custom implementations. + +For bespoke implementations, prefer using an \[\*http.Client\] with a custom transport. See \[http.RoundTripper\] for further information. + +```go +type HTTPClient interface { + Do(*http.Request) (*http.Response, error) +} +``` + + +## type [Middleware]() + +Middleware is a function which intercepts HTTP requests, processing or modifying them, and then passing the request to the next middleware or handler in the chain by calling the provided MiddlewareNext function. + +```go +type Middleware = func(*http.Request, MiddlewareNext) (*http.Response, error) +``` + + +## type [MiddlewareNext]() + +MiddlewareNext is a function which is called by a middleware to pass an HTTP request to the next stage in the middleware chain. + +```go +type MiddlewareNext = func(*http.Request) (*http.Response, error) +``` + + +## type [RequestOption]() + + + +```go +type RequestOption = requestconfig.RequestOption +``` + + +### func [WithAuthToken]() + +```go +func WithAuthToken(value string) RequestOption +``` + +WithAuthToken authenticates with a Qoder personal or service access token. + + +### func [WithBaseURL]() + +```go +func WithBaseURL(base string) RequestOption +``` + +WithBaseURL returns a RequestOption that sets the BaseURL for the client. + +For security reasons, ensure that the base URL is trusted. + + +### func [WithCredential]() + +```go +func WithCredential(credential requestconfig.Credential) RequestOption +``` + +WithCredential uses the same token provider as Forward Mode. The provider is evaluated for each request; an explicit Authorization header takes precedence. + + +### func [WithHTTPClient]() + +```go +func WithHTTPClient(client HTTPClient) RequestOption +``` + +WithHTTPClient returns a RequestOption that changes the underlying http client used to make this request, which by default is \[http.DefaultClient\]. + +For custom uses cases, it is recommended to provide an \[\*http.Client\] with a custom \[http.RoundTripper\] as its transport, rather than directly implementing [HTTPClient](<#HTTPClient>). + + +### func [WithHeader]() + +```go +func WithHeader(key, value string) RequestOption +``` + +WithHeader returns a RequestOption that sets the header value to the associated key. It overwrites any value if there was one already present. + + +### func [WithHeaderAdd]() + +```go +func WithHeaderAdd(key, value string) RequestOption +``` + +WithHeaderAdd returns a RequestOption that adds the header value to the associated key. It appends onto any existing values. + + +### func [WithHeaderDel]() + +```go +func WithHeaderDel(key string) RequestOption +``` + +WithHeaderDel returns a RequestOption that deletes the header value\(s\) associated with the given key. + + +### func [WithJSONDel]() + +```go +func WithJSONDel(key string) RequestOption +``` + +WithJSONDel returns a RequestOption that deletes the body's JSON value associated with the key. The key accepts a string as defined by the [sjson format](). + + +### func [WithJSONSet]() + +```go +func WithJSONSet(key string, value any) RequestOption +``` + +WithJSONSet returns a RequestOption that sets the body's JSON value associated with the key. The key accepts a string as defined by the [sjson format](). + + +### func [WithMaxRetries]() + +```go +func WithMaxRetries(retries int) RequestOption +``` + +WithMaxRetries returns a RequestOption that sets the maximum number of retries that the client attempts to make. When given 0, the client only makes one request. By default, the client retries two times. + +WithMaxRetries panics when retries is negative. + + +### func [WithMiddleware]() + +```go +func WithMiddleware(middlewares ...Middleware) RequestOption +``` + +WithMiddleware returns a RequestOption that applies the given middleware to the requests made. Each middleware will execute in the order they were given. + + +### func [WithPAT]() + +```go +func WithPAT(value string) RequestOption +``` + +WithPAT is the Qoder spelling of WithAuthToken. + + +### func [WithQuery]() + +```go +func WithQuery(key, value string) RequestOption +``` + +WithQuery returns a RequestOption that sets the query value to the associated key. It overwrites any value if there was one already present. + + +### func [WithQueryAdd]() + +```go +func WithQueryAdd(key, value string) RequestOption +``` + +WithQueryAdd returns a RequestOption that adds the query value to the associated key. It appends onto any existing values. + + +### func [WithQueryDel]() + +```go +func WithQueryDel(key string) RequestOption +``` + +WithQueryDel returns a RequestOption that deletes the query value\(s\) associated with the key. + + +### func [WithRequestBody]() + +```go +func WithRequestBody(contentType string, body any) RequestOption +``` + +WithRequestBody returns a RequestOption that provides a custom serialized body with the given content type. + +body accepts an io.Reader or raw \[\]bytes. + + +### func [WithRequestTimeout]() + +```go +func WithRequestTimeout(dur time.Duration) RequestOption +``` + +WithRequestTimeout returns a RequestOption that sets the timeout for each request attempt. This should be smaller than the timeout defined in the context, which spans all retries. + +An attempt that exceeds this timeout is retried \(see [WithMaxRetries](<#WithMaxRetries>)\) for as long as the context passed to the method is not done, so a call can take up to roughly \(retries \+ 1\) \* dur plus backoff before it fails with context.DeadlineExceeded. + + +### func [WithResponseBodyInto]() + +```go +func WithResponseBodyInto(dst any) RequestOption +``` + +WithResponseBodyInto returns a RequestOption that overwrites the deserialization target with the given destination. If provided, we don't deserialize into the default struct. + + +### func [WithResponseInto]() + +```go +func WithResponseInto(dst **http.Response) RequestOption +``` + +WithResponseInto returns a RequestOption that copies the \[\*http.Response\] into the given address. + +# pagination + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/pagination" +``` + +## Index + +- [type BidirectionalPageCursor](<#BidirectionalPageCursor>) + - [func \(r \*BidirectionalPageCursor\[T\]\) GetNextPage\(\) \(res \*BidirectionalPageCursor\[T\], err error\)](<#BidirectionalPageCursor[T].GetNextPage>) + - [func \(r BidirectionalPageCursor\[T\]\) RawJSON\(\) string](<#BidirectionalPageCursor[T].RawJSON>) + - [func \(r \*BidirectionalPageCursor\[T\]\) SetPageConfig\(cfg \*requestconfig.RequestConfig, res \*http.Response\)](<#BidirectionalPageCursor[T].SetPageConfig>) + - [func \(r \*BidirectionalPageCursor\[T\]\) UnmarshalJSON\(data \[\]byte\) error](<#BidirectionalPageCursor[T].UnmarshalJSON>) +- [type BidirectionalPageCursorAutoPager](<#BidirectionalPageCursorAutoPager>) + - [func NewBidirectionalPageCursorAutoPager\[T any\]\(page \*BidirectionalPageCursor\[T\], err error\) \*BidirectionalPageCursorAutoPager\[T\]](<#NewBidirectionalPageCursorAutoPager>) + - [func \(r \*BidirectionalPageCursorAutoPager\[T\]\) Current\(\) T](<#BidirectionalPageCursorAutoPager[T].Current>) + - [func \(r \*BidirectionalPageCursorAutoPager\[T\]\) Err\(\) error](<#BidirectionalPageCursorAutoPager[T].Err>) + - [func \(r \*BidirectionalPageCursorAutoPager\[T\]\) Index\(\) int](<#BidirectionalPageCursorAutoPager[T].Index>) + - [func \(r \*BidirectionalPageCursorAutoPager\[T\]\) Next\(\) bool](<#BidirectionalPageCursorAutoPager[T].Next>) +- [type Page](<#Page>) + - [func \(r \*Page\[T\]\) GetNextPage\(\) \(res \*Page\[T\], err error\)](<#Page[T].GetNextPage>) + - [func \(r Page\[T\]\) RawJSON\(\) string](<#Page[T].RawJSON>) + - [func \(r \*Page\[T\]\) SetPageConfig\(cfg \*requestconfig.RequestConfig, res \*http.Response\)](<#Page[T].SetPageConfig>) + - [func \(r \*Page\[T\]\) UnmarshalJSON\(data \[\]byte\) error](<#Page[T].UnmarshalJSON>) +- [type PageAutoPager](<#PageAutoPager>) + - [func NewPageAutoPager\[T any\]\(page \*Page\[T\], err error\) \*PageAutoPager\[T\]](<#NewPageAutoPager>) + - [func \(r \*PageAutoPager\[T\]\) Current\(\) T](<#PageAutoPager[T].Current>) + - [func \(r \*PageAutoPager\[T\]\) Err\(\) error](<#PageAutoPager[T].Err>) + - [func \(r \*PageAutoPager\[T\]\) Index\(\) int](<#PageAutoPager[T].Index>) + - [func \(r \*PageAutoPager\[T\]\) Next\(\) bool](<#PageAutoPager[T].Next>) +- [type PageCursor](<#PageCursor>) + - [func \(r \*PageCursor\[T\]\) GetNextPage\(\) \(res \*PageCursor\[T\], err error\)](<#PageCursor[T].GetNextPage>) + - [func \(r PageCursor\[T\]\) RawJSON\(\) string](<#PageCursor[T].RawJSON>) + - [func \(r \*PageCursor\[T\]\) SetPageConfig\(cfg \*requestconfig.RequestConfig, res \*http.Response\)](<#PageCursor[T].SetPageConfig>) + - [func \(r \*PageCursor\[T\]\) UnmarshalJSON\(data \[\]byte\) error](<#PageCursor[T].UnmarshalJSON>) +- [type PageCursorAutoPager](<#PageCursorAutoPager>) + - [func NewPageCursorAutoPager\[T any\]\(page \*PageCursor\[T\], err error\) \*PageCursorAutoPager\[T\]](<#NewPageCursorAutoPager>) + - [func \(r \*PageCursorAutoPager\[T\]\) Current\(\) T](<#PageCursorAutoPager[T].Current>) + - [func \(r \*PageCursorAutoPager\[T\]\) Err\(\) error](<#PageCursorAutoPager[T].Err>) + - [func \(r \*PageCursorAutoPager\[T\]\) Index\(\) int](<#PageCursorAutoPager[T].Index>) + - [func \(r \*PageCursorAutoPager\[T\]\) Next\(\) bool](<#PageCursorAutoPager[T].Next>) +- [type TokenPage](<#TokenPage>) + - [func \(r \*TokenPage\[T\]\) GetNextPage\(\) \(res \*TokenPage\[T\], err error\)](<#TokenPage[T].GetNextPage>) + - [func \(r TokenPage\[T\]\) RawJSON\(\) string](<#TokenPage[T].RawJSON>) + - [func \(r \*TokenPage\[T\]\) SetPageConfig\(cfg \*requestconfig.RequestConfig, res \*http.Response\)](<#TokenPage[T].SetPageConfig>) + - [func \(r \*TokenPage\[T\]\) UnmarshalJSON\(data \[\]byte\) error](<#TokenPage[T].UnmarshalJSON>) +- [type TokenPageAutoPager](<#TokenPageAutoPager>) + - [func NewTokenPageAutoPager\[T any\]\(page \*TokenPage\[T\], err error\) \*TokenPageAutoPager\[T\]](<#NewTokenPageAutoPager>) + - [func \(r \*TokenPageAutoPager\[T\]\) Current\(\) T](<#TokenPageAutoPager[T].Current>) + - [func \(r \*TokenPageAutoPager\[T\]\) Err\(\) error](<#TokenPageAutoPager[T].Err>) + - [func \(r \*TokenPageAutoPager\[T\]\) Index\(\) int](<#TokenPageAutoPager[T].Index>) + - [func \(r \*TokenPageAutoPager\[T\]\) Next\(\) bool](<#TokenPageAutoPager[T].Next>) + + + +## type [BidirectionalPageCursor]() + + + +```go +type BidirectionalPageCursor[T any] struct { + HasMore bool `json:"has_more"` + FirstID string `json:"first_id"` + LastID string `json:"last_id"` + + Data []T `json:"data"` + NextPage string `json:"next_page" api:"nullable"` + PrevPage string `json:"prev_page" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + HasMore respjson.Field + FirstID respjson.Field + LastID respjson.Field + + Data respjson.Field + NextPage respjson.Field + PrevPage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(\*BidirectionalPageCursor\[T\]\) [GetNextPage]() + +```go +func (r *BidirectionalPageCursor[T]) GetNextPage() (res *BidirectionalPageCursor[T], err error) +``` + +GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error + + +### func \(BidirectionalPageCursor\[T\]\) [RawJSON]() + +```go +func (r BidirectionalPageCursor[T]) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*BidirectionalPageCursor\[T\]\) [SetPageConfig]() + +```go +func (r *BidirectionalPageCursor[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response) +``` + + + + +### func \(\*BidirectionalPageCursor\[T\]\) [UnmarshalJSON]() + +```go +func (r *BidirectionalPageCursor[T]) UnmarshalJSON(data []byte) error +``` + + + + +## type [BidirectionalPageCursorAutoPager]() + + + +```go +type BidirectionalPageCursorAutoPager[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [NewBidirectionalPageCursorAutoPager]() + +```go +func NewBidirectionalPageCursorAutoPager[T any](page *BidirectionalPageCursor[T], err error) *BidirectionalPageCursorAutoPager[T] +``` + + + + +### func \(\*BidirectionalPageCursorAutoPager\[T\]\) [Current]() + +```go +func (r *BidirectionalPageCursorAutoPager[T]) Current() T +``` + + + + +### func \(\*BidirectionalPageCursorAutoPager\[T\]\) [Err]() + +```go +func (r *BidirectionalPageCursorAutoPager[T]) Err() error +``` + + + + +### func \(\*BidirectionalPageCursorAutoPager\[T\]\) [Index]() + +```go +func (r *BidirectionalPageCursorAutoPager[T]) Index() int +``` + + + + +### func \(\*BidirectionalPageCursorAutoPager\[T\]\) [Next]() + +```go +func (r *BidirectionalPageCursorAutoPager[T]) Next() bool +``` + + + + +## type [Page]() + + + +```go +type Page[T any] struct { + Data []T `json:"data"` + HasMore bool `json:"has_more"` + FirstID string `json:"first_id" api:"nullable"` + LastID string `json:"last_id" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + HasMore respjson.Field + FirstID respjson.Field + LastID respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(\*Page\[T\]\) [GetNextPage]() + +```go +func (r *Page[T]) GetNextPage() (res *Page[T], err error) +``` + +GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error + + +### func \(Page\[T\]\) [RawJSON]() + +```go +func (r Page[T]) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*Page\[T\]\) [SetPageConfig]() + +```go +func (r *Page[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response) +``` + + + + +### func \(\*Page\[T\]\) [UnmarshalJSON]() + +```go +func (r *Page[T]) UnmarshalJSON(data []byte) error +``` + + + + +## type [PageAutoPager]() + + + +```go +type PageAutoPager[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [NewPageAutoPager]() + +```go +func NewPageAutoPager[T any](page *Page[T], err error) *PageAutoPager[T] +``` + + + + +### func \(\*PageAutoPager\[T\]\) [Current]() + +```go +func (r *PageAutoPager[T]) Current() T +``` + + + + +### func \(\*PageAutoPager\[T\]\) [Err]() + +```go +func (r *PageAutoPager[T]) Err() error +``` + + + + +### func \(\*PageAutoPager\[T\]\) [Index]() + +```go +func (r *PageAutoPager[T]) Index() int +``` + + + + +### func \(\*PageAutoPager\[T\]\) [Next]() + +```go +func (r *PageAutoPager[T]) Next() bool +``` + + + + +## type [PageCursor]() + + + +```go +type PageCursor[T any] struct { + HasMore bool `json:"has_more"` + FirstID string `json:"first_id"` + LastID string `json:"last_id"` + + Data []T `json:"data"` + NextPage string `json:"next_page" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + HasMore respjson.Field + FirstID respjson.Field + LastID respjson.Field + + Data respjson.Field + NextPage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(\*PageCursor\[T\]\) [GetNextPage]() + +```go +func (r *PageCursor[T]) GetNextPage() (res *PageCursor[T], err error) +``` + +GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error + + +### func \(PageCursor\[T\]\) [RawJSON]() + +```go +func (r PageCursor[T]) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*PageCursor\[T\]\) [SetPageConfig]() + +```go +func (r *PageCursor[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response) +``` + + + + +### func \(\*PageCursor\[T\]\) [UnmarshalJSON]() + +```go +func (r *PageCursor[T]) UnmarshalJSON(data []byte) error +``` + + + + +## type [PageCursorAutoPager]() + + + +```go +type PageCursorAutoPager[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [NewPageCursorAutoPager]() + +```go +func NewPageCursorAutoPager[T any](page *PageCursor[T], err error) *PageCursorAutoPager[T] +``` + + + + +### func \(\*PageCursorAutoPager\[T\]\) [Current]() + +```go +func (r *PageCursorAutoPager[T]) Current() T +``` + + + + +### func \(\*PageCursorAutoPager\[T\]\) [Err]() + +```go +func (r *PageCursorAutoPager[T]) Err() error +``` + + + + +### func \(\*PageCursorAutoPager\[T\]\) [Index]() + +```go +func (r *PageCursorAutoPager[T]) Index() int +``` + + + + +### func \(\*PageCursorAutoPager\[T\]\) [Next]() + +```go +func (r *PageCursorAutoPager[T]) Next() bool +``` + + + + +## type [TokenPage]() + + + +```go +type TokenPage[T any] struct { + Data []T `json:"data"` + HasMore bool `json:"has_more"` + NextPage string `json:"next_page" api:"nullable"` + // JSON contains metadata for fields, check presence with [respjson.Field.Valid]. + JSON struct { + Data respjson.Field + HasMore respjson.Field + NextPage respjson.Field + ExtraFields map[string]respjson.Field + // contains filtered or unexported fields + } `json:"-"` + // contains filtered or unexported fields +} +``` + + +### func \(\*TokenPage\[T\]\) [GetNextPage]() + +```go +func (r *TokenPage[T]) GetNextPage() (res *TokenPage[T], err error) +``` + +GetNextPage returns the next page as defined by this pagination style. When there is no next page, this function will return a 'nil' for the page value, but will not return an error + + +### func \(TokenPage\[T\]\) [RawJSON]() + +```go +func (r TokenPage[T]) RawJSON() string +``` + +Returns the unmodified JSON received from the API + + +### func \(\*TokenPage\[T\]\) [SetPageConfig]() + +```go +func (r *TokenPage[T]) SetPageConfig(cfg *requestconfig.RequestConfig, res *http.Response) +``` + + + + +### func \(\*TokenPage\[T\]\) [UnmarshalJSON]() + +```go +func (r *TokenPage[T]) UnmarshalJSON(data []byte) error +``` + + + + +## type [TokenPageAutoPager]() + + + +```go +type TokenPageAutoPager[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [NewTokenPageAutoPager]() + +```go +func NewTokenPageAutoPager[T any](page *TokenPage[T], err error) *TokenPageAutoPager[T] +``` + + + + +### func \(\*TokenPageAutoPager\[T\]\) [Current]() + +```go +func (r *TokenPageAutoPager[T]) Current() T +``` + + + + +### func \(\*TokenPageAutoPager\[T\]\) [Err]() + +```go +func (r *TokenPageAutoPager[T]) Err() error +``` + + + + +### func \(\*TokenPageAutoPager\[T\]\) [Index]() + +```go +func (r *TokenPageAutoPager[T]) Index() int +``` + + + + +### func \(\*TokenPageAutoPager\[T\]\) [Next]() + +```go +func (r *TokenPageAutoPager[T]) Next() bool +``` + + + +# param + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/param" +``` + +## Index + +- [Variables](<#variables>) +- [func IsNull\[T any\]\(v T\) bool](<#IsNull>) +- [func IsOmitted\(v any\) bool](<#IsOmitted>) +- [func MarshalObject\[T ParamStruct\]\(f T, underlying any\) \(\[\]byte, error\)](<#MarshalObject>) +- [func MarshalUnion\[T ParamStruct\]\(metadata T, variants ...any\) \(\[\]byte, error\)](<#MarshalUnion>) +- [func MarshalWithExtras\[T ParamStruct, R any\]\(f T, underlying any, extras map\[string\]R\) \(\[\]byte, error\)](<#MarshalWithExtras>) +- [func NullMap\[MapT \~map\[string\]T, T any\]\(\) MapT](<#NullMap>) +- [func NullSlice\[SliceT \~\[\]T, T any\]\(\) SliceT](<#NullSlice>) +- [func NullStruct\[T ParamStruct, PtrT InferPtr\[T\]\]\(\) T](<#NullStruct>) +- [func Override\[T ParamStruct, PtrT InferPtr\[T\]\]\(v any\) T](<#Override>) +- [func SetJSON\(rawJSON \[\]byte, ptr anyParamStruct\)](<#SetJSON>) +- [type APIObject](<#APIObject>) +- [type APIUnion](<#APIUnion>) +- [type EncodedAsDate](<#EncodedAsDate>) + - [func \(m EncodedAsDate\) MarshalJSON\(\) \(\[\]byte, error\)](<#EncodedAsDate.MarshalJSON>) +- [type InferPtr](<#InferPtr>) +- [type Opt](<#Opt>) + - [func NewOpt\[T comparable\]\(v T\) Opt\[T\]](<#NewOpt>) + - [func Null\[T comparable\]\(\) Opt\[T\]](<#Null>) + - [func \(o Opt\[T\]\) MarshalJSON\(\) \(\[\]byte, error\)](<#Opt[T].MarshalJSON>) + - [func \(o Opt\[T\]\) MarshalJSONWithTimeLayout\(format string\) \[\]byte](<#Opt[T].MarshalJSONWithTimeLayout>) + - [func \(o Opt\[T\]\) Or\(v T\) T](<#Opt[T].Or>) + - [func \(o Opt\[T\]\) String\(\) string](<#Opt[T].String>) + - [func \(o \*Opt\[T\]\) UnmarshalJSON\(data \[\]byte\) error](<#Opt[T].UnmarshalJSON>) + - [func \(o Opt\[T\]\) Valid\(\) bool](<#Opt[T].Valid>) +- [type Optional](<#Optional>) +- [type ParamNullable](<#ParamNullable>) +- [type ParamStruct](<#ParamStruct>) + + +## Variables + +If we want to set a literal key value into JSON using sjson, we need to make sure it doesn't have special characters that sjson interprets as a path. + +```go +var EscapeSJSONKey = strings.NewReplacer("\\", "\\\\", "|", "\\|", "#", "\\#", "@", "\\@", "*", "\\*", ".", "\\.", ":", "\\:", "?", "\\?").Replace +``` + + +## func [IsNull]() + +```go +func IsNull[T any](v T) bool +``` + +IsNull returns true if v was set to the JSON value null. + +To set a param to null use [NullStruct](<#NullStruct>), [Null](<#Null>), [NullMap](<#NullMap>), or [NullSlice](<#NullSlice>) depending on the type of v. + +IsNull returns false if the value is omitted. + + +## func [IsOmitted]() + +```go +func IsOmitted(v any) bool +``` + +IsOmitted returns true if v is the zero value of its type. + +If IsOmitted is true, and the field uses a \`json:"...,omitzero"\` tag, the field will be omitted from the request. + +If v is set explicitly to the JSON value "null", IsOmitted returns false. + + +## func [MarshalObject]() + +```go +func MarshalObject[T ParamStruct](f T, underlying any) ([]byte, error) +``` + +MarshalObject uses a shimmed 'encoding/json' from Go 1.24, to support the 'omitzero' tag + +Stability for the API of MarshalObject is not guaranteed. + + +## func [MarshalUnion]() + +```go +func MarshalUnion[T ParamStruct](metadata T, variants ...any) ([]byte, error) +``` + +MarshalUnion uses a shimmed 'encoding/json' from Go 1.24, to support the 'omitzero' tag + +Stability for the API of MarshalUnion is not guaranteed. + + +## func [MarshalWithExtras]() + +```go +func MarshalWithExtras[T ParamStruct, R any](f T, underlying any, extras map[string]R) ([]byte, error) +``` + +MarshalWithExtras is used to marshal a struct with additional properties. + +Stability for the API of MarshalWithExtras is not guaranteed. + + +## func [NullMap]() + +```go +func NullMap[MapT ~map[string]T, T any]() MapT +``` + +NullMap returns a non\-nil map with a length of 0. When used with [MarshalObject](<#MarshalObject>) or [MarshalUnion](<#MarshalUnion>), it will be marshaled as null. + +It is unspecified behavior to mutate the map returned by [NullMap](<#NullMap>). + + +## func [NullSlice]() + +```go +func NullSlice[SliceT ~[]T, T any]() SliceT +``` + +NullSlice returns a non\-nil slice with a length of 0. When used with [MarshalObject](<#MarshalObject>) or [MarshalUnion](<#MarshalUnion>), it will be marshaled as null. + +It is unspecified behavior to mutate the slice returned by [NullSlice](<#NullSlice>). + + +## func [NullStruct]() + +```go +func NullStruct[T ParamStruct, PtrT InferPtr[T]]() T +``` + +NullStruct is used to set a struct to the JSON value null. Check for null structs with [IsNull](<#IsNull>). + +Only the first type parameter should be provided, the type PtrT will be inferred. + +``` +json.Marshal(param.NullStruct[MyStruct]()) -> 'null' +``` + +To send null to an [Opt](<#Opt>) field use [Null](<#Null>). + + +## func [Override]() + +```go +func Override[T ParamStruct, PtrT InferPtr[T]](v any) T +``` + +Override replaces the value of a struct with any type. + +Only the first type parameter should be provided, the type PtrT will be inferred. + +It's often useful for providing raw JSON + +``` +param.Override[MyStruct](json.RawMessage(`{"foo": "bar"}`)) +``` + +The public fields of the returned struct T will be unset. + +To override a specific field in a struct, use its \[SetExtraFields\] method. + + +## func [SetJSON]() + +```go +func SetJSON(rawJSON []byte, ptr anyParamStruct) +``` + +SetJSON configures a param struct to serialize with the provided raw JSON data. Use this when you have existing JSON that you want to send as request parameters. + +``` +var req example.NewUserParams +var rawJSON = []byte(`{"name": "...", "age": 40}`) +param.SetJSON(rawJSON, &req) +res, err := client.Users.New(ctx, req) +``` + +Note: The struct's existing fields will be ignored; only the provided JSON is serialized. + + +## type [APIObject]() + +APIObject should be embedded in api object fields, preferably using an alias to make private + +```go +type APIObject struct { + // contains filtered or unexported fields +} +``` + + +## type [APIUnion]() + +APIUnion should be embedded in all api unions fields, preferably using an alias to make private + +```go +type APIUnion struct { + // contains filtered or unexported fields +} +``` + + +## type [EncodedAsDate]() + +EncodedAsDate is not be stable and shouldn't be relied upon + +```go +type EncodedAsDate Opt[time.Time] +``` + + +### func \(EncodedAsDate\) [MarshalJSON]() + +```go +func (m EncodedAsDate) MarshalJSON() ([]byte, error) +``` + + + + +## type [InferPtr]() + +This is an implementation detail and should never be explicitly set. + +```go +type InferPtr[T ParamStruct] interface { + *T + // contains filtered or unexported methods +} +``` + + +## type [Opt]() + +Opt represents an optional parameter of type T. Use the [Opt.Valid](<#Opt.Valid>) method to confirm. + +```go +type Opt[T comparable] struct { + Value T + // contains filtered or unexported fields +} +``` + + +### func [NewOpt]() + +```go +func NewOpt[T comparable](v T) Opt[T] +``` + + + + +### func [Null]() + +```go +func Null[T comparable]() Opt[T] +``` + +Null creates optional field with the JSON value "null". + +To set a struct to null, use [NullStruct](<#NullStruct>). + + +### func \(Opt\[T\]\) [MarshalJSON]() + +```go +func (o Opt[T]) MarshalJSON() ([]byte, error) +``` + + + + +### func \(Opt\[T\]\) [MarshalJSONWithTimeLayout]() + +```go +func (o Opt[T]) MarshalJSONWithTimeLayout(format string) []byte +``` + +MarshalJSONWithTimeLayout is necessary to bypass the internal caching performed by \[json.Marshal\]. Prefer to use [Opt.MarshalJSON](<#Opt.MarshalJSON>) instead. + +This function requires that the generic type parameter of [Opt](<#Opt>) is not [time.Time](). + + +### func \(Opt\[T\]\) [Or]() + +```go +func (o Opt[T]) Or(v T) T +``` + + + + +### func \(Opt\[T\]\) [String]() + +```go +func (o Opt[T]) String() string +``` + + + + +### func \(\*Opt\[T\]\) [UnmarshalJSON]() + +```go +func (o *Opt[T]) UnmarshalJSON(data []byte) error +``` + + + + +### func \(Opt\[T\]\) [Valid]() + +```go +func (o Opt[T]) Valid() bool +``` + +Valid returns true if the value is not "null" or omitted. + +To check if explicitly null, use \[Opt.Null\]. + + +## type [Optional]() + +This interface is useful for internal purposes. + +```go +type Optional interface { + Valid() bool + // contains filtered or unexported methods +} +``` + + +## type [ParamNullable]() + +ParamNullable encapsulates all structs in parameters, and all [Opt](<#Opt>) types in parameters. + +```go +type ParamNullable interface { + // contains filtered or unexported methods +} +``` + + +## type [ParamStruct]() + +ParamStruct represents the set of all structs that are used in API parameters, by convention these usually end in "Params" or "Param". + +```go +type ParamStruct interface { + Overrides() (any, bool) + // contains filtered or unexported methods +} +``` + +# paramutil + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/paramutil" +``` + +## Index + +- [func AddrIfPresent\[T comparable\]\(v param.Opt\[T\]\) \*T](<#AddrIfPresent>) +- [func ToOpt\[T comparable\]\(v T, meta respjson.Field\) param.Opt\[T\]](<#ToOpt>) +- [func Valid\(v param.ParamStruct\) bool](<#Valid>) +- [func VariantFromUnion\(u reflect.Value\) \(any, error\)](<#VariantFromUnion>) + + + +## func [AddrIfPresent]() + +```go +func AddrIfPresent[T comparable](v param.Opt[T]) *T +``` + + + + +## func [ToOpt]() + +```go +func ToOpt[T comparable](v T, meta respjson.Field) param.Opt[T] +``` + + + + +## func [Valid]() + +```go +func Valid(v param.ParamStruct) bool +``` + +Checks if the value is not omitted and not null + + +## func [VariantFromUnion]() + +```go +func VariantFromUnion(u reflect.Value) (any, error) +``` + +VariantFromUnion can be used to extract the present variant from a param union type. A param union type is a struct with an embedded field of \[APIUnion\]. + +# respjson + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/respjson" +``` + +## Index + +- [Constants](<#constants>) +- [type Field](<#Field>) + - [func NewField\(raw string\) Field](<#NewField>) + - [func NewInvalidField\(raw string\) Field](<#NewInvalidField>) + - [func \(j Field\) Raw\(\) string](<#Field.Raw>) + - [func \(j Field\) Valid\(\) bool](<#Field.Valid>) + + +## Constants + + + +```go +const Null string = "null" +``` + + + +```go +const Omitted string = "" +``` + + +## type [Field]() + +A Field provides metadata to indicate the presence of a value. + +Use [Field.Valid](<#Field.Valid>) to check if an optional value was null or omitted. + +A Field will always occur in the following structure, where it mirrors the original field in its parent struct: + +``` +type ExampleObject struct { + Foo bool `json:"foo"` + Bar int `json:"bar"` + // ... + + // JSON provides metadata about the object. + JSON struct { + Foo Field + Bar Field + // ... + } `json:"-"` +} +``` + +To differentiate a "nullish" value from the zero value, use the [Field.Valid](<#Field.Valid>) method. + +``` +if !example.JSON.Foo.Valid() { + println("Foo is null or omitted") +} + +if example.Foo { + println("Foo is true") +} else { + println("Foo is false") +} +``` + +To differentiate if a field was omitted or the JSON value "null", use the [Field.Raw](<#Field.Raw>) method. + +``` +if example.JSON.Foo.Raw() == "null" { + println("Foo is null") +} + +if example.JSON.Foo.Raw() == "" { + println("Foo was omitted") +} +``` + +Otherwise, if the field was invalid and couldn't be marshalled successfully, [Field.Valid](<#Field.Valid>) will be false and [Field.Raw](<#Field.Raw>) will not be empty. + +```go +type Field struct { + // contains filtered or unexported fields +} +``` + + +### func [NewField]() + +```go +func NewField(raw string) Field +``` + + + + +### func [NewInvalidField]() + +```go +func NewInvalidField(raw string) Field +``` + + + + +### func \(Field\) [Raw]() + +```go +func (j Field) Raw() string +``` + +Returns the raw JSON value of the field. + + +### func \(Field\) [Valid]() + +```go +func (j Field) Valid() bool +``` + +Valid returns true if the parent field was set. Valid returns false if the value doesn't exist, is JSON null, or is an unexpected type. + +# resumablestream + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/resumablestream" +``` + +Package resumablestream reconnects resource\-level SSE streams after retryable failures. + +## Index + +- [type Child](<#Child>) +- [type Open](<#Open>) +- [type Stream](<#Stream>) + - [func New\[T any\]\(ctx context.Context, lastEventID string, open Open\[T\], terminal func\(T\) bool\) \*Stream\[T\]](<#New>) + - [func NewError\[T any\]\(ctx context.Context, err error\) \*Stream\[T\]](<#NewError>) + - [func \(s \*Stream\[T\]\) Close\(\) error](<#Stream[T].Close>) + - [func \(s \*Stream\[T\]\) Current\(\) T](<#Stream[T].Current>) + - [func \(s \*Stream\[T\]\) Err\(\) error](<#Stream[T].Err>) + - [func \(s \*Stream\[T\]\) LastEventID\(\) string](<#Stream[T].LastEventID>) + - [func \(s \*Stream\[T\]\) Next\(\) bool](<#Stream[T].Next>) + + + +## type [Child]() + +Child is one connection in a resumable stream. + +```go +type Child[T any] interface { + Next() bool + Current() T + Err() error + LastEventID() string + Close() error +} +``` + + +## type [Open]() + +Open starts a child stream at the supplied event cursor. resume is true once the cursor came from a yielded event rather than the initial request. + +```go +type Open[T any] func(context.Context, string, bool) Child[T] +``` + + +## type [Stream]() + +Stream reconnects child streams while retaining the latest yielded event cursor. + +```go +type Stream[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [New]() + +```go +func New[T any](ctx context.Context, lastEventID string, open Open[T], terminal func(T) bool) *Stream[T] +``` + +New creates a resumable stream. Connections are opened lazily by Next. + + +### func [NewError]() + +```go +func NewError[T any](ctx context.Context, err error) *Stream[T] +``` + +NewError creates a stream that has already failed. + + +### func \(\*Stream\[T\]\) [Close]() + +```go +func (s *Stream[T]) Close() error +``` + +Close cancels pending work and closes the active child stream. + + +### func \(\*Stream\[T\]\) [Current]() + +```go +func (s *Stream[T]) Current() T +``` + +Current returns the most recently yielded event. + + +### func \(\*Stream\[T\]\) [Err]() + +```go +func (s *Stream[T]) Err() error +``` + +Err returns the terminal non\-retryable or context error, if any. + + +### func \(\*Stream\[T\]\) [LastEventID]() + +```go +func (s *Stream[T]) LastEventID() string +``` + +LastEventID returns the latest non\-empty cursor from a yielded child event. + + +### func \(\*Stream\[T\]\) [Next]() + +```go +func (s *Stream[T]) Next() bool +``` + +Next advances to the next decoded event, reconnecting as needed. + +# ssestream + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/ssestream" +``` + +Package ssestream incrementally decodes Qoder server\-sent events. + +## Index + +- [type Decoder](<#Decoder>) + - [func NewDecoder\(res \*http.Response\) Decoder](<#NewDecoder>) +- [type Event](<#Event>) +- [type Stream](<#Stream>) + - [func NewStream\[T any\]\(d Decoder, err error\) \*Stream\[T\]](<#NewStream>) + - [func \(s \*Stream\[T\]\) Close\(\) error](<#Stream[T].Close>) + - [func \(s \*Stream\[T\]\) Current\(\) T](<#Stream[T].Current>) + - [func \(s \*Stream\[T\]\) Err\(\) error](<#Stream[T].Err>) + - [func \(s \*Stream\[T\]\) LastEventID\(\) string](<#Stream[T].LastEventID>) + - [func \(s \*Stream\[T\]\) Next\(\) bool](<#Stream[T].Next>) + + + +## type [Decoder]() + + + +```go +type Decoder interface { + Event() Event + Next() bool + Close() error + Err() error +} +``` + + +### func [NewDecoder]() + +```go +func NewDecoder(res *http.Response) Decoder +``` + + + + +## type [Event]() + + + +```go +type Event struct { + Type string + Data []byte + ID string + Retry int64 +} +``` + + +## type [Stream]() + + + +```go +type Stream[T any] struct { + // contains filtered or unexported fields +} +``` + + +### func [NewStream]() + +```go +func NewStream[T any](d Decoder, err error) *Stream[T] +``` + + + + +### func \(\*Stream\[T\]\) [Close]() + +```go +func (s *Stream[T]) Close() error +``` + + + + +### func \(\*Stream\[T\]\) [Current]() + +```go +func (s *Stream[T]) Current() T +``` + + + + +### func \(\*Stream\[T\]\) [Err]() + +```go +func (s *Stream[T]) Err() error +``` + + + + +### func \(\*Stream\[T\]\) [LastEventID]() + +```go +func (s *Stream[T]) LastEventID() string +``` + +LastEventID can be passed as a Last\-Event\-ID header when the caller reconnects. + + +### func \(\*Stream\[T\]\) [Next]() + +```go +func (s *Stream[T]) Next() bool +``` + + + +# json + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/encoding/json" +``` + +Package json implements encoding and decoding of JSON as defined in RFC 7159. The mapping between JSON and Go values is described in the documentation for the Marshal and Unmarshal functions. + +See "JSON and Go" for an introduction to this package: https://golang.org/doc/articles/json_and_go.html + +EDIT\(begin\): add custom options for JSON encoding + +EDIT\(begin\): custom time marshaler + +## Index + +- [func Compact\(dst \*bytes.Buffer, src \[\]byte\) error](<#Compact>) +- [func HTMLEscape\(dst \*bytes.Buffer, src \[\]byte\)](<#HTMLEscape>) +- [func Indent\(dst \*bytes.Buffer, src \[\]byte, prefix, indent string\) error](<#Indent>) +- [func Marshal\(v any, opts ...Option\) \(\[\]byte, error\)](<#Marshal>) +- [func MarshalIndent\(v any, prefix, indent string\) \(\[\]byte, error\)](<#MarshalIndent>) +- [func TimeLayout\(fmt string\) string](<#TimeLayout>) +- [func Unmarshal\(data \[\]byte, v any\) error](<#Unmarshal>) +- [func Valid\(data \[\]byte\) bool](<#Valid>) +- [type Decoder](<#Decoder>) + - [func NewDecoder\(r io.Reader\) \*Decoder](<#NewDecoder>) + - [func \(dec \*Decoder\) Buffered\(\) io.Reader](<#Decoder.Buffered>) + - [func \(dec \*Decoder\) Decode\(v any\) error](<#Decoder.Decode>) + - [func \(dec \*Decoder\) DisallowUnknownFields\(\)](<#Decoder.DisallowUnknownFields>) + - [func \(dec \*Decoder\) InputOffset\(\) int64](<#Decoder.InputOffset>) + - [func \(dec \*Decoder\) More\(\) bool](<#Decoder.More>) + - [func \(dec \*Decoder\) Token\(\) \(Token, error\)](<#Decoder.Token>) + - [func \(dec \*Decoder\) UseNumber\(\)](<#Decoder.UseNumber>) +- [type Delim](<#Delim>) + - [func \(d Delim\) String\(\) string](<#Delim.String>) +- [type Encoder](<#Encoder>) + - [func NewEncoder\(w io.Writer\) \*Encoder](<#NewEncoder>) + - [func \(enc \*Encoder\) Encode\(v any\) error](<#Encoder.Encode>) + - [func \(enc \*Encoder\) SetEscapeHTML\(on bool\)](<#Encoder.SetEscapeHTML>) + - [func \(enc \*Encoder\) SetIndent\(prefix, indent string\)](<#Encoder.SetIndent>) +- [type InvalidUTF8Error](<#InvalidUTF8Error>) + - [func \(e \*InvalidUTF8Error\) Error\(\) string](<#InvalidUTF8Error.Error>) +- [type InvalidUnmarshalError](<#InvalidUnmarshalError>) + - [func \(e \*InvalidUnmarshalError\) Error\(\) string](<#InvalidUnmarshalError.Error>) +- [type Marshaler](<#Marshaler>) +- [type MarshalerError](<#MarshalerError>) + - [func \(e \*MarshalerError\) Error\(\) string](<#MarshalerError.Error>) + - [func \(e \*MarshalerError\) Unwrap\(\) error](<#MarshalerError.Unwrap>) +- [type Number](<#Number>) + - [func \(n Number\) Float64\(\) \(float64, error\)](<#Number.Float64>) + - [func \(n Number\) Int64\(\) \(int64, error\)](<#Number.Int64>) + - [func \(n Number\) String\(\) string](<#Number.String>) +- [type Option](<#Option>) + - [func WithSkipCompaction\(b bool\) Option](<#WithSkipCompaction>) +- [type SyntaxError](<#SyntaxError>) + - [func \(e \*SyntaxError\) Error\(\) string](<#SyntaxError.Error>) +- [type TimeMarshaler](<#TimeMarshaler>) +- [type Token](<#Token>) +- [type UnmarshalFieldError](<#UnmarshalFieldError>) + - [func \(e \*UnmarshalFieldError\) Error\(\) string](<#UnmarshalFieldError.Error>) +- [type UnmarshalTypeError](<#UnmarshalTypeError>) + - [func \(e \*UnmarshalTypeError\) Error\(\) string](<#UnmarshalTypeError.Error>) +- [type Unmarshaler](<#Unmarshaler>) +- [type UnsupportedTypeError](<#UnsupportedTypeError>) + - [func \(e \*UnsupportedTypeError\) Error\(\) string](<#UnsupportedTypeError.Error>) +- [type UnsupportedValueError](<#UnsupportedValueError>) + - [func \(e \*UnsupportedValueError\) Error\(\) string](<#UnsupportedValueError.Error>) + + + +## func [Compact]() + +```go +func Compact(dst *bytes.Buffer, src []byte) error +``` + +Compact appends to dst the JSON\-encoded src with insignificant space characters elided. + + +## func [HTMLEscape]() + +```go +func HTMLEscape(dst *bytes.Buffer, src []byte) +``` + +HTMLEscape appends to dst the JSON\-encoded src with \<, \>, &, U\+2028 and U\+2029 characters inside string literals changed to \\u003c, \\u003e, \\u0026, \\u2028, \\u2029 so that the JSON will be safe to embed inside HTML \ tags. For historical reasons, web browsers don't honor standard HTML escaping within \ tags, so an alternative JSON encoding must be used. + + +## func [Indent]() + +```go +func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error +``` + +Indent appends to dst an indented form of the JSON\-encoded src. Each element in a JSON object or array begins on a new, indented line beginning with prefix followed by one or more copies of indent according to the indentation nesting. The data appended to dst does not begin with the prefix nor any indentation, to make it easier to embed inside other formatted JSON data. Although leading space characters \(space, tab, carriage return, newline\) at the beginning of src are dropped, trailing space characters at the end of src are preserved and copied to dst. For example, if src has no trailing spaces, neither will dst; if src ends in a trailing newline, so will dst. + + +## func [Marshal]() + +```go +func Marshal(v any, opts ...Option) ([]byte, error) +``` + +Marshal returns the JSON encoding of v. + +Marshal traverses the value v recursively. If an encountered value implements [Marshaler](<#Marshaler>) and is not a nil pointer, Marshal calls Marshaler.MarshalJSON to produce JSON. If no Marshaler.MarshalJSON method is present but the value implements [encoding.TextMarshaler]() instead, Marshal calls [encoding.TextMarshaler.MarshalText]() and encodes the result as a JSON string. The nil pointer exception is not strictly necessary but mimics a similar, necessary exception in the behavior of Unmarshaler.UnmarshalJSON. + +Otherwise, Marshal uses the following type\-dependent default encodings: + +Boolean values encode as JSON booleans. + +Floating point, integer, and [Number](<#Number>) values encode as JSON numbers. NaN and \+/\-Inf values will return an [UnsupportedValueError](<#UnsupportedValueError>). + +String values encode as JSON strings coerced to valid UTF\-8, replacing invalid bytes with the Unicode replacement rune. So that the JSON will be safe to embed inside HTML \ tags, the string is encoded using [HTMLEscape](<#HTMLEscape>), which replaces "\<", "\>", "&", U\+2028, and U\+2029 are escaped to "\\u003c","\\u003e", "\\u0026", "\\u2028", and "\\u2029". This replacement can be disabled when using an [Encoder](<#Encoder>), by calling [Encoder.SetEscapeHTML](<#Encoder.SetEscapeHTML>)\(false\). + +Array and slice values encode as JSON arrays, except that \[\]byte encodes as a base64\-encoded string, and a nil slice encodes as the null JSON value. + +Struct values encode as JSON objects. Each exported struct field becomes a member of the object, using the field name as the object key, unless the field is omitted for one of the reasons given below. + +The encoding of each struct field can be customized by the format string stored under the "json" key in the struct field's tag. The format string gives the name of the field, possibly followed by a comma\-separated list of options. The name may be empty in order to specify options without overriding the default field name. + +The "omitempty" option specifies that the field should be omitted from the encoding if the field has an empty value, defined as false, 0, a nil pointer, a nil interface value, and any array, slice, map, or string of length zero. + +As a special case, if the field tag is "\-", the field is always omitted. Note that a field with name "\-" can still be generated using the tag "\-,". + +Examples of struct field tags and their meanings: + +``` +// Field appears in JSON as key "myName". +Field int `json:"myName"` + +// Field appears in JSON as key "myName" and +// the field is omitted from the object if its value is empty, +// as defined above. +Field int `json:"myName,omitempty"` + +// Field appears in JSON as key "Field" (the default), but +// the field is skipped if empty. +// Note the leading comma. +Field int `json:",omitempty"` + +// Field is ignored by this package. +Field int `json:"-"` + +// Field appears in JSON as key "-". +Field int `json:"-,"` +``` + +The "omitzero" option specifies that the field should be omitted from the encoding if the field has a zero value, according to rules: + +1\) If the field type has an "IsZero\(\) bool" method, that will be used to determine whether the value is zero. + +2\) Otherwise, the value is zero if it is the zero value for its type. + +If both "omitempty" and "omitzero" are specified, the field will be omitted if the value is either empty or zero \(or both\). + +The "string" option signals that a field is stored as JSON inside a JSON\-encoded string. It applies only to fields of string, floating point, integer, or boolean types. This extra level of encoding is sometimes used when communicating with JavaScript programs: + +``` +Int64String int64 `json:",string"` +``` + +The key name will be used if it's a non\-empty string consisting of only Unicode letters, digits, and ASCII punctuation except quotation marks, backslash, and comma. + +Embedded struct fields are usually marshaled as if their inner exported fields were fields in the outer struct, subject to the usual Go visibility rules amended as described in the next paragraph. An anonymous struct field with a name given in its JSON tag is treated as having that name, rather than being anonymous. An anonymous struct field of interface type is treated the same as having that type as its name, rather than being anonymous. + +The Go visibility rules for struct fields are amended for JSON when deciding which field to marshal or unmarshal. If there are multiple fields at the same level, and that level is the least nested \(and would therefore be the nesting level selected by the usual Go rules\), the following extra rules apply: + +1\) Of those fields, if any are JSON\-tagged, only tagged fields are considered, even if there are multiple untagged fields that would otherwise conflict. + +2\) If there is exactly one field \(tagged or not according to the first rule\), that is selected. + +3\) Otherwise there are multiple fields, and all are ignored; no error occurs. + +Handling of anonymous struct fields is new in Go 1.1. Prior to Go 1.1, anonymous struct fields were ignored. To force ignoring of an anonymous struct field in both current and earlier versions, give the field a JSON tag of "\-". + +Map values encode as JSON objects. The map's key type must either be a string, an integer type, or implement [encoding.TextMarshaler](). The map keys are sorted and used as JSON object keys by applying the following rules, subject to the UTF\-8 coercion described for string values above: + +- keys of any string type are used directly +- keys that implement [encoding.TextMarshaler]() are marshaled +- integer keys are converted to strings + +Pointer values encode as the value pointed to. A nil pointer encodes as the null JSON value. + +Interface values encode as the value contained in the interface. A nil interface value encodes as the null JSON value. + +Channel, complex, and function values cannot be encoded in JSON. Attempting to encode such a value causes Marshal to return an [UnsupportedTypeError](<#UnsupportedTypeError>). + +JSON cannot represent cyclic data structures and Marshal does not handle them. Passing cyclic structures to Marshal will result in an error. EDIT\(begin\): add optimization options + + +## func [MarshalIndent]() + +```go +func MarshalIndent(v any, prefix, indent string) ([]byte, error) +``` + +MarshalIndent is like [Marshal](<#Marshal>) but applies [Indent](<#Indent>) to format the output. Each JSON element in the output will begin on a new line beginning with prefix followed by one or more copies of indent according to the indentation nesting. + + +## func [TimeLayout]() + +```go +func TimeLayout(fmt string) string +``` + + + + +## func [Unmarshal]() + +```go +func Unmarshal(data []byte, v any) error +``` + +Unmarshal parses the JSON\-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an [InvalidUnmarshalError](<#InvalidUnmarshalError>). + +Unmarshal uses the inverse of the encodings that [Marshal](<#Marshal>) uses, allocating maps, slices, and pointers as necessary, with the following additional rules: + +To unmarshal JSON into a pointer, Unmarshal first handles the case of the JSON being the JSON literal null. In that case, Unmarshal sets the pointer to nil. Otherwise, Unmarshal unmarshals the JSON into the value pointed at by the pointer. If the pointer is nil, Unmarshal allocates a new value for it to point to. + +To unmarshal JSON into a value implementing [Unmarshaler](<#Unmarshaler>), Unmarshal calls that value's Unmarshaler.UnmarshalJSON method, including when the input is a JSON null. Otherwise, if the value implements [encoding.TextUnmarshaler]() and the input is a JSON quoted string, Unmarshal calls [encoding.TextUnmarshaler.UnmarshalText]() with the unquoted form of the string. + +To unmarshal JSON into a struct, Unmarshal matches incoming object keys to the keys used by [Marshal](<#Marshal>) \(either the struct field name or its tag\), preferring an exact match but also accepting a case\-insensitive match. By default, object keys which don't have a corresponding struct field are ignored \(see [Decoder.DisallowUnknownFields](<#Decoder.DisallowUnknownFields>) for an alternative\). + +To unmarshal JSON into an interface value, Unmarshal stores one of these in the interface value: + +- bool, for JSON booleans +- float64, for JSON numbers +- string, for JSON strings +- \[\]any, for JSON arrays +- map\[string\]any, for JSON objects +- nil for JSON null + +To unmarshal a JSON array into a slice, Unmarshal resets the slice length to zero and then appends each element to the slice. As a special case, to unmarshal an empty JSON array into a slice, Unmarshal replaces the slice with a new empty slice. + +To unmarshal a JSON array into a Go array, Unmarshal decodes JSON array elements into corresponding Go array elements. If the Go array is smaller than the JSON array, the additional JSON array elements are discarded. If the JSON array is smaller than the Go array, the additional Go array elements are set to zero values. + +To unmarshal a JSON object into a map, Unmarshal first establishes a map to use. If the map is nil, Unmarshal allocates a new map. Otherwise Unmarshal reuses the existing map, keeping existing entries. Unmarshal then stores key\-value pairs from the JSON object into the map. The map's key type must either be any string type, an integer, or implement [encoding.TextUnmarshaler](). + +If the JSON\-encoded data contain a syntax error, Unmarshal returns a [SyntaxError](<#SyntaxError>). + +If a JSON value is not appropriate for a given target type, or if a JSON number overflows the target type, Unmarshal skips that field and completes the unmarshaling as best it can. If no more serious errors are encountered, Unmarshal returns an [UnmarshalTypeError](<#UnmarshalTypeError>) describing the earliest such error. In any case, it's not guaranteed that all the remaining fields following the problematic one will be unmarshaled into the target object. + +The JSON null value unmarshals into an interface, map, pointer, or slice by setting that Go value to nil. Because null is often used in JSON to mean “not present,” unmarshaling a JSON null into any other Go type has no effect on the value and produces no error. + +When unmarshaling quoted strings, invalid UTF\-8 or invalid UTF\-16 surrogate pairs are not treated as an error. Instead, they are replaced by the Unicode replacement character U\+FFFD. + + +## func [Valid]() + +```go +func Valid(data []byte) bool +``` + +Valid reports whether data is a valid JSON encoding. + + +## type [Decoder]() + +A Decoder reads and decodes JSON values from an input stream. + +```go +type Decoder struct { + // contains filtered or unexported fields +} +``` + + +### func [NewDecoder]() + +```go +func NewDecoder(r io.Reader) *Decoder +``` + +NewDecoder returns a new decoder that reads from r. + +The decoder introduces its own buffering and may read data from r beyond the JSON values requested. + + +### func \(\*Decoder\) [Buffered]() + +```go +func (dec *Decoder) Buffered() io.Reader +``` + +Buffered returns a reader of the data remaining in the Decoder's buffer. The reader is valid until the next call to [Decoder.Decode](<#Decoder.Decode>). + + +### func \(\*Decoder\) [Decode]() + +```go +func (dec *Decoder) Decode(v any) error +``` + +Decode reads the next JSON\-encoded value from its input and stores it in the value pointed to by v. + +See the documentation for [Unmarshal](<#Unmarshal>) for details about the conversion of JSON into a Go value. + + +### func \(\*Decoder\) [DisallowUnknownFields]() + +```go +func (dec *Decoder) DisallowUnknownFields() +``` + +DisallowUnknownFields causes the Decoder to return an error when the destination is a struct and the input contains object keys which do not match any non\-ignored, exported fields in the destination. + + +### func \(\*Decoder\) [InputOffset]() + +```go +func (dec *Decoder) InputOffset() int64 +``` + +InputOffset returns the input stream byte offset of the current decoder position. The offset gives the location of the end of the most recently returned token and the beginning of the next token. + + +### func \(\*Decoder\) [More]() + +```go +func (dec *Decoder) More() bool +``` + +More reports whether there is another element in the current array or object being parsed. + + +### func \(\*Decoder\) [Token]() + +```go +func (dec *Decoder) Token() (Token, error) +``` + +Token returns the next JSON token in the input stream. At the end of the input stream, Token returns nil, [io.EOF](). + +Token guarantees that the delimiters \[ \] \{ \} it returns are properly nested and matched: if Token encounters an unexpected delimiter in the input, it will return an error. + +The input stream consists of basic JSON values—bool, string, number, and null—along with delimiters \[ \] \{ \} of type [Delim](<#Delim>) to mark the start and end of arrays and objects. Commas and colons are elided. + + +### func \(\*Decoder\) [UseNumber]() + +```go +func (dec *Decoder) UseNumber() +``` + +UseNumber causes the Decoder to unmarshal a number into an interface value as a [Number](<#Number>) instead of as a float64. + + +## type [Delim]() + +A Delim is a JSON array or object delimiter, one of \[ \] \{ or \}. + +```go +type Delim rune +``` + + +### func \(Delim\) [String]() + +```go +func (d Delim) String() string +``` + + + + +## type [Encoder]() + +An Encoder writes JSON values to an output stream. + +```go +type Encoder struct { + // contains filtered or unexported fields +} +``` + + +### func [NewEncoder]() + +```go +func NewEncoder(w io.Writer) *Encoder +``` + +NewEncoder returns a new encoder that writes to w. + + +### func \(\*Encoder\) [Encode]() + +```go +func (enc *Encoder) Encode(v any) error +``` + +Encode writes the JSON encoding of v to the stream, with insignificant space characters elided, followed by a newline character. + +See the documentation for [Marshal](<#Marshal>) for details about the conversion of Go values to JSON. + + +### func \(\*Encoder\) [SetEscapeHTML]() + +```go +func (enc *Encoder) SetEscapeHTML(on bool) +``` + +SetEscapeHTML specifies whether problematic HTML characters should be escaped inside JSON quoted strings. The default behavior is to escape &, \<, and \> to \\u0026, \\u003c, and \\u003e to avoid certain safety problems that can arise when embedding JSON in HTML. + +In non\-HTML settings where the escaping interferes with the readability of the output, SetEscapeHTML\(false\) disables this behavior. + + +### func \(\*Encoder\) [SetIndent]() + +```go +func (enc *Encoder) SetIndent(prefix, indent string) +``` + +SetIndent instructs the encoder to format each subsequent encoded value as if indented by the package\-level function Indent\(dst, src, prefix, indent\). Calling SetIndent\("", ""\) disables indentation. + + +## type [InvalidUTF8Error]() + +Before Go 1.2, an InvalidUTF8Error was returned by [Marshal](<#Marshal>) when attempting to encode a string value with invalid UTF\-8 sequences. As of Go 1.2, [Marshal](<#Marshal>) instead coerces the string to valid UTF\-8 by replacing invalid bytes with the Unicode replacement rune U\+FFFD. + +Deprecated: No longer used; kept for compatibility. + +```go +type InvalidUTF8Error struct { + S string // the whole string value that caused the error +} +``` + + +### func \(\*InvalidUTF8Error\) [Error]() + +```go +func (e *InvalidUTF8Error) Error() string +``` + + + + +## type [InvalidUnmarshalError]() + +An InvalidUnmarshalError describes an invalid argument passed to [Unmarshal](<#Unmarshal>). \(The argument to [Unmarshal](<#Unmarshal>) must be a non\-nil pointer.\) + +```go +type InvalidUnmarshalError struct { + Type reflect.Type +} +``` + + +### func \(\*InvalidUnmarshalError\) [Error]() + +```go +func (e *InvalidUnmarshalError) Error() string +``` + + + + +## type [Marshaler]() + +Marshaler is the interface implemented by types that can marshal themselves into valid JSON. + +```go +type Marshaler interface { + MarshalJSON() ([]byte, error) +} +``` + + +## type [MarshalerError]() + +A MarshalerError represents an error from calling a Marshaler.MarshalJSON or [encoding.TextMarshaler.MarshalText]() method. + +```go +type MarshalerError struct { + Type reflect.Type + Err error + // contains filtered or unexported fields +} +``` + + +### func \(\*MarshalerError\) [Error]() + +```go +func (e *MarshalerError) Error() string +``` + + + + +### func \(\*MarshalerError\) [Unwrap]() + +```go +func (e *MarshalerError) Unwrap() error +``` + +Unwrap returns the underlying error. + + +## type [Number]() + +A Number represents a JSON number literal. + +```go +type Number string +``` + + +### func \(Number\) [Float64]() + +```go +func (n Number) Float64() (float64, error) +``` + +Float64 returns the number as a float64. + + +### func \(Number\) [Int64]() + +```go +func (n Number) Int64() (int64, error) +``` + +Int64 returns the number as an int64. + + +### func \(Number\) [String]() + +```go +func (n Number) String() string +``` + +String returns the literal text of the number. + + +## type [Option]() + + + +```go +type Option func(*encOpts) +``` + + +### func [WithSkipCompaction]() + +```go +func WithSkipCompaction(b bool) Option +``` + +Every time a sub\-type of [json.Marshaler](<#Marshaler>) is encountered, skip a redundant and costly compaction step, trust it to self\-compact. + +This is a divergence from the standard library behavior, and is only guaranteed safe with SDK types. + + +## type [SyntaxError]() + +A SyntaxError is a description of a JSON syntax error. [Unmarshal](<#Unmarshal>) will return a SyntaxError if the JSON can't be parsed. + +```go +type SyntaxError struct { + Offset int64 // error occurred after reading Offset bytes + // contains filtered or unexported fields +} +``` + + +### func \(\*SyntaxError\) [Error]() + +```go +func (e *SyntaxError) Error() string +``` + + + + +## type [TimeMarshaler]() + + + +```go +type TimeMarshaler interface { + MarshalJSONWithTimeLayout(string) []byte +} +``` + + +## type [Token]() + +A Token holds a value of one of these types: + +- [Delim](<#Delim>), for the four JSON delimiters \[ \] \{ \} +- bool, for JSON booleans +- float64, for JSON numbers +- [Number](<#Number>), for JSON numbers +- string, for JSON string literals +- nil, for JSON null + +```go +type Token any +``` + + +## type [UnmarshalFieldError]() + +An UnmarshalFieldError describes a JSON object key that led to an unexported \(and therefore unwritable\) struct field. + +Deprecated: No longer used; kept for compatibility. + +```go +type UnmarshalFieldError struct { + Key string + Type reflect.Type + Field reflect.StructField +} +``` + + +### func \(\*UnmarshalFieldError\) [Error]() + +```go +func (e *UnmarshalFieldError) Error() string +``` + + + + +## type [UnmarshalTypeError]() + +An UnmarshalTypeError describes a JSON value that was not appropriate for a value of a specific Go type. + +```go +type UnmarshalTypeError struct { + Value string // description of JSON value - "bool", "array", "number -5" + Type reflect.Type // type of Go value it could not be assigned to + Offset int64 // error occurred after reading Offset bytes + Struct string // name of the struct type containing the field + Field string // the full path from root node to the field, include embedded struct +} +``` + + +### func \(\*UnmarshalTypeError\) [Error]() + +```go +func (e *UnmarshalTypeError) Error() string +``` + + + + +## type [Unmarshaler]() + +Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves. The input can be assumed to be a valid encoding of a JSON value. UnmarshalJSON must copy the JSON data if it wishes to retain the data after returning. + +By convention, to approximate the behavior of [Unmarshal](<#Unmarshal>) itself, Unmarshalers implement UnmarshalJSON\(\[\]byte\("null"\)\) as a no\-op. + +```go +type Unmarshaler interface { + UnmarshalJSON([]byte) error +} +``` + + +## type [UnsupportedTypeError]() + +An UnsupportedTypeError is returned by [Marshal](<#Marshal>) when attempting to encode an unsupported value type. + +```go +type UnsupportedTypeError struct { + Type reflect.Type +} +``` + + +### func \(\*UnsupportedTypeError\) [Error]() + +```go +func (e *UnsupportedTypeError) Error() string +``` + + + + +## type [UnsupportedValueError]() + +An UnsupportedValueError is returned by [Marshal](<#Marshal>) when attempting to encode an unsupported value. + +```go +type UnsupportedValueError struct { + Value reflect.Value + Str string +} +``` + + +### func \(\*UnsupportedValueError\) [Error]() + +```go +func (e *UnsupportedValueError) Error() string +``` + + + +# gjson + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/thirdparty/gjson" +``` + +Package gjson provides searching for json strings. + +## Index + +- [Variables](<#variables>) +- [func AddModifier\(name string, fn func\(json, arg string\) string\)](<#AddModifier>) +- [func AppendJSONString\(dst \[\]byte, s string\) \[\]byte](<#AppendJSONString>) +- [func Escape\(comp string\) string](<#Escape>) +- [func ForEachLine\(json string, iterator func\(line Result\) bool\)](<#ForEachLine>) +- [func ModifierExists\(name string, fn func\(json, arg string\) string\) bool](<#ModifierExists>) +- [func Valid\(json string\) bool](<#Valid>) +- [func ValidBytes\(json \[\]byte\) bool](<#ValidBytes>) +- [type Result](<#Result>) + - [func Get\(json, path string\) Result](<#Get>) + - [func GetBytes\(json \[\]byte, path string\) Result](<#GetBytes>) + - [func GetMany\(json string, path ...string\) \[\]Result](<#GetMany>) + - [func GetManyBytes\(json \[\]byte, path ...string\) \[\]Result](<#GetManyBytes>) + - [func Parse\(json string\) Result](<#Parse>) + - [func ParseBytes\(json \[\]byte\) Result](<#ParseBytes>) + - [func \(t Result\) Array\(\) \[\]Result](<#Result.Array>) + - [func \(t Result\) Bool\(\) bool](<#Result.Bool>) + - [func \(t Result\) Exists\(\) bool](<#Result.Exists>) + - [func \(t Result\) Float\(\) float64](<#Result.Float>) + - [func \(t Result\) ForEach\(iterator func\(key, value Result\) bool\)](<#Result.ForEach>) + - [func \(t Result\) Get\(path string\) Result](<#Result.Get>) + - [func \(t Result\) Int\(\) int64](<#Result.Int>) + - [func \(t Result\) IsArray\(\) bool](<#Result.IsArray>) + - [func \(t Result\) IsBool\(\) bool](<#Result.IsBool>) + - [func \(t Result\) IsObject\(\) bool](<#Result.IsObject>) + - [func \(t Result\) Less\(token Result, caseSensitive bool\) bool](<#Result.Less>) + - [func \(t Result\) Map\(\) map\[string\]Result](<#Result.Map>) + - [func \(t Result\) Path\(json string\) string](<#Result.Path>) + - [func \(t Result\) Paths\(json string\) \[\]string](<#Result.Paths>) + - [func \(t Result\) String\(\) string](<#Result.String>) + - [func \(t Result\) Time\(\) time.Time](<#Result.Time>) + - [func \(t Result\) Uint\(\) uint64](<#Result.Uint>) + - [func \(t Result\) Value\(\) interface\{\}](<#Result.Value>) +- [type Type](<#Type>) + - [func \(t Type\) String\(\) string](<#Type.String>) + + +## Variables + +DisableEscapeHTML will disable the automatic escaping of certain "problamatic" HTML characters when encoding to JSON. These character include '\>', '\<' and '&', which get escaped to \\u003e, \\u0026, and \\u003c respectively. + +This is a global flag and will affect all further gjson operations. Ideally, if used, it should be set one time before other gjson functions are called. + +```go +var DisableEscapeHTML = false +``` + +DisableModifiers will disable the modifier syntax + +```go +var DisableModifiers = false +``` + + +## func [AddModifier]() + +```go +func AddModifier(name string, fn func(json, arg string) string) +``` + +AddModifier binds a custom modifier command to the GJSON syntax. This operation is not thread safe and should be executed prior to using all other gjson function. + + +## func [AppendJSONString]() + +```go +func AppendJSONString(dst []byte, s string) []byte +``` + +AppendJSONString is a convenience function that converts the provided string to a valid JSON string and appends it to dst. + + +## func [Escape]() + +```go +func Escape(comp string) string +``` + +Escape returns an escaped path component. + +``` +json := `{ + "user":{ + "first.name": "Janet", + "last.name": "Prichard" + } +}` +user := gjson.Get(json, "user") +println(user.Get(gjson.Escape("first.name")) +println(user.Get(gjson.Escape("last.name")) +// Output: +// Janet +// Prichard +``` + + +## func [ForEachLine]() + +```go +func ForEachLine(json string, iterator func(line Result) bool) +``` + +ForEachLine iterates through lines of JSON as specified by the JSON Lines format \(http://jsonlines.org/\). Each line is returned as a GJSON Result. + + +## func [ModifierExists]() + +```go +func ModifierExists(name string, fn func(json, arg string) string) bool +``` + +ModifierExists returns true when the specified modifier exists. + + +## func [Valid]() + +```go +func Valid(json string) bool +``` + +Valid returns true if the input is valid json. + +``` +if !gjson.Valid(json) { + return errors.New("invalid json") +} +value := gjson.Get(json, "name.last") +``` + + +## func [ValidBytes]() + +```go +func ValidBytes(json []byte) bool +``` + +ValidBytes returns true if the input is valid json. + +``` +if !gjson.Valid(json) { + return errors.New("invalid json") +} +value := gjson.Get(json, "name.last") +``` + +If working with bytes, this method preferred over ValidBytes\(string\(data\)\) + + +## type [Result]() + +Result represents a json value that is returned from Get\(\). + +```go +type Result struct { + // Type is the json type + Type Type + // Raw is the raw json + Raw string + // Str is the json string + Str string + // Num is the json number + Num float64 + // Index of raw value in original json, zero means index unknown + Index int + // Indexes of all the elements that match on a path containing the '#' + // query character. + Indexes []int +} +``` + + +### func [Get]() + +```go +func Get(json, path string) Result +``` + +Get searches json for the specified path. A path is in dot syntax, such as "name.last" or "age". When the value is found it's returned immediately. + +A path is a series of keys separated by a dot. A key may contain special wildcard characters '\*' and '?'. To access an array value use the index as the key. To get the number of elements in an array or to access a child path, use the '\#' character. The dot and wildcard character can be escaped with '\\'. + +``` +{ + "name": {"first": "Tom", "last": "Anderson"}, + "age":37, + "children": ["Sara","Alex","Jack"], + "friends": [ + {"first": "James", "last": "Murphy"}, + {"first": "Roger", "last": "Craig"} + ] +} +"name.last" >> "Anderson" +"age" >> 37 +"children" >> ["Sara","Alex","Jack"] +"children.#" >> 3 +"children.1" >> "Alex" +"child*.2" >> "Jack" +"c?ildren.0" >> "Sara" +"friends.#.first" >> ["James","Roger"] +``` + +This function expects that the json is well\-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. If you are consuming JSON from an unpredictable source then you may want to use the Valid function first. + + +### func [GetBytes]() + +```go +func GetBytes(json []byte, path string) Result +``` + +GetBytes searches json for the specified path. If working with bytes, this method preferred over Get\(string\(data\), path\) + + +### func [GetMany]() + +```go +func GetMany(json string, path ...string) []Result +``` + +GetMany searches json for the multiple paths. The return value is a Result array where the number of items will be equal to the number of input paths. + + +### func [GetManyBytes]() + +```go +func GetManyBytes(json []byte, path ...string) []Result +``` + +GetManyBytes searches json for the multiple paths. The return value is a Result array where the number of items will be equal to the number of input paths. + + +### func [Parse]() + +```go +func Parse(json string) Result +``` + +Parse parses the json and returns a result. + +This function expects that the json is well\-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. If you are consuming JSON from an unpredictable source then you may want to use the Valid function first. + + +### func [ParseBytes]() + +```go +func ParseBytes(json []byte) Result +``` + +ParseBytes parses the json and returns a result. If working with bytes, this method preferred over Parse\(string\(data\)\) + + +### func \(Result\) [Array]() + +```go +func (t Result) Array() []Result +``` + +Array returns back an array of values. If the result represents a null value or is non\-existent, then an empty array will be returned. If the result is not a JSON array, the return value will be an array containing one result. + + +### func \(Result\) [Bool]() + +```go +func (t Result) Bool() bool +``` + +Bool returns an boolean representation. + + +### func \(Result\) [Exists]() + +```go +func (t Result) Exists() bool +``` + +Exists returns true if value exists. + +``` +if gjson.Get(json, "name.last").Exists(){ + println("value exists") + } +``` + + +### func \(Result\) [Float]() + +```go +func (t Result) Float() float64 +``` + +Float returns an float64 representation. + + +### func \(Result\) [ForEach]() + +```go +func (t Result) ForEach(iterator func(key, value Result) bool) +``` + +ForEach iterates through values. If the result represents a non\-existent value, then no values will be iterated. If the result is an Object, the iterator will pass the key and value of each item. If the result is an Array, the iterator will only pass the value of each item. If the result is not a JSON array or object, the iterator will pass back one value equal to the result. + + +### func \(Result\) [Get]() + +```go +func (t Result) Get(path string) Result +``` + +Get searches result for the specified path. The result should be a JSON array or object. + + +### func \(Result\) [Int]() + +```go +func (t Result) Int() int64 +``` + +Int returns an integer representation. + + +### func \(Result\) [IsArray]() + +```go +func (t Result) IsArray() bool +``` + +IsArray returns true if the result value is a JSON array. + + +### func \(Result\) [IsBool]() + +```go +func (t Result) IsBool() bool +``` + +IsBool returns true if the result value is a JSON boolean. + + +### func \(Result\) [IsObject]() + +```go +func (t Result) IsObject() bool +``` + +IsObject returns true if the result value is a JSON object. + + +### func \(Result\) [Less]() + +```go +func (t Result) Less(token Result, caseSensitive bool) bool +``` + +Less return true if a token is less than another token. The caseSensitive parameter is used when the tokens are Strings. The order when comparing two different type is: + +``` +Null < False < Number < String < True < JSON +``` + + +### func \(Result\) [Map]() + +```go +func (t Result) Map() map[string]Result +``` + +Map returns back a map of values. The result should be a JSON object. If the result is not a JSON object, the return value will be an empty map. + + +### func \(Result\) [Path]() + +```go +func (t Result) Path(json string) string +``` + +Path returns the original GJSON path for a Result where the Result came from a simple path that returns a single value, like: + +``` +gjson.Get(json, "friends.#(last=Murphy)") +``` + +The returned value will be in the form of a JSON string: + +``` +"friends.0" +``` + +The param 'json' must be the original JSON used when calling Get. + +Returns an empty string if the paths cannot be determined, which can happen when the Result came from a path that contained a multipath, modifier, or a nested query. + + +### func \(Result\) [Paths]() + +```go +func (t Result) Paths(json string) []string +``` + +Paths returns the original GJSON paths for a Result where the Result came from a simple query path that returns an array, like: + +``` +gjson.Get(json, "friends.#.first") +``` + +The returned value will be in the form of a JSON array: + +``` +["friends.0.first","friends.1.first","friends.2.first"] +``` + +The param 'json' must be the original JSON used when calling Get. + +Returns an empty string if the paths cannot be determined, which can happen when the Result came from a path that contained a multipath, modifier, or a nested query. + + +### func \(Result\) [String]() + +```go +func (t Result) String() string +``` + +String returns a string representation of the value. + + +### func \(Result\) [Time]() + +```go +func (t Result) Time() time.Time +``` + +Time returns a time.Time representation. + + +### func \(Result\) [Uint]() + +```go +func (t Result) Uint() uint64 +``` + +Uint returns an unsigned integer representation. + + +### func \(Result\) [Value]() + +```go +func (t Result) Value() interface{} +``` + +Value returns one of these types: + +``` +bool, for JSON booleans +float64, for JSON numbers +Number, for JSON numbers +string, for JSON string literals +nil, for JSON null +map[string]interface{}, for JSON objects +[]interface{}, for JSON arrays +``` + + +## type [Type]() + +Type is Result type + +```go +type Type int +``` + + + +```go +const ( + // Null is a null json value + Null Type = iota + // False is a json false boolean + False + // Number is json number + Number + // String is a json string + String + // True is a json true boolean + True + // JSON is a raw block of JSON + JSON +) +``` + + +### func \(Type\) [String]() + +```go +func (t Type) String() string +``` + +String returns a string representation of the type. + +# match + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/thirdparty/match" +``` + +Package match provides a simple pattern matcher with unicode support. + +## Index + +- [func Allowable\(pattern string\) \(min, max string\)](<#Allowable>) +- [func IsPattern\(str string\) bool](<#IsPattern>) +- [func Match\(str, pattern string\) bool](<#Match>) +- [func MatchLimit\(str, pattern string, maxcomp int\) \(matched, stopped bool\)](<#MatchLimit>) + + + +## func [Allowable]() + +```go +func Allowable(pattern string) (min, max string) +``` + +Allowable parses the pattern and determines the minimum and maximum allowable values that the pattern can represent. When the max cannot be determined, 'true' will be returned for infinite. + + +## func [IsPattern]() + +```go +func IsPattern(str string) bool +``` + +IsPattern returns true if the string is a pattern. + + +## func [Match]() + +```go +func Match(str, pattern string) bool +``` + +Match returns true if str matches pattern. This is a very simple wildcard match where '\*' matches on any number characters and '?' matches on any one character. + +pattern: + +``` +{ term } +``` + +term: + +``` +'*' matches any sequence of non-Separator characters +'?' matches any single non-Separator character +c matches character c (c != '*', '?', '\\') +'\\' c matches character c +``` + + +## func [MatchLimit]() + +```go +func MatchLimit(str, pattern string, maxcomp int) (matched, stopped bool) +``` + +MatchLimit is the same as Match but will limit the complexity of the match operation. This is to avoid long running matches, specifically to avoid ReDos attacks from arbritary inputs. + +How it works: The underlying match routine is recursive and may call itself when it encounters a sandwiched wildcard pattern, such as: \`user:\*:name\`. Everytime it calls itself a counter is incremented. The operation is stopped when counter \> maxcomp\*len\(str\). + +# pretty + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/thirdparty/pretty" +``` + +## Index + +- [Variables](<#variables>) +- [func Color\(src \[\]byte, style \*Style\) \[\]byte](<#Color>) +- [func Pretty\(json \[\]byte\) \[\]byte](<#Pretty>) +- [func PrettyOptions\(json \[\]byte, opts \*Options\) \[\]byte](<#PrettyOptions>) +- [func Spec\(src \[\]byte\) \[\]byte](<#Spec>) +- [func SpecInPlace\(src \[\]byte\) \[\]byte](<#SpecInPlace>) +- [func Ugly\(json \[\]byte\) \[\]byte](<#Ugly>) +- [func UglyInPlace\(json \[\]byte\) \[\]byte](<#UglyInPlace>) +- [type Options](<#Options>) +- [type Style](<#Style>) + + +## Variables + +DefaultOptions is the default options for pretty formats. + +```go +var DefaultOptions = &Options{Width: 80, Prefix: "", Indent: " ", SortKeys: false} +``` + + +## func [Color]() + +```go +func Color(src []byte, style *Style) []byte +``` + +Color will colorize the json. The style parma is used for customizing the colors. Passing nil to the style param will use the default TerminalStyle. + + +## func [Pretty]() + +```go +func Pretty(json []byte) []byte +``` + +Pretty converts the input json into a more human readable format where each element is on it's own line with clear indentation. + + +## func [PrettyOptions]() + +```go +func PrettyOptions(json []byte, opts *Options) []byte +``` + +PrettyOptions is like Pretty but with customized options. + + +## func [Spec]() + +```go +func Spec(src []byte) []byte +``` + +Spec strips out comments and trailing commas and convert the input to a valid JSON per the official spec: https://tools.ietf.org/html/rfc8259 + +The resulting JSON will always be the same length as the input and it will include all of the same line breaks at matching offsets. This is to ensure the result can be later processed by a external parser and that that parser will report messages or errors with the correct offsets. + + +## func [SpecInPlace]() + +```go +func SpecInPlace(src []byte) []byte +``` + +SpecInPlace is the same as Spec, but this method reuses the input json buffer to avoid allocations. Do not use the original bytes slice upon return. + + +## func [Ugly]() + +```go +func Ugly(json []byte) []byte +``` + +Ugly removes insignificant space characters from the input json byte slice and returns the compacted result. + + +## func [UglyInPlace]() + +```go +func UglyInPlace(json []byte) []byte +``` + +UglyInPlace removes insignificant space characters from the input json byte slice and returns the compacted result. This method reuses the input json buffer to avoid allocations. Do not use the original bytes slice upon return. + + +## type [Options]() + +Options is Pretty options + +```go +type Options struct { + // Width is an max column width for single line arrays + // Default is 80 + Width int + // Prefix is a prefix for all lines + // Default is an empty string + Prefix string + // Indent is the nested indentation + // Default is two spaces + Indent string + // SortKeys will sort the keys alphabetically + // Default is false + SortKeys bool +} +``` + + +## type [Style]() + +Style is the color style + +```go +type Style struct { + Key, String, Number [2]string + True, False, Null [2]string + Escape [2]string + Brackets [2]string + Append func(dst []byte, c byte) []byte +} +``` + +TerminalStyle is for terminals + +```go +var TerminalStyle *Style +``` + +# sjson + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/thirdparty/sjson" +``` + +Package sjson provides setting json values. + +## Index + +- [func Delete\(json, path string\) \(string, error\)](<#Delete>) +- [func DeleteBytes\(json \[\]byte, path string\) \(\[\]byte, error\)](<#DeleteBytes>) +- [func Set\(json, path string, value interface\{\}\) \(string, error\)](<#Set>) +- [func SetBytes\(json \[\]byte, path string, value interface\{\}\) \(\[\]byte, error\)](<#SetBytes>) +- [func SetBytesOptions\(json \[\]byte, path string, value interface\{\}, opts \*Options\) \(\[\]byte, error\)](<#SetBytesOptions>) +- [func SetOptions\(json, path string, value interface\{\}, opts \*Options\) \(string, error\)](<#SetOptions>) +- [func SetRaw\(json, path, value string\) \(string, error\)](<#SetRaw>) +- [func SetRawBytes\(json \[\]byte, path string, value \[\]byte\) \(\[\]byte, error\)](<#SetRawBytes>) +- [func SetRawBytesOptions\(json \[\]byte, path string, value \[\]byte, opts \*Options\) \(\[\]byte, error\)](<#SetRawBytesOptions>) +- [func SetRawOptions\(json, path, value string, opts \*Options\) \(string, error\)](<#SetRawOptions>) +- [type Options](<#Options>) + + + +## func [Delete]() + +```go +func Delete(json, path string) (string, error) +``` + +Delete deletes a value from json for the specified path. + + +## func [DeleteBytes]() + +```go +func DeleteBytes(json []byte, path string) ([]byte, error) +``` + +DeleteBytes deletes a value from json for the specified path. + + +## func [Set]() + +```go +func Set(json, path string, value interface{}) (string, error) +``` + +Set sets a json value for the specified path. A path is in dot syntax, such as "name.last" or "age". This function expects that the json is well\-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. An error is returned if the path is not valid. + +A path is a series of keys separated by a dot. + +``` +{ + "name": {"first": "Tom", "last": "Anderson"}, + "age":37, + "children": ["Sara","Alex","Jack"], + "friends": [ + {"first": "James", "last": "Murphy"}, + {"first": "Roger", "last": "Craig"} + ] +} +"name.last" >> "Anderson" +"age" >> 37 +"children.1" >> "Alex" +``` + + +## func [SetBytes]() + +```go +func SetBytes(json []byte, path string, value interface{}) ([]byte, error) +``` + +SetBytes sets a json value for the specified path. If working with bytes, this method preferred over Set\(string\(data\), path, value\) + + +## func [SetBytesOptions]() + +```go +func SetBytesOptions(json []byte, path string, value interface{}, opts *Options) ([]byte, error) +``` + +SetBytesOptions sets a json value for the specified path with options. If working with bytes, this method preferred over SetOptions\(string\(data\), path, value\) + + +## func [SetOptions]() + +```go +func SetOptions(json, path string, value interface{}, opts *Options) (string, error) +``` + +SetOptions sets a json value for the specified path with options. A path is in dot syntax, such as "name.last" or "age". This function expects that the json is well\-formed, and does not validate. Invalid json will not panic, but it may return back unexpected results. An error is returned if the path is not valid. + + +## func [SetRaw]() + +```go +func SetRaw(json, path, value string) (string, error) +``` + +SetRaw sets a raw json value for the specified path. This function works the same as Set except that the value is set as a raw block of json. This allows for setting premarshalled json objects. + + +## func [SetRawBytes]() + +```go +func SetRawBytes(json []byte, path string, value []byte) ([]byte, error) +``` + +SetRawBytes sets a raw json value for the specified path. If working with bytes, this method preferred over SetRaw\(string\(data\), path, value\) + + +## func [SetRawBytesOptions]() + +```go +func SetRawBytesOptions(json []byte, path string, value []byte, opts *Options) ([]byte, error) +``` + +SetRawBytesOptions sets a raw json value for the specified path with options. If working with bytes, this method preferred over SetRawOptions\(string\(data\), path, value, opts\) + + +## func [SetRawOptions]() + +```go +func SetRawOptions(json, path, value string, opts *Options) (string, error) +``` + +SetRawOptions sets a raw json value for the specified path with options. This furnction works the same as SetOptions except that the value is set as a raw block of json. This allows for setting premarshalled json objects. + + +## type [Options]() + +Options represents additional options for the Set and Delete functions. + +```go +type Options struct { + // Optimistic is a hint that the value likely exists which + // allows for the sjson to perform a fast-track search and replace. + Optimistic bool + // ReplaceInPlace is a hint to replace the input json rather than + // allocate a new json byte slice. When this field is specified + // the input json will not longer be valid and it should not be used + // In the case when the destination slice doesn't have enough free + // bytes to replace the data in place, a new bytes slice will be + // created under the hood. + // The Optimistic flag must be set to true and the input must be a + // byte slice in order to use this field. + ReplaceInPlace bool +} +``` + +# sentinel + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/encoding/json/sentinel" +``` + +## Index + +- [func IsNull\[T any\]\(v T\) bool](<#IsNull>) +- [func IsValueNull\(v reflect.Value\) bool](<#IsValueNull>) +- [func NewNullSentinel\[T any\]\(mk func\(\) T\) T](<#NewNullSentinel>) + + + +## func [IsNull]() + +```go +func IsNull[T any](v T) bool +``` + + + + +## func [IsValueNull]() + +```go +func IsValueNull(v reflect.Value) bool +``` + +for internal use only + + +## func [NewNullSentinel]() + +```go +func NewNullSentinel[T any](mk func() T) T +``` + + + +# shims + +```go +import "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/encoding/json/shims" +``` + +This package provides shims over Go 1.2\{2,3\} APIs which are missing from Go 1.22, and used by the Go 1.24 encoding/json package. + +Inside the vendored package, all shim code has comments that begin look like // SHIM\(...\): ... + +## Index + +- [Constants](<#constants>) +- [func TypeFor\[T any\]\(\) reflect.Type](<#TypeFor>) +- [type AppendableStdEncoding](<#AppendableStdEncoding>) + - [func \(enc AppendableStdEncoding\) AppendEncode\(dst, src \[\]byte\) \[\]byte](<#AppendableStdEncoding.AppendEncode>) +- [type OverflowableType](<#OverflowableType>) + - [func \(t OverflowableType\) OverflowInt\(x int64\) bool](<#OverflowableType.OverflowInt>) + - [func \(t OverflowableType\) OverflowUint\(x uint64\) bool](<#OverflowableType.OverflowUint>) + + +## Constants + + + +```go +const EscapeHTMLByDefault = true +``` + + +## func [TypeFor]() + +```go +func TypeFor[T any]() reflect.Type +``` + +TypeFor returns the \[Type\] that represents the type argument T. + + +## type [AppendableStdEncoding]() + + + +```go +type AppendableStdEncoding struct{ *base64.Encoding } +``` + + +### func \(AppendableStdEncoding\) [AppendEncode]() + +```go +func (enc AppendableStdEncoding) AppendEncode(dst, src []byte) []byte +``` + +AppendEncode appends the base64 encoded src to dst and returns the extended buffer. + + +## type [OverflowableType]() + + + +```go +type OverflowableType struct{ reflect.Type } +``` + + +### func \(OverflowableType\) [OverflowInt]() + +```go +func (t OverflowableType) OverflowInt(x int64) bool +``` + + + + +### func \(OverflowableType\) [OverflowUint]() + +```go +func (t OverflowableType) OverflowUint(x uint64) bool +``` + + + +Generated by [gomarkdoc]() diff --git a/internal/docs/cmd/generate/main.go b/internal/docs/cmd/generate/main.go new file mode 100644 index 0000000..07a2eb5 --- /dev/null +++ b/internal/docs/cmd/generate/main.go @@ -0,0 +1,17 @@ +// Command generate rewrites docs/api/reference.md from the current source +// tree. It is the `make docs` entrypoint. +package main + +import ( + "fmt" + "os" + + "github.com/QoderAI/qoder-cloud-agents-sdk-go/internal/docs" +) + +func main() { + if err := docs.Generate("."); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } +} diff --git a/internal/docs/generate.go b/internal/docs/generate.go new file mode 100644 index 0000000..71227ee --- /dev/null +++ b/internal/docs/generate.go @@ -0,0 +1,116 @@ +// Package docs implements the deterministic API reference generator and +// checker for this SDK. It wraps a pinned gomarkdoc release invoked via +// os/exec (not required into go.mod) and post-processes the output to strip +// line-anchor churn from source links so the committed docs/api/reference.md +// is a stable byte-for-byte artifact of the current commit. +package docs + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "path/filepath" + "regexp" +) + +// gomarkdocVersion is the pinned exact version of the gomarkdoc CLI used by +// this generator. Bump this to intentionally accept doc drift. Never let it +// float. +const gomarkdocVersion = "v1.1.0" + +// publicPackages is the set of packages documented by `make docs`. Kept in +// sync with the parent Spec §2 scope: exported forward / managed / convention +// surface only — internal/ (including this tool) and examples/ are excluded. +var publicPackages = []string{ + "./forward", + "./managed", + "./convention/...", +} + +// repoURL is the canonical repository URL used to compute source links. +// Hard-coded (not read from git remotes) so `make docs` yields identical +// output regardless of clone URL / remote name. +const repoURL = "https://github.com/QoderAI/qoder-cloud-agents-sdk-go" + +// outputRelPath is the single-file location of the committed API reference. +// A single file (rather than one per package) keeps the docs/api tree flat +// and simplifies both drift diffing and internal-link checks. +const outputRelPath = "docs/api/reference.md" + +// sourceLinkAnchorRe matches `#Lxx` / `#Lxx-Lyy` fragments on QoderAI blob +// URLs. gomarkdoc emits per-line anchors natively; they are churn-sensitive +// (any unrelated line shift falsely reddens the drift gate) and add no value +// for a reader who is landing on `main` at the current commit anyway. +var sourceLinkAnchorRe = regexp.MustCompile( + `(https://github\.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/[^)\s>#]+)(#L\d+(?:-L\d+)?)`, +) + +// normalizeSourceLinks strips `#Lxx(-Lyy)?` line anchors from QoderAI blob +// URLs pointing at `main`. Non-QoderAI links and QoderAI links on non-`main` +// refs pass through untouched — the latter is intentional so the check stage +// can surface them as unnormalized (i.e. gomarkdoc misconfiguration or a +// SHA-based ref sneaking in). +func normalizeSourceLinks(md string) string { + return sourceLinkAnchorRe.ReplaceAllString(md, "$1") +} + +// stripNonDeterministic is a hook for future non-determinism strippers +// (timestamps, absolute paths, per-user identifiers). The empirical spike on +// gomarkdoc v1.1.0 observed none, so this is currently a pass-through — it +// exists so `Generate` has a single obvious place to add strippers when a +// gomarkdoc bump introduces one. +func stripNonDeterministic(md string) string { + return md +} + +// Generate regenerates docs/api/reference.md from the current source tree. +// repoRoot must be the repo root (module directory). The output directory is +// wiped before write so deleted/renamed exported symbols show up as diff +// noise (no orphan pages) — this is the drift-gate contract. +func Generate(repoRoot string) error { + apiDir := filepath.Join(repoRoot, "docs", "api") + if err := os.RemoveAll(apiDir); err != nil { + return fmt.Errorf("wipe %s: %w", apiDir, err) + } + if err := os.MkdirAll(apiDir, 0o755); err != nil { + return fmt.Errorf("mkdir %s: %w", apiDir, err) + } + + raw, err := runGomarkdoc(repoRoot) + if err != nil { + return err + } + + processed := stripNonDeterministic(normalizeSourceLinks(raw)) + out := filepath.Join(repoRoot, outputRelPath) + if err := os.WriteFile(out, []byte(processed), 0o644); err != nil { + return fmt.Errorf("write %s: %w", out, err) + } + return nil +} + +// runGomarkdoc shells out to a pinned gomarkdoc via `go run` and returns the +// raw markdown. `--repository.*` flags force `main`-branch file-level source +// links (see spike observations) — without them gomarkdoc emits no source +// links at all. +func runGomarkdoc(repoRoot string) (string, error) { + args := []string{ + "run", + "github.com/princjef/gomarkdoc/cmd/gomarkdoc@" + gomarkdocVersion, + "--repository.url", repoURL, + "--repository.default-branch", "main", + "--repository.path", "/", + } + args = append(args, publicPackages...) + + cmd := exec.Command("go", args...) + cmd.Dir = repoRoot + var stdout, stderr bytes.Buffer + cmd.Stdout = &stdout + cmd.Stderr = &stderr + if err := cmd.Run(); err != nil { + return "", fmt.Errorf("gomarkdoc %s failed: %w\nstderr: %s", gomarkdocVersion, err, stderr.String()) + } + return stdout.String(), nil +} diff --git a/internal/docs/generate_test.go b/internal/docs/generate_test.go new file mode 100644 index 0000000..b952fb3 --- /dev/null +++ b/internal/docs/generate_test.go @@ -0,0 +1,58 @@ +package docs + +import ( + "strings" + "testing" +) + +func TestNormalizeSourceLinks_StripsLineAnchors(t *testing.T) { + cases := []struct { + in string + want string + }{ + { + in: "See [type Client](https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/client.go#L14) for details.", + want: "See [type Client](https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/client.go) for details.", + }, + { + in: "Range link https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/batch.go#L100-L164 here", + want: "Range link https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/batch.go here", + }, + { + in: "No anchor: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/managed/client.go stays.", + want: "No anchor: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/managed/client.go stays.", + }, + { + in: "External link https://github.com/other/repo/blob/abc123/file.go#L10 untouched.", + want: "External link https://github.com/other/repo/blob/abc123/file.go#L10 untouched.", + }, + } + for _, c := range cases { + got := normalizeSourceLinks(c.in) + if got != c.want { + t.Errorf("normalizeSourceLinks:\n in: %q\n want: %q\n got: %q", c.in, c.want, got) + } + } +} + +func TestNormalizeSourceLinks_FailsOnSHAInRepoLink(t *testing.T) { + // If gomarkdoc ever emits a SHA-based ref for this repo, callers should + // detect it via the post-check; normalizeSourceLinks itself only strips + // line anchors — assert the URL passes through untouched so the check + // stage can surface it as unnormalized. + in := "https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/abcdef1234567890/forward/client.go" + if got := normalizeSourceLinks(in); got != in { + t.Errorf("SHA-ref link should be untouched by normalizer: got %q", got) + } +} + +func TestStripNonDeterministic_NoOpOnCleanInput(t *testing.T) { + // Determinism was empirically confirmed in the spike; this test guards + // against future post-processing accidentally mutating clean gomarkdoc + // output. + in := "\n\n# forward\n\nGenerated by [gomarkdoc]()\n" + got := stripNonDeterministic(in) + if !strings.Contains(got, "# forward") { + t.Errorf("stripNonDeterministic dropped legitimate content: %q", got) + } +} From 7d71ae45c229573fd8b8bbbf6863d0a4d99deb19 Mon Sep 17 00:00:00 2001 From: moonyue-w <300878504+moonyue-w@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:42:50 +0800 Subject: [PATCH 2/5] feat(docs): docs-check drift + normalization + core-surface + link gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regenerates docs/api/reference.md, then runs a four-stage gate: 1. `git diff --exit-code -- docs/api` for drift 2. every QoderAI blob URL must be on 'main' ref without #Lxx anchors 3. core public surface (forward.Client / managed.Client / apierror.Error plus both NewClient constructors) must appear in the output 4. relative markdown links must resolve (fenced code blocks are excluded so Go generics don't false-positive) Drift RED verified by appending a temporary GoDoc comment to forward/client.go — check surfaced the diff and exited non-zero. Task: 1789870148 --- internal/docs/check.go | 165 ++++++++++++++++++++++++++++++++ internal/docs/check_test.go | 48 ++++++++++ internal/docs/cmd/check/main.go | 19 ++++ 3 files changed, 232 insertions(+) create mode 100644 internal/docs/check.go create mode 100644 internal/docs/check_test.go create mode 100644 internal/docs/cmd/check/main.go diff --git a/internal/docs/check.go b/internal/docs/check.go new file mode 100644 index 0000000..36deeb1 --- /dev/null +++ b/internal/docs/check.go @@ -0,0 +1,165 @@ +package docs + +import ( + "bytes" + "fmt" + "os" + "os/exec" + "path/filepath" + "regexp" + "strings" +) + +// coreSurfaceMarkers pairs a substring with the minimum number of times it +// must appear in the rendered reference. `## type [Client]` appearing twice +// enforces that BOTH forward.Client and managed.Client survived generation +// (a single-count check would pass when the forward section is dropped). +var coreSurfaceMarkers = []struct { + needle string + min int +}{ + {"# forward", 1}, + {"# managed", 1}, + {"# apierror", 1}, + {"## type [Client]", 2}, // forward.Client AND managed.Client + {"### func [NewClient]", 2}, // both constructors + {"## type [Error]", 1}, // apierror.Error +} + +// relativeLinkRe matches `[text](target)` markdown links whose target is a +// relative path (no scheme, no leading `#`, no leading `/`). +var relativeLinkRe = regexp.MustCompile(`\[[^\]]*\]\(([^)#][^)]*?)\)`) + +// findUnnormalizedLinks returns each QoderAI blob URL that violates the +// normalization contract (SHA ref, or #Lxx anchor on `main`). External links +// and clean `blob/main/...` URLs are ignored. +func findUnnormalizedLinks(md string) []string { + var findings []string + rawURLRe := regexp.MustCompile(`https://github\.com/QoderAI/qoder-cloud-agents-sdk-go/blob/([^/]+)/([^)\s>]+)`) + for _, m := range rawURLRe.FindAllStringSubmatch(md, -1) { + ref, path := m[1], m[2] + if ref != "main" { + findings = append(findings, m[0]) + continue + } + if strings.Contains(path, "#L") { + findings = append(findings, m[0]) + } + } + return findings +} + +// coreSurfacePresent asserts that every coreSurfaceMarker appears at least +// its `min` times in md. Errors name the missing markers to make CI failures +// self-diagnosing. +func coreSurfacePresent(md string) error { + var missing []string + for _, m := range coreSurfaceMarkers { + if strings.Count(md, m.needle) < m.min { + missing = append(missing, fmt.Sprintf("%q (need %d)", m.needle, m.min)) + } + } + if len(missing) > 0 { + return fmt.Errorf("core public surface missing from generated docs: %v", missing) + } + if strings.TrimSpace(md) == "" { + return fmt.Errorf("generated docs are empty") + } + return nil +} + +// codeFenceRe matches fenced code blocks (```lang\n...\n```). Content inside +// is stripped before the relative-link scan — Go generics `[T C](args)` and +// similar syntax inside code samples parse as markdown link syntax and +// generate noise. +var codeFenceRe = regexp.MustCompile("(?s)```[^\n]*\n.*?\n```") + +// findBrokenInternalLinks returns each relative `[text](target)` link whose +// target does not resolve to an existing file under baseDir. External URLs +// (http/https/mailto) and in-page anchors (`#...`) are ignored. gomarkdoc +// wraps targets in `<...>` — that syntactic wrapper is stripped before +// analysis. Fenced code blocks are excluded from the scan so Go generics +// (`[T Constraint](args)` in code samples) don't false-positive as links. +func findBrokenInternalLinks(baseDir, md string) []string { + stripped := codeFenceRe.ReplaceAllString(md, "") + var broken []string + for _, m := range relativeLinkRe.FindAllStringSubmatch(stripped, -1) { + target := m[1] + // gomarkdoc emits `[Text]()`; drop the wrapper if present. + if strings.HasPrefix(target, "<") && strings.HasSuffix(target, ">") { + target = target[1 : len(target)-1] + } + if strings.HasPrefix(target, "#") { + continue // in-page anchor + } + if strings.Contains(target, "://") || strings.HasPrefix(target, "mailto:") { + continue + } + // Strip fragment / query. + if i := strings.IndexAny(target, "#?"); i != -1 { + target = target[:i] + } + if target == "" { + continue + } + full := filepath.Join(baseDir, target) + if _, err := os.Stat(full); err != nil { + broken = append(broken, target) + } + } + return broken +} + +// Check regenerates docs/api/reference.md, verifies zero drift against the +// working tree, and runs the normalization / core-surface / internal-link +// gates in sequence. Any failure is returned as an error — the CLI wrapper +// translates it to a non-zero exit. +func Check(repoRoot string) error { + if err := Generate(repoRoot); err != nil { + return fmt.Errorf("regenerate for drift check: %w", err) + } + + out, err := exec.Command("git", "-C", repoRoot, "diff", "--exit-code", "--", "docs/api").CombinedOutput() + if err != nil { + return fmt.Errorf("docs/api drift detected — run `make docs` and commit the result:\n%s", out) + } + + refPath := filepath.Join(repoRoot, outputRelPath) + body, err := os.ReadFile(refPath) + if err != nil { + return fmt.Errorf("read %s: %w", refPath, err) + } + md := string(body) + + if bad := findUnnormalizedLinks(md); len(bad) > 0 { + return fmt.Errorf("unnormalized source links detected (need `blob/main/` without #Lxx or SHA):\n %s", joinFirst(bad, 5)) + } + if err := coreSurfacePresent(md); err != nil { + return err + } + // Relative links resolve from the doc's own directory. + if broken := findBrokenInternalLinks(filepath.Dir(refPath), md); len(broken) > 0 { + return fmt.Errorf("broken internal links in %s:\n %s", outputRelPath, joinFirst(broken, 5)) + } + return nil +} + +// joinFirst formats up to n entries of ss, separated by newlines and 2-space +// indent, appending an ellipsis if truncated. +func joinFirst(ss []string, n int) string { + var buf bytes.Buffer + limit := len(ss) + if limit > n { + limit = n + } + for i := 0; i < limit; i++ { + if i > 0 { + buf.WriteString("\n ") + } + buf.WriteString(ss[i]) + } + if len(ss) > n { + fmt.Fprintf(&buf, "\n ... (%d more)", len(ss)-n) + } + return buf.String() +} diff --git a/internal/docs/check_test.go b/internal/docs/check_test.go new file mode 100644 index 0000000..dd120a3 --- /dev/null +++ b/internal/docs/check_test.go @@ -0,0 +1,48 @@ +package docs + +import "testing" + +func TestFindUnnormalizedLinks_FlagsQoderAIAnchors(t *testing.T) { + md := `Fine: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/client.go +Bad line anchor: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/client.go#L14 +Bad range: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/managed/client.go#L10-L20 +Bad SHA ref: https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/abcd1234/forward/client.go +External untouched: https://github.com/other/repo/blob/main/x.go#L1 +` + got := findUnnormalizedLinks(md) + if len(got) != 3 { + t.Fatalf("want 3 unnormalized findings, got %d: %v", len(got), got) + } +} + +func TestFindUnnormalizedLinks_ZeroOnCleanInput(t *testing.T) { + md := `Clean file-level link https://github.com/QoderAI/qoder-cloud-agents-sdk-go/blob/main/forward/client.go here.` + if got := findUnnormalizedLinks(md); len(got) != 0 { + t.Fatalf("want zero findings, got %v", got) + } +} + +func TestCoreSurfacePresent_OKWhenAllPresent(t *testing.T) { + md := "# forward\n\n## type [Client]\n### func [NewClient]\n\n# managed\n\n## type [Client]\n### func [NewClient]\n\n# apierror\n\n## type [Error]" + if err := coreSurfacePresent(md); err != nil { + t.Fatalf("unexpected error: %v", err) + } +} + +func TestCoreSurfacePresent_FailsWhenClientMissing(t *testing.T) { + // forward/client.go section deleted (simulates generator misconfiguration + // that drops the core public surface). + md := "# forward\n\n## type [Batch]\n\n# managed\n\n## type [Client]\n### func [NewClient]\n\n# apierror\n\n## type [Error]" + if err := coreSurfacePresent(md); err == nil { + t.Fatal("expected error when forward Client is missing, got nil") + } +} + +func TestFindBrokenInternalLinks_FlagsMissingFile(t *testing.T) { + // A relative link to a sibling doc that does not exist must be flagged. + base := t.TempDir() + broken := findBrokenInternalLinks(base, "See [nope](./missing.md).") + if len(broken) != 1 { + t.Fatalf("want 1 broken link, got %v", broken) + } +} diff --git a/internal/docs/cmd/check/main.go b/internal/docs/cmd/check/main.go new file mode 100644 index 0000000..da2def1 --- /dev/null +++ b/internal/docs/cmd/check/main.go @@ -0,0 +1,19 @@ +// Command check verifies docs/api/reference.md matches the current source +// tree (drift gate), that every source link is normalized, that the core +// public surface appears in the output, and that internal relative links +// resolve. It is the `make docs-check` entrypoint. +package main + +import ( + "fmt" + "os" + + "github.com/QoderAI/qoder-cloud-agents-sdk-go/internal/docs" +) + +func main() { + if err := docs.Check("."); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } +} From 202dd0f06f5f881652e2eb1e89fffeb9148b48f2 Mon Sep 17 00:00:00 2001 From: moonyue-w <300878504+moonyue-w@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:44:06 +0800 Subject: [PATCH 3/5] docs(readme): document make lint / docs / docs-check entrypoints Extends README ## Development with make lint + a new API reference subsection pointing at docs/api/reference.md and the gomarkdoc-backed regeneration flow. Also gofmt-aligns comments in internal/docs/check.go so make lint passes cleanly. Task: 1789870148 --- README.md | 12 ++++++++++++ internal/docs/check.go | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5db8b7..5479ebb 100644 --- a/README.md +++ b/README.md @@ -740,11 +740,23 @@ The programs print their steps, messages, assistant replies and cleanup results; ```sh make test make build +make lint go test -race ./... ``` The offline tests cover request serialization, API contracts, response decoding, errors, retries, pagination, SSE and cleanup behaviour. Files ending in `_live_test.go` need the `live` build tag and a test configuration; the runnable examples do not. +### API reference + +The committed API reference lives at [`docs/api/reference.md`](docs/api/reference.md) and is regenerated from the current source with a pinned `gomarkdoc` release: + +```sh +make docs # regenerate docs/api/reference.md +make docs-check # regenerate + drift/normalization/core-surface/link gate (used in CI) +``` + +The gate is what CI enforces; run `make docs` and commit the result whenever you change GoDoc on an exported symbol. Under the hood `make docs` runs `go run github.com/princjef/gomarkdoc/cmd/gomarkdoc@v1.1.0 --repository.url … --repository.default-branch main --repository.path / ./forward ./managed ./convention/...` — the version is pinned in `internal/docs/generate.go`. + ## Versioning The module is pre-1.0. Per semantic versioning, the compatibility guarantee does not apply below `v1.0.0`, so a minor release may change the API; pin a version in `go.mod` and read the release notes before upgrading. diff --git a/internal/docs/check.go b/internal/docs/check.go index 36deeb1..68252f2 100644 --- a/internal/docs/check.go +++ b/internal/docs/check.go @@ -21,9 +21,9 @@ var coreSurfaceMarkers = []struct { {"# forward", 1}, {"# managed", 1}, {"# apierror", 1}, - {"## type [Client]", 2}, // forward.Client AND managed.Client + {"## type [Client]", 2}, // forward.Client AND managed.Client {"### func [NewClient]", 2}, // both constructors - {"## type [Error]", 1}, // apierror.Error + {"## type [Error]", 1}, // apierror.Error } // relativeLinkRe matches `[text](target)` markdown links whose target is a From 273b28496a6568dc9d5c16cd6dc7189247a851f6 Mon Sep 17 00:00:00 2001 From: moonyue-w <300878504+moonyue-w@users.noreply.github.com> Date: Sun, 20 Sep 2026 10:45:27 +0800 Subject: [PATCH 4/5] ci: add PR workflow with lint/build/test matrix and docs-check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .github/workflows/ci.yml runs on pull_request and push(main) with contents:read scope. Matrix job iterates Go 1.23.x (module minimum) and 1.26.x, invoking make lint (gofmt + go vet) → make build → make test (offline). docs-check runs on a single pinned Go version (1.26.x) — go/doc rendering varies across Go versions so drift must be judged against exactly one toolchain. Verified locally: all four commands green. Task: 1789870148 --- .github/workflows/ci.yml | 54 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1c4db55 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +# PR CI baseline for qoder-cloud-agents-sdk-go. +# +# Matrix job (`check`) runs make lint → make build → make test across the +# module's minimum Go version and a recent stable release. The docs-check job +# runs on a single pinned Go version (matches the toolchain used to author +# docs/api/reference.md) — go/doc rendering varies across Go versions, so +# doc drift must be judged against exactly one. +# +# All jobs are offline: `make test` = test-unit (with the offline live +# subset) + test-contract, no live tags, no PAT, no external Aliyun deps. +name: ci + +on: + pull_request: + push: + branches: [main] + +permissions: + contents: read + +jobs: + check: + name: check (${{ matrix.go-version }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go-version: ["1.23.x", "1.26.x"] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + cache: true + - name: make lint + run: make lint + - name: make build + run: make build + - name: make test + run: make test + + docs-check: + name: docs-check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + # Pinned to a single toolchain version — matches the version used + # to regenerate docs/api/reference.md locally. Bump both together. + go-version: "1.26.x" + cache: true + - name: make docs-check + run: make docs-check From caeb0715a94d3322547f3c023d4ee1b18b7d8139 Mon Sep 17 00:00:00 2001 From: moonyue-w <300878504+moonyue-w@users.noreply.github.com> Date: Sun, 20 Sep 2026 19:58:58 +0800 Subject: [PATCH 5/5] test(conformance): add offline Anthropic shared-behavior baseline Task: 1789897112 --- convention/anthropic_conformance_test.go | 295 +++++++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 convention/anthropic_conformance_test.go diff --git a/convention/anthropic_conformance_test.go b/convention/anthropic_conformance_test.go new file mode 100644 index 0000000..718f460 --- /dev/null +++ b/convention/anthropic_conformance_test.go @@ -0,0 +1,295 @@ +package convention_test + +import ( + "bytes" + "context" + "encoding/json" + "io" + "mime" + "mime/multipart" + "net/http" + "net/url" + "strings" + "testing" + "time" + + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apiform" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apijson" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/apiquery" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/option" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/pagination" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/param" + "github.com/QoderAI/qoder-cloud-agents-sdk-go/convention/respjson" +) + +// Fixed upstream provenance: anthropics/anthropic-sdk-go tag v1.74.0, +// commit 3cb26e4450dc5294618ab9cc40377e5dd79ac413. + +type roundTripFunc func(*http.Request) (*http.Response, error) + +func (f roundTripFunc) RoundTrip(r *http.Request) (*http.Response, error) { return f(r) } + +func jsonResponse(status int, body string) *http.Response { + return &http.Response{ + StatusCode: status, + Header: http.Header{"Content-Type": {"application/json"}}, + Body: io.NopCloser(strings.NewReader(body)), + } +} + +type bodyParams struct { + Title param.Opt[string] `json:"title,omitzero"` + Enabled param.Opt[bool] `json:"enabled,omitzero"` + Metadata map[string]any `json:"metadata,omitzero"` + paramObj +} + +type paramObj = param.APIObject + +func (p bodyParams) MarshalJSON() ([]byte, error) { + type shadow bodyParams + return param.MarshalObject(p, (*shadow)(&p)) +} + +func TestConformanceBodyParamOmitNullValue(t *testing.T) { + omitted, err := json.Marshal(bodyParams{}) + if err != nil { + t.Fatalf("marshal omitted: %v", err) + } + if string(omitted) != "{}" { + t.Fatalf("unset optional fields must be omitted, got %s", omitted) + } + explicit, err := json.Marshal(bodyParams{ + Title: param.Null[string](), + Enabled: param.NewOpt(false), + Metadata: map[string]any{}, + }) + if err != nil { + t.Fatalf("marshal explicit: %v", err) + } + var got map[string]any + if err := json.Unmarshal(explicit, &got); err != nil { + t.Fatalf("decode explicit: %v", err) + } + if v, ok := got["title"]; !ok || v != nil { + t.Fatalf("explicit null must serialize as JSON null, got %v (present=%v)", v, ok) + } + if v, ok := got["enabled"]; !ok || v != false { + t.Fatalf("explicit false must be retained, got %v (present=%v)", v, ok) + } + if _, ok := got["metadata"]; !ok { + t.Fatalf("explicit empty map must be retained") + } +} + +type queryParamsT struct { + Limit param.Opt[int64] `query:"limit,omitzero"` + Status param.Opt[string] `query:"status,omitzero"` + IncludeArchive param.Opt[bool] `query:"include_archived,omitzero"` + CreatedAtGt param.Opt[time.Time] `query:"created_at[gt],omitzero" format:"date-time"` + Order param.Opt[string] `query:"order,omitzero"` + Tags []string `query:"tags,omitzero"` + paramObj +} + +func (q queryParamsT) URLQuery() (url.Values, error) { + return apiquery.MarshalWithSettings(q, apiquery.QuerySettings{ + ArrayFormat: apiquery.ArrayQueryFormatRepeat, + NestedFormat: apiquery.NestedQueryFormatBrackets, + }) +} + +func TestConformanceQueryEncoding(t *testing.T) { + values, err := queryParamsT{ + Limit: param.NewOpt[int64](0), + Status: param.NewOpt("active"), + IncludeArchive: param.NewOpt(false), + CreatedAtGt: param.NewOpt(time.Date(2026, 1, 2, 3, 4, 5, 0, time.UTC)), + Tags: []string{"a", "b"}, + }.URLQuery() + if err != nil { + t.Fatalf("marshal query: %v", err) + } + if values.Get("limit") != "0" { + t.Fatalf("zero scalar must encode, got %q", values.Get("limit")) + } + if values.Get("status") != "active" { + t.Fatalf("scalar string mismatch, got %q", values.Get("status")) + } + if values.Get("include_archived") != "false" { + t.Fatalf("false scalar must encode, got %q", values.Get("include_archived")) + } + if values.Get("created_at[gt]") != "2026-01-02T03:04:05Z" { + t.Fatalf("date-time format mismatch, got %q", values.Get("created_at[gt]")) + } + if tags := values["tags"]; len(tags) != 2 || tags[0] != "a" || tags[1] != "b" { + t.Fatalf("repeated array format mismatch, got %v", tags) + } + if _, ok := values["order"]; ok { + t.Fatalf("unset optional query field must be omitted") + } +} + +type formParams struct { + Name string `json:"name"` + Content io.Reader `json:"content" format:"binary"` + paramObj +} + +func (p formParams) MarshalMultipart() ([]byte, string, error) { + buf := bytes.NewBuffer(nil) + writer := multipart.NewWriter(buf) + if err := apiform.MarshalRoot(p, writer); err != nil { + return nil, "", err + } + if err := writer.Close(); err != nil { + return nil, "", err + } + return buf.Bytes(), writer.FormDataContentType(), nil +} + +func TestConformanceMultipartEncoding(t *testing.T) { + raw, contentType, err := formParams{Name: "asset", Content: strings.NewReader("hello")}.MarshalMultipart() + if err != nil { + t.Fatalf("marshal multipart: %v", err) + } + mediaType, params, err := mime.ParseMediaType(contentType) + if err != nil || mediaType != "multipart/form-data" { + t.Fatalf("unexpected content type %q (err=%v)", contentType, err) + } + reader := multipart.NewReader(bytes.NewReader(raw), params["boundary"]) + fields := map[string]string{} + for { + part, err := reader.NextPart() + if err == io.EOF { + break + } + if err != nil { + t.Fatalf("read part: %v", err) + } + data, _ := io.ReadAll(part) + fields[part.FormName()] = string(data) + } + if fields["name"] != "asset" { + t.Fatalf("scalar form field mismatch, got %q", fields["name"]) + } + if fields["content"] != "hello" { + t.Fatalf("binary form field mismatch, got %q", fields["content"]) + } +} + +func TestConformanceRequestConfigContract(t *testing.T) { + var captured *http.Request + client := &http.Client{Transport: roundTripFunc(func(r *http.Request) (*http.Response, error) { + captured = r + return jsonResponse(200, `{"id":"one"}`), nil + })} + var dst map[string]any + err := convention.ExecuteNewRequest( + context.Background(), http.MethodGet, "resource", nil, &dst, + option.WithBaseURL("https://sdk.test/api/"), + option.WithMaxRetries(0), + option.WithHTTPClient(client), + option.WithQuery("a", "1"), + option.WithHeader("X-Caller", "override"), + ) + if err != nil { + t.Fatalf("execute: %v", err) + } + if captured.Method != http.MethodGet { + t.Fatalf("method mismatch: %s", captured.Method) + } + if captured.URL.String() != "https://sdk.test/api/resource?a=1" { + t.Fatalf("baseURL/path/query join mismatch: %s", captured.URL.String()) + } + if captured.Header.Get("X-Caller") != "override" { + t.Fatalf("caller header override lost: %q", captured.Header.Get("X-Caller")) + } + if dst["id"] != "one" { + t.Fatalf("body selection mismatch: %v", dst) + } +} + +type listItem struct { + ID string `json:"id"` + JSON struct { + ID respjson.Field + ExtraFields map[string]respjson.Field + raw string + } `json:"-"` +} + +func (r *listItem) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } + +func TestConformanceResponseAndPageTerminal(t *testing.T) { + var page pagination.Page[listItem] + if err := json.Unmarshal([]byte(`{"data":[{"id":"a"}],"has_more":false,"last_id":"a"}`), &page); err != nil { + t.Fatalf("unmarshal page: %v", err) + } + if len(page.Data) != 1 || page.Data[0].ID != "a" { + t.Fatalf("shared response shape mismatch: %+v", page.Data) + } + next, err := page.GetNextPage() + if err != nil { + t.Fatalf("terminal page must not error: %v", err) + } + if next != nil { + t.Fatalf("terminal page (has_more=false) must yield no next page") + } + + var token pagination.TokenPage[listItem] + if err := json.Unmarshal([]byte(`{"data":[{"id":"a"}],"has_more":false}`), &token); err != nil { + t.Fatalf("unmarshal token page: %v", err) + } + tnext, err := token.GetNextPage() + if err != nil { + t.Fatalf("terminal token page must not error: %v", err) + } + if tnext != nil { + t.Fatalf("terminal token page must yield no next page") + } +} + +func TestConformanceAutoPagerWalksPages(t *testing.T) { + calls := 0 + client := &http.Client{Transport: roundTripFunc(func(r *http.Request) (*http.Response, error) { + calls++ + if calls == 1 { + return jsonResponse(200, `{"data":[{"id":"a"}],"has_more":true,"last_id":"a"}`), nil + } + return jsonResponse(200, `{"data":[{"id":"b"}],"has_more":false,"last_id":"b"}`), nil + })} + + var raw *http.Response + var res *pagination.Page[listItem] + opts := []option.RequestOption{ + option.WithResponseInto(&raw), + option.WithBaseURL("https://sdk.test/api/"), + option.WithMaxRetries(0), + option.WithHTTPClient(client), + } + cfg, err := convention.NewRequestConfig(context.Background(), http.MethodGet, "resource", nil, &res, opts...) + if err != nil { + t.Fatalf("new request config: %v", err) + } + if err := cfg.Execute(); err != nil { + t.Fatalf("execute first page: %v", err) + } + res.SetPageConfig(cfg, raw) + + var ids []string + pager := pagination.NewPageAutoPager(res, nil) + for pager.Next() { + ids = append(ids, pager.Current().ID) + } + if err := pager.Err(); err != nil { + t.Fatalf("auto-pager error: %v", err) + } + if len(ids) != 2 || ids[0] != "a" || ids[1] != "b" { + t.Fatalf("auto-pager must walk both pages, got %v", ids) + } + if calls != 2 { + t.Fatalf("auto-pager must issue exactly two requests, got %d", calls) + } +}