288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
3.6 KiB
Block
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Prompt | Pointer to string | [optional] | |
| State | Pointer to string | [optional] | |
| Text | Pointer to string | [optional] | |
| TextEn | Pointer to string | [optional] | |
| Type | Pointer to string | [optional] |
Methods
NewBlock
func NewBlock() *Block
NewBlock instantiates a new Block object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewBlockWithDefaults
func NewBlockWithDefaults() *Block
NewBlockWithDefaults instantiates a new Block object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetPrompt
func (o *Block) GetPrompt() string
GetPrompt returns the Prompt field if non-nil, zero value otherwise.
GetPromptOk
func (o *Block) GetPromptOk() (*string, bool)
GetPromptOk returns a tuple with the Prompt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetPrompt
func (o *Block) SetPrompt(v string)
SetPrompt sets Prompt field to given value.
HasPrompt
func (o *Block) HasPrompt() bool
HasPrompt returns a boolean if a field has been set.
GetState
func (o *Block) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
GetStateOk
func (o *Block) GetStateOk() (*string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetState
func (o *Block) SetState(v string)
SetState sets State field to given value.
HasState
func (o *Block) HasState() bool
HasState returns a boolean if a field has been set.
GetText
func (o *Block) GetText() string
GetText returns the Text field if non-nil, zero value otherwise.
GetTextOk
func (o *Block) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetText
func (o *Block) SetText(v string)
SetText sets Text field to given value.
HasText
func (o *Block) HasText() bool
HasText returns a boolean if a field has been set.
GetTextEn
func (o *Block) GetTextEn() string
GetTextEn returns the TextEn field if non-nil, zero value otherwise.
GetTextEnOk
func (o *Block) GetTextEnOk() (*string, bool)
GetTextEnOk returns a tuple with the TextEn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetTextEn
func (o *Block) SetTextEn(v string)
SetTextEn sets TextEn field to given value.
HasTextEn
func (o *Block) HasTextEn() bool
HasTextEn returns a boolean if a field has been set.
GetType
func (o *Block) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
GetTypeOk
func (o *Block) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetType
func (o *Block) SetType(v string)
SetType sets Type field to given value.
HasType
func (o *Block) HasType() bool
HasType returns a boolean if a field has been set.