smoltalk
Preparing search index...
SystemMessage
Class SystemMessage
Hierarchy (
View Summary
)
BaseMessage
SystemMessage
Implements
MessageClass
Index
Constructors
constructor
Properties
_
content
_
name?
_
raw
Data?
_
role
Accessors
content
name
raw
Data
role
Methods
content
To
String
to
Anthropic
Message
to
Google
Message
to
JSON
to
Ollama
Message
to
Open
AI
Message
to
Open
AI
Response
Input
Item
from
JSON
Constructors
constructor
new
SystemMessage
(
content
:
string
|
TextPart
[]
,
options
?:
{
name
?:
string
;
rawData
?:
any
}
,
)
:
SystemMessage
Parameters
content
:
string
|
TextPart
[]
options
:
{
name
?:
string
;
rawData
?:
any
}
= {}
Returns
SystemMessage
Properties
_
content
_content
:
string
|
TextPart
[]
Optional
_
name
_name
?:
string
Optional
_
raw
Data
_rawData
?:
any
_
role
_role
:
"system"
= ...
Accessors
content
get
content
()
:
string
Returns
string
set
content
(
value
:
string
)
:
void
Parameters
value
:
string
Returns
void
name
get
name
()
:
string
|
undefined
Returns
string
|
undefined
raw
Data
get
rawData
()
:
any
Returns
any
role
get
role
()
:
"system"
Returns
"system"
Methods
Protected
content
To
String
contentToString
(
content
:
string
|
unknown
[]
|
null
|
undefined
)
:
string
Parameters
content
:
string
|
unknown
[]
|
null
|
undefined
Returns
string
to
Anthropic
Message
toAnthropicMessage
()
:
null
Returns
null
to
Google
Message
toGoogleMessage
()
:
Content
Returns
Content
to
JSON
toJSON
()
:
{
content
:
string
|
{
text
:
string
;
type
:
"text"
}
[]
;
name
?:
string
;
rawData
?:
any
;
role
:
"system"
;
}
Returns
{
content
:
string
|
{
text
:
string
;
type
:
"text"
}
[]
;
name
?:
string
;
rawData
?:
any
;
role
:
"system"
;
}
to
Ollama
Message
toOllamaMessage
()
:
Message
Returns
Message
to
Open
AI
Message
toOpenAIMessage
()
:
ChatCompletionMessageParam
Returns
ChatCompletionMessageParam
to
Open
AI
Response
Input
Item
toOpenAIResponseInputItem
()
:
ResponseInputItem
Returns
ResponseInputItem
Static
from
JSON
fromJSON
(
json
:
unknown
)
:
SystemMessage
Parameters
json
:
unknown
Returns
SystemMessage
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_
content
_
name
_
raw
Data
_
role
Accessors
content
name
raw
Data
role
Methods
content
To
String
to
Anthropic
Message
to
Google
Message
to
JSON
to
Ollama
Message
to
Open
AI
Message
to
Open
AI
Response
Input
Item
from
JSON
smoltalk
Loading...