項目
取得審查項目
client.Beta.Compliance.Review.Items.Get(ctx, itemID, query) (*BetaComplianceReviewItem, error)讀取 Anthropic 標記給您的組織審查的單一訊息,包含其請求與回應。
Models
type BetaComplianceReviewActorUnion interface{…}Who sent a message.
Who sent a message.
type BetaComplianceReviewUserActor struct { Type: "user_actor"; EmailAddress; UserID }A signed-in user.
A signed-in user.
The user's email address. Set only for a current member of an organization that the API key can read.
The ID of the user (user_...).
type BetaComplianceReviewAPIActor struct { Type: "api_actor"; APIKeyID }An API key.
An API key.
The ID of the API key (apikey_...).
type BetaComplianceReviewServiceAccountActor struct { Type: "service_account_actor"; ServiceAccountID }A service account.
A service account.
The ID of the service account (svac_...).
type BetaComplianceReviewAPIActor struct { Type: "api_actor"; APIKeyID }An API key.
An API key.
The ID of the API key (apikey_...).
type BetaComplianceReviewContentNotCaptured struct { Type: "not_captured" }No copy of the message was stored.
No copy of the message was stored.
type BetaComplianceReviewContentUnavailableReasonUnion interface{…}Why a message's content isn't returned.
Why a message's content isn't returned.
type BetaComplianceReviewContentNotCaptured struct { Type: "not_captured" }No copy of the message was stored.
No copy of the message was stored.
type BetaComplianceReviewStoredCopyUnavailable struct { Type: "stored_copy_unavailable" }A copy of the message was stored and can't be returned.
A copy of the message was stored and can't be returned.
type BetaComplianceReviewCreateMessageContent struct { Type: "create_message"; Request; Response }A request to create a message, and its response.
A request to create a message, and its response.
The POST /v1/messages request body, without thinking blocks or unpublished fields. For a user's message from an Anthropic app, such as Claude Code, system is a placeholder.
Response BetaMessageThe model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.
The model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.
type BetaComplianceReviewItem struct { Type: "compliance_review_item"; ID; Actor; /* 7 more */ }One stored item that the organization it belongs to can read for review.
One stored item that the organization it belongs to can read for review.
type BetaComplianceReviewItemDetailsUnion interface{…}What is particular to one kind of review item.
What is particular to one kind of review item.
type BetaComplianceReviewMessageDetails struct { Type: "message"; Content; ContentUnavailableReason; Model }A message sent to Claude.
A message sent to Claude.
type BetaComplianceReviewMessageContentUnion interface{…}The stored copy of one call.
The stored copy of one call.
type BetaComplianceReviewCreateMessageContent struct { Type: "create_message"; Request; Response }A request to create a message, and its response.
A request to create a message, and its response.
The POST /v1/messages request body, without thinking blocks or unpublished fields. For a user's message from an Anthropic app, such as Claude Code, system is a placeholder.
Response BetaMessageThe model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.
The model's Message, without thinking blocks or unpublished fields. Null when no response was stored, for example because the client disconnected.
type BetaComplianceReviewMessageDetails struct { Type: "message"; Content; ContentUnavailableReason; Model }A message sent to Claude.
A message sent to Claude.
type BetaComplianceReviewReadReasonUnion interface{…}Why a review item is readable.
Why a review item is readable.
type BetaComplianceReviewSafeguardsReason struct { Type: "safeguards_review" }Anthropic flagged the item for your organization to review.
Anthropic flagged the item for your organization to review.
type BetaComplianceReviewSafeguardsReason struct { Type: "safeguards_review" }Anthropic flagged the item for your organization to review.
Anthropic flagged the item for your organization to review.
type BetaComplianceReviewServiceAccountActor struct { Type: "service_account_actor"; ServiceAccountID }A service account.
A service account.
The ID of the service account (svac_...).
type BetaComplianceReviewStoredCopyUnavailable struct { Type: "stored_copy_unavailable" }A copy of the message was stored and can't be returned.
A copy of the message was stored and can't be returned.
type BetaComplianceReviewUserActor struct { Type: "user_actor"; EmailAddress; UserID }A signed-in user.
A signed-in user.
The user's email address. Set only for a current member of an organization that the API key can read.
The ID of the user (user_...).