Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.1.0, Speakeasy CLI 1.392.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 7, 2024
1 parent 50ebd09 commit 5d81883
Show file tree
Hide file tree
Showing 12 changed files with 184 additions and 142 deletions.
138 changes: 75 additions & 63 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: 75084268-f421-4ea6-8995-12fee2bcfd75
management:
docChecksum: 3421b267db90c24a6b62d0b3559978bc
docVersion: 0.1.0
speakeasyVersion: 1.382.0
generationVersion: 2.404.11
releaseVersion: 0.9.4
configChecksum: 88afee7466720a7db49a55eaf6ae67e1
speakeasyVersion: 1.392.1
generationVersion: 2.411.9
releaseVersion: 0.9.5
configChecksum: 151e0685f6d52b78c07cb069ddbe3db4
repoURL: https://github.com/inkeep/ai-api-go.git
repoSubDirectory: .
installationURL: https://github.com/inkeep/ai-api-go
Expand All @@ -16,7 +16,7 @@ features:
acceptHeaders: 2.81.2
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.6
core: 3.5.5
core: 3.5.6
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
flattening: 2.81.1
Expand All @@ -32,78 +32,90 @@ features:
serverEvents: 0.1.2
unions: 2.85.9
generatedFiles:
- chatsession.go
- chatapigo.go
- go.mod
- models/sdkerrors/sdkerror.go
- retry/config.go
- types/bigint.go
- types/date.go
- types/datetime.go
- types/decimal.go
- types/pointers.go
- types/stream/stream.go
- internal/utils/contenttype.go
- internal/utils/form.go
- internal/utils/headers.go
- internal/utils/json.go
- internal/utils/pathparams.go
- internal/utils/queryparams.go
- internal/utils/requestbody.go
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- /models/operations/create.go
- /models/operations/continue.go
- /models/components/chatresultstream.go
- .gitattributes
- /models/components/assistantmessage.go
- /models/components/chatresult.go
- /models/components/chatresultmessagechunkevent.go
- /models/components/messagechunk.go
- /models/components/chatresultrecordscitedevent.go
- /models/components/recordscited.go
- /models/components/chatresultstream.go
- /models/components/chatsessioninput.go
- /models/components/citation.go
- /models/components/record.go
- /models/components/recordtype.go
- /models/components/chatresult.go
- /models/components/assistantmessage.go
- /models/components/validationerror.go
- /models/components/continuechatsessionwithchatresultinput.go
- /models/components/createchatsessionwithchatresultinput.go
- /models/components/chatsessioninput.go
- /models/components/message.go
- /models/components/usermessage.go
- /models/components/continuechatsessionwithchatresultinput.go
- /models/components/messagechunk.go
- /models/components/record.go
- /models/components/recordscited.go
- /models/components/recordtype.go
- /models/components/security.go
- /models/components/usermessage.go
- /models/components/validationerror.go
- /models/operations/continue.go
- /models/operations/create.go
- /models/sdkerrors/httpvalidationerror.go
- docs/models/operations/createresponse.md
- docs/models/operations/continuerequest.md
- docs/models/operations/continueresponse.md
- docs/models/components/chatresultstream.md
- CONTRIBUTING.md
- USAGE.md
- chatapigo.go
- chatsession.go
- docs/models/components/assistantmessage.md
- docs/models/components/chatmode.md
- docs/models/components/chatmodeoptions.md
- docs/models/components/chatresult.md
- docs/models/components/chatresultmessagechunkevent.md
- docs/models/components/four.md
- docs/models/components/messagechunk.md
- docs/models/components/chatresultrecordscitedevent.md
- docs/models/components/recordscited.md
- docs/models/components/chatresultstream.md
- docs/models/components/chatsessioninput.md
- docs/models/components/citation.md
- docs/models/components/record.md
- docs/models/components/recordtypeenumerated.md
- docs/models/components/recordtype.md
- docs/models/components/chatresult.md
- docs/models/components/assistantmessage.md
- docs/models/components/loc.md
- docs/models/components/validationerror.md
- docs/models/components/chatmodeoptions.md
- docs/models/components/chatmode.md
- docs/models/components/continuechatsessionwithchatresultinput.md
- docs/models/components/createchatsessionwithchatresultinput.md
- docs/models/components/chatsessioninput.md
- docs/models/components/four.md
- docs/models/components/loc.md
- docs/models/components/message.md
- docs/models/components/usermessage.md
- docs/models/components/continuechatsessionwithchatresultinput.md
- docs/models/components/messagechunk.md
- docs/models/components/record.md
- docs/models/components/recordscited.md
- docs/models/components/recordtype.md
- docs/models/components/recordtypeenumerated.md
- docs/models/components/security.md
- docs/models/components/usermessage.md
- docs/models/components/validationerror.md
- docs/models/operations/continuerequest.md
- docs/models/operations/continueresponse.md
- docs/models/operations/createresponse.md
- docs/models/operations/option.md
- docs/models/sdkerrors/httpvalidationerror.md
- docs/sdks/chatapigo/README.md
- docs/models/operations/option.md
- docs/sdks/chatsession/README.md
- USAGE.md
- models/operations/options.go
- .gitattributes
- go.mod
- internal/hooks/hooks.go
- CONTRIBUTING.md
- internal/utils/contenttype.go
- internal/utils/form.go
- internal/utils/headers.go
- internal/utils/json.go
- internal/utils/pathparams.go
- internal/utils/queryparams.go
- internal/utils/requestbody.go
- internal/utils/retries.go
- internal/utils/security.go
- internal/utils/utils.go
- models/operations/options.go
- models/sdkerrors/sdkerror.go
- retry/config.go
- types/bigint.go
- types/date.go
- types/datetime.go
- types/decimal.go
- types/pointers.go
- types/stream/stream.go
examples:
create:
speakeasy-default-create:
requestBody:
application/json: {"integration_id": "<value>", "chat_session": {"messages": []}}
continue:
speakeasy-default-continue:
parameters:
path:
chat_session_id: "<value>"
requestBody:
application/json: {"integration_id": "<value>", "message": {"content": "<value>"}}
86 changes: 54 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,31 @@ It has been generated successfully based on your OpenAPI spec. However, it is no
- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/productionize-sdks/publish-sdks)
- [ ] ✨ When ready to productionize, delete this section from the README

<!-- Start Summary [summary] -->
## Summary

Inkeep Search and Chat API: Leverage the Inkeep APIs to create your own AI-powered search and chat experiences built on top of your own content.
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
## Table of Contents

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Server-sent event streaming](#server-sent-event-streaming)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Special Types](#special-types)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
## SDK Installation

To add the SDK as a dependency to your project:
```bash
go get github.com/inkeep/ai-api-go
```
Expand All @@ -43,7 +65,9 @@ func main() {
s := aiapigo.New(
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -54,9 +78,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -106,7 +128,9 @@ func main() {
s := aiapigo.New(
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -117,9 +141,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -167,7 +189,9 @@ func main() {
s := aiapigo.New(
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -178,9 +202,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {

var e *sdkerrors.HTTPValidationError
Expand Down Expand Up @@ -228,7 +250,9 @@ func main() {
aiapigo.WithServerIndex(0),
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -239,9 +263,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -277,7 +299,9 @@ func main() {
aiapigo.WithServerURL("https://api.inkeep.com"),
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -288,9 +312,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -363,7 +385,9 @@ func main() {
s := aiapigo.New(
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -374,9 +398,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -422,7 +444,9 @@ func main() {
s := aiapigo.New(
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -433,9 +457,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request, operations.WithRetries(
}, operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -489,7 +511,9 @@ func main() {
}),
aiapigo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)
request := components.CreateChatSessionWithChatResultInput{

ctx := context.Background()
res, err := s.ChatSession.Create(ctx, components.CreateChatSessionWithChatResultInput{
IntegrationID: "<value>",
ChatSession: components.ChatSessionInput{
Messages: []components.Message{
Expand All @@ -500,9 +524,7 @@ func main() {
),
},
},
}
ctx := context.Background()
res, err := s.ChatSession.Create(ctx, request)
})
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,4 +428,14 @@ Based on:
### Generated
- [go v0.9.4] .
### Releases
- [Go v0.9.4] https://github.com/inkeep/ai-api-go/releases/tag/v0.9.4 - .
- [Go v0.9.4] https://github.com/inkeep/ai-api-go/releases/tag/v0.9.4 - .

## 2024-09-07 00:03:30
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.392.1 (2.411.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.5] .
### Releases
- [Go v0.9.5] https://github.com/inkeep/ai-api-go/releases/tag/v0.9.5 - .
Loading

0 comments on commit 5d81883

Please sign in to comment.