Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Commit

Permalink
adjusting agentkit zod min to nonempty
Browse files Browse the repository at this point in the history
  • Loading branch information
stat committed Dec 6, 2024
1 parent 2c5b31b commit 1ba0be2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions twitter-langchain/src/twitter_agentkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ export const TwitterAgentkitOptions = z
.object({
apiKey: z
.string()
.min(1, "The Twitter (X) API key is required")
.nonempty("The Twitter (X) API key is required")
.describe("The Twitter (X) API key"),
apiSecret: z
.string()
.min(1, "The Twitter (X) API secret is required")
.nonempty("The Twitter (X) API secret is required")
.describe("The Twitter (X) API secret"),
accessToken: z
.string()
.min(1, "The Twitter (X) access token is required")
.nonempty("The Twitter (X) access token is required")
.describe("The Twitter (X) access token"),
accessTokenSecret: z
.string()
.min(1, "The Twitter (X) access token secret is required")
.nonempty("The Twitter (X) access token secret is required")
.describe("The Twitter (X) access token secret"),
})
.strip()
Expand All @@ -33,19 +33,19 @@ export const TwitterAgentkitOptions = z
const EnvSchema = z.object({
TWITTER_API_KEY: z
.string()
.min(1, "TWITTER_API_KEY is required")
.nonempty("TWITTER_API_KEY is required")
.describe("The Twitter (X) API key"),
TWITTER_API_SECRET: z
.string()
.min(1, "TWITTER_API_SECRET is required")
.nonempty("TWITTER_API_SECRET is required")
.describe("The Twitter (X) API secret"),
TWITTER_ACCESS_TOKEN: z
.string()
.min(1, "TWITTER_ACCESS_TOKEN is required")
.nonempty("TWITTER_ACCESS_TOKEN is required")
.describe("The Twitter (X) access token"),
TWITTER_ACCESS_TOKEN_SECRET: z
.string()
.min(1, "TWITTER_ACCESS_TOKEN_SECRET is required")
.nonempty("TWITTER_ACCESS_TOKEN_SECRET is required")
.describe("The Twitter (X) access token secret"),
});

Expand Down

0 comments on commit 1ba0be2

Please sign in to comment.