GitHub
Docs
Preparing search index...
The search index is not available
Langfuse JS/TS SDKs
Langfuse JS/TS SDKs
langfuse
ChatPromptClient
Class ChatPromptClient
Hierarchy
BasePromptClient
ChatPromptClient
Index
Constructors
constructor
Properties
config
is
Fallback
labels
name
prompt
prompt
Response
tags
type
version
Methods
_transform
To
Langchain
Variables
compile
get
Langchain
Prompt
toJSON
Constructors
constructor
new
Chat
Prompt
Client
(
prompt
,
isFallback
?
)
:
ChatPromptClient
Parameters
prompt
:
ChatPrompt
Optional
isFallback
:
boolean
Returns
ChatPromptClient
Properties
Readonly
config
config
:
unknown
Readonly
is
Fallback
is
Fallback
:
boolean
Readonly
labels
labels
:
string
[]
Readonly
name
name
:
string
Readonly
prompt
prompt
:
Omit
<
{
content
:
string
;
role
:
string
;
}
,
"externalId"
|
"traceIdType"
>
[]
Readonly
prompt
Response
prompt
Response
:
ChatPrompt
Readonly
tags
tags
:
string
[]
Readonly
type
type
:
"text"
|
"chat"
Readonly
version
version
:
number
Methods
Protected
_transform
To
Langchain
Variables
_transform
To
Langchain
Variables
(
content
)
:
string
Parameters
content
:
string
Returns
string
compile
compile
(
variables
?
)
:
Omit
<
{
content
:
string
;
role
:
string
;
}
,
"externalId"
|
"traceIdType"
>
[]
Parameters
Optional
variables
:
Record
<
string
,
string
>
Returns
Omit
<
{
content
:
string
;
role
:
string
;
}
,
"externalId"
|
"traceIdType"
>
[]
get
Langchain
Prompt
get
Langchain
Prompt
(
)
:
Omit
<
{
content
:
string
;
role
:
string
;
}
,
"externalId"
|
"traceIdType"
>
[]
Returns
Omit
<
{
content
:
string
;
role
:
string
;
}
,
"externalId"
|
"traceIdType"
>
[]
toJSON
toJSON
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
is
Fallback
labels
name
prompt
prompt
Response
tags
type
version
Methods
_transform
To
Langchain
Variables
compile
get
Langchain
Prompt
toJSON
GitHub
Docs
Langfuse JS/TS SDKs
Loading...