Skip to content

speakeasy-sdks/taamai

Repository files navigation

github.com/speakeasy-sdks/taamai

SDK Installation

go get github.com/speakeasy-sdks/taamai

SDK Example Usage

package main

import (
	"context"
	"github.com/speakeasy-sdks/taamai"
	"github.com/speakeasy-sdks/taamai/pkg/models/operations"
	"github.com/speakeasy-sdks/taamai/pkg/models/shared"
	"log"
)

func main() {
	s := taamai.New(
		taamai.WithSecurity(""),
	)

	ctx := context.Background()
	res, err := s.AddonFeatures.GenerateCode(ctx, operations.GenerateCodeRequest{
		Document:     "new checking",
		Instructions: "generate a code to store image",
		Language:     "php",
		UserID:       1,
	})
	if err != nil {
		log.Fatal(err)
	}

	if res.GenerateCode != nil {
		// handle response
	}
}

Available Resources and Operations

Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned response object will have a Next method that can be called to pull down the next group of results. If the return value of Next is nil, then there are no more pages to be fetched.

Here's an example of one such pagination call:

Development

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!

SDK Created by Speakeasy