Table of Contents

Struct ContentType

[Serializable]
public readonly struct ContentType : IStringWrapper
Implements
IStringWrapper

Constructors

ContentType(string)

public ContentType(string value)

Parameters

value string

Fields

CodeExecutionToolResult

public const string CodeExecutionToolResult = "code_execution_tool_result"

Field Value

string

ContainerUpload

public const string ContainerUpload = "container_upload"

Field Value

string

McpToolResult

public const string McpToolResult = "mcp_tool_result"

Field Value

string

McpToolUse

public const string McpToolUse = "mcp_tool_use"

Field Value

string

RedactedThinking

public const string RedactedThinking = "redacted_thinking"

Field Value

string

ServerToolUse

public const string ServerToolUse = "server_tool_use"

Field Value

string

Text

public const string Text = "text"

Field Value

string

Thinking

public const string Thinking = "thinking"

Field Value

string

ToolUse

public const string ToolUse = "tool_use"

Field Value

string

WebSearchToolResult

public const string WebSearchToolResult = "web_search_tool_result"

Field Value

string

Properties

Value

public string Value { get; }

Property Value

string

Methods

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

implicit operator string(ContentType)

public static implicit operator string(ContentType enumValue)

Parameters

enumValue ContentType

Returns

string

implicit operator ContentType(string)

public static implicit operator ContentType(string value)

Parameters

value string

Returns

ContentType