thinkplatform.sdk. Find the method returning a type in the API reference. These types describe decoded results. Check the endpoint schema for required fields when creating or updating resources.
Model conventions
Resource models are Pydantic models with attribute access. The tables describe fields declared by this client version; the server can add other fields, which these models allow. Optional response fields default toNone unless another default is shown. Empty list/dictionary defaults are fresh per instance. An absent field may therefore appear as None, [], or {} after parsing rather than indicating that the server explicitly returned that value.
The Python field name is shown first. A JSON alias is the field name used in the response JSON; use the Python name when reading attributes. For example, DatalakeListPage.continuation_token reads JSON continuationToken, and ModuleSummary.schema_ reads JSON schema. When producing JSON from a model, use Pydantic’s model_dump(by_alias=True) (v2) or dict(by_alias=True) (v1). A serialized response is not automatically a valid write payload.
Optional[T] means T or None; Any leaves the value untyped. A union such as AgentToolConfig | dict[str, Any] permits either representation, so check the value before relying on nested attribute access. Timestamps are strings unless the field explicitly declares another type; the SDK does not convert them into Python datetime objects.
Canvas pages, visualization records, dashboard results, and other methods returning Mapping[str, Any] use key access such as page.get("title"). Any results retain the endpoint’s decoded value without a named model.
Read a JSON alias
This example reads a JSON field through its Python attribute, then serializes the model using the JSON alias. It runs locally without a network request.AuthenticatedUser
Organization
Project
AgentToolConfig
Useschema_ for attribute access; its JSON alias is schema.
AgentDatabaseRef
AgentWorkspaceUploadFile
AgentWorkspaceUpload
AgentSummary
knowledge_store supports reading historical records. Nonempty new attachments are rejected by agent create/update methods. AgentDetail inherits this response shape.
AgentDetail
Inherits all fields from AgentSummary. No additional fields.AgentAvailableModels
SystemToolCatalog
Task
TaskGoal
TaskGoalResponse
TaskRuntimePrepareResponse
Team
TaskCheckpointPage
Contains checkpoint metadata and messages. It has no offset or continuation token.ScheduleConfig
TriggerConfig
CycleApp
UiApp
AgentWorkspaceEnvVar
AgentWorkspaceStorageMount
AgentWorkspace
The model includes legacysecrets and internet_access fields for reading existing records. Do not include them in create or update requests: the API rejects those write fields. See Security and authentication for runtime credentials and network policy.
MemoryItem
MemorySearchResponse
MemoryImportResponse
MemoryExportResponse
HookResolvedAuthInfo
HookApp
Some operations return secrets in credential fields. Protect these values as you would any other credential.HookDelivery
HookInvokeAccepted
WebhookSubscription
WebhookEventTypeOption
WebhookDelivery
WebhookTestSendResponse
SharedDbAccessProject
SharedDbAccessSpec
SharedDbColumnDefinition
SharedDbQueryFilter
The fields describe filter structure only. Check your deployed API for supported operators and their expected values; this model does not validate or enumerate them.SharedDbQuerySort
Sort field and direction are strings, not an SDK enumeration. Check your deployed API for supported values.SharedDbQueryMetadata
Query page metadata is optional. It is distinct from continuation tokens used for data lake and MLOps listing.SharedDbTableSummary
SharedDbTable
Inspectcolumns and schema_version before a write. Table access metadata describes server-controlled sharing.
SharedDbRow
User columns are nested underdata; id, schema_version, and audit fields are row metadata.
SharedDbRowQueryResult
DatalakeTreeItem
DatalakeListItem
DatalakeListPage
Pass a nonemptycontinuation_token to the next datalake.list() call with the same path and context.
DatalakeTextPreview
DatalakeFolderSas
Signed access metadata can contain a time-limited access URL. Use it only for the intended storage operation.DatalakeResolvedPath
MLOpsAsset
MLOpsJob
MLOpsJobsPage
The records are injobs, rather than items. Pass a nonempty continuation_token to the next jobs list call.
MLOpsJobLogs
MLOpsArtifact
MLOpsDataFile
MLOpsDataFilesPage
Pass a nonemptycontinuation_token to the next file-list call with the same asset, version, path, and context.
MLOpsFolderSas
Signed access metadata can contain a time-limited access URL. Use it only for the intended storage operation.MLOpsEnvironmentCreationContext
MLOpsEnvironment
SkillRef
SkillMetadata
Inherits all fields from SkillRef.SkillDetail
Inherits all fields from SkillMetadata.ModuleSummary
ModuleDetail
Inherits all fields from ModuleSummary.ModuleInvocationResult
The computed read-only propertynormalized_result: Any normalizes common module/MCP content wrappers. It is derived from result; it is not a stored response field.
ModuleResolvedTool
FlowSummary
FlowDetail
Inherits all fields from FlowSummary. No additional fields.DeviceShareProject
DeviceAccessTag
DeviceTag
IoTDevice
IoTModule
RawResponse
A frozen dataclass returned by raw request, download, and upload methods. All fields are required at construction.MultipartFile
A frozen dataclass representing a file to upload.filename: str and content: bytes are required; content_type: Optional[str] defaults to None. from_text(filename, content, *, content_type=None, encoding="utf-8") returns a file with encoded byte content. When no content type is given, multipart requests infer one from the filename or use application/octet-stream.
AccessTokenInfo
A frozen dataclass containing a credential result. All fields are required at construction.CodeFlowDefinition
A frozen dataclass containing metadata for a decorated entrypoint: requiredinput_schema: Optional[dict[str, Any]] and output_schema: Optional[dict[str, Any]], plus name: Optional[str] = None. The decorator supplies omitted schemas as None. CodeFlow entrypoints describes CodeFlowContext, CodeFlowTools, and metadata helpers.