Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Dec 10, 2024
1 parent 54b297d commit 01ebd16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,24 @@ type MemorySynthesizeQuestionRequest struct {
LastNMessages *int `json:"-" url:"lastNMessages,omitempty"`
}

type ApidataAddMemoryResponse struct {
type AddMemoryResponse struct {
Context *string `json:"context,omitempty" url:"context,omitempty"`

extraProperties map[string]interface{}
_rawJSON json.RawMessage
}

func (a *ApidataAddMemoryResponse) GetExtraProperties() map[string]interface{} {
func (a *AddMemoryResponse) GetExtraProperties() map[string]interface{} {
return a.extraProperties
}

func (a *ApidataAddMemoryResponse) UnmarshalJSON(data []byte) error {
type unmarshaler ApidataAddMemoryResponse
func (a *AddMemoryResponse) UnmarshalJSON(data []byte) error {
type unmarshaler AddMemoryResponse
var value unmarshaler
if err := json.Unmarshal(data, &value); err != nil {
return err
}
*a = ApidataAddMemoryResponse(value)
*a = AddMemoryResponse(value)

extraProperties, err := core.ExtractExtraProperties(data, *a)
if err != nil {
Expand All @@ -156,7 +156,7 @@ func (a *ApidataAddMemoryResponse) UnmarshalJSON(data []byte) error {
return nil
}

func (a *ApidataAddMemoryResponse) String() string {
func (a *AddMemoryResponse) String() string {
if len(a._rawJSON) > 0 {
if value, err := core.StringifyJSON(a._rawJSON); err == nil {
return value
Expand Down
4 changes: 2 additions & 2 deletions memory/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ func (c *Client) Add(
sessionID string,
request *v2.AddMemoryRequest,
opts ...option.RequestOption,
) (*v2.ApidataAddMemoryResponse, error) {
) (*v2.AddMemoryResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.getzep.com/api/v2"
Expand Down Expand Up @@ -1082,7 +1082,7 @@ func (c *Client) Add(
return apiError
}

var response *v2.ApidataAddMemoryResponse
var response *v2.AddMemoryResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down

0 comments on commit 01ebd16

Please sign in to comment.