Skip to content

Commit e0e4d3a

Browse files
Initial commit
Co-authored-by: Kazuhiro Sera <[email protected]> --------- Co-authored-by: Kazuhiro Sera <[email protected]>
0 parents  commit e0e4d3a

File tree

504 files changed

+57911
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

504 files changed

+57911
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Report a bug
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Please read this first
10+
11+
- **Have you read the docs?** [Agents SDK docs](https://openai.github.io/openai-agents-js/)
12+
- **Have you searched for related issues?** Others may have faced similar issues.
13+
14+
### Describe the bug
15+
16+
A clear and concise description of what the bug is.
17+
18+
### Debug information
19+
20+
- Agents SDK version: (e.g. `v0.0.1`)
21+
- Runtime environment (e.g. `Node.js 22.16.0`)
22+
23+
### Repro steps
24+
25+
Ideally provide a minimal JavaScript/TypeScript script that can be run to reproduce the bug.
26+
27+
### Expected behavior
28+
29+
A clear and concise description of what you expected to happen.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### Please read this first
10+
11+
- **Have you read the docs?** [Agents SDK docs](https://openai.github.io/openai-agents-js/)
12+
- **Have you searched for related issues?** Others may have had similar requests
13+
14+
### Describe the feature
15+
16+
What is the feature you're requesting? How would it work? Please provide examples and details if possible.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Custom model providers
3+
about: Questions or bugs about using non-OpenAI models
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Please read this first
10+
11+
- **Have you read the custom model provider docs, including the 'Common issues' section?** [Model provider docs](https://openai.github.io/openai-agents-js/guides/models#custom-model-providers)
12+
- **Have you searched for related issues?** Others may have faced similar issues.
13+
14+
### Describe the question
15+
16+
A clear and concise description of what the question or bug is.
17+
18+
### Debug information
19+
20+
- Agents SDK version: (e.g. `v0.0.1`)
21+
- Runtime environment (e.g. `Node.js 22.16.0`)
22+
23+
### Repro steps
24+
25+
Ideally provide a minimal python script that can be run to reproduce the issue.
26+
27+
### Expected behavior
28+
29+
A clear and concise description of what you expected to happen.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Question
3+
about: Questions about the SDK
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
---
8+
9+
### Please read this first
10+
11+
- **Have you read the docs?** [Agents SDK docs](https://openai.github.io/openai-agents-js/)
12+
- **Have you searched for related issues?** Others may have had similar requests
13+
14+
### Question
15+
16+
Describe your question. Provide details if available.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
### Summary
2+
3+
<!-- Please give a short summary of the change and the problem this solves. -->
4+
5+
### Test plan
6+
7+
<!-- Please explain how this was tested -->
8+
9+
### Issue number
10+
11+
<!-- For example: "Closes #1234" -->
12+
13+
### Checks
14+
15+
- [ ] I've added new tests (if relevant)
16+
- [ ] I've added/updated the relevant documentation
17+
- [ ] I've run `pnpm test` and `pnpm test:examples`
18+
- [ ] (If you made a major change) I've run `pnpm test:integration` [(see details)](https://github.com/openai/openai-agents-js/tree/main/integration-tests)
19+
- [ ] I've made sure tests pass
20+
- [ ] I've added a changeset using `pnpm changeset` to indicate my changes

.github/workflows/docs.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
# Allow this job to clone the repo and create a page deployment
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout your repository using git
20+
uses: actions/checkout@v4
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
- name: Install dependencies
24+
uses: pnpm/action-setup@v4
25+
with:
26+
run_install: true
27+
- name: Run build
28+
run: pnpm build
29+
- name: Install, build, and upload your site
30+
uses: withastro/action@v3
31+
with:
32+
path: docs
33+
# with:
34+
# path: . # The root location of your Astro project inside the repository. (optional)
35+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
36+
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
37+
38+
deploy:
39+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
40+
needs: build
41+
runs-on: ubuntu-latest
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
steps:
46+
- name: Deploy to GitHub Pages
47+
id: deployment
48+
uses: actions/deploy-pages@v4

.github/workflows/issues.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
days-before-issue-stale: 7
16+
days-before-issue-close: 3
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 7 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 3 days since being marked as stale."
20+
any-of-issue-labels: 'question,needs-more-info'
21+
days-before-pr-stale: 10
22+
days-before-pr-close: 7
23+
stale-pr-label: "stale"
24+
stale-pr-message: "This PR is stale because it has been open for 10 days with no activity."
25+
close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Changesets
2+
3+
on:
4+
workflow_run:
5+
workflows: ['CI']
6+
types:
7+
- completed
8+
branches:
9+
- main
10+
11+
env:
12+
CI: true
13+
14+
jobs:
15+
version:
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+
timeout-minutes: 15
18+
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
21+
id-token: write
22+
steps:
23+
- name: Checkout code repository
24+
uses: actions/checkout@v4
25+
26+
- name: Setup pnpm
27+
uses: pnpm/action-setup@v4
28+
29+
- name: Setup node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 20
33+
cache: 'pnpm'
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Build packages
39+
run: pnpm build
40+
41+
- name: Create and publish versions
42+
uses: changesets/action@v1
43+
with:
44+
commit: 'chore: update versions'
45+
title: 'chore: update versions'
46+
publish: pnpm ci:publish
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)