Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
WithRawResponse *RawClient
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(options *core.RequestOptions) *Client
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, prompt *management.PromptGroupNameEnum, language *management.PromptLanguageEnum, opts ...option.RequestOption, ) (management.GetCustomTextsByLanguageResponseContent, error)
Retrieve custom text for a specific prompt and language.
func (*Client) Set ¶
func (c *Client) Set( ctx context.Context, prompt *management.PromptGroupNameEnum, language *management.PromptLanguageEnum, request management.SetsCustomTextsByLanguageRequestContent, opts ...option.RequestOption, ) error
Set custom text for a specific prompt. Existing texts will be overwritten.
type RawClient ¶
type RawClient struct {
// contains filtered or unexported fields
}
func NewRawClient ¶
func NewRawClient(options *core.RequestOptions) *RawClient
func (*RawClient) Get ¶
func (r *RawClient) Get( ctx context.Context, prompt *management.PromptGroupNameEnum, language *management.PromptLanguageEnum, opts ...option.RequestOption, ) (*core.Response[management.GetCustomTextsByLanguageResponseContent], error)
func (*RawClient) Set ¶
func (r *RawClient) Set( ctx context.Context, prompt *management.PromptGroupNameEnum, language *management.PromptLanguageEnum, request management.SetsCustomTextsByLanguageRequestContent, opts ...option.RequestOption, ) (*core.Response[any], error)
Click to show internal directories.
Click to hide internal directories.