Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions agent-bases/js.AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Important: Before you begin, fill in the `generatedBy` property in the meta sect
- implement retry strategies with exponential backoff for failed requests
- use proper concurrency settings (HTTP: 10-50, Browser: 1-5)
- set sensible defaults in `.actor/input_schema.json` for all optional fields
- explicitly reference the input schema from `.actor/actor.json` by adding `"input": "./input_schema.json"` — do not rely on auto-discovery, which is deprecated
- set up output schema in `.actor/output_schema.json`
- clean and validate data before pushing to dataset
- use semantic CSS selectors and fallback strategies for missing elements
Expand Down Expand Up @@ -187,8 +188,8 @@ Ask first:
## Project Structure

.actor/
├── actor.json # Actor config: name, version, env vars, runtime settings
├── input_schema.json # Input validation & Console form definition
├── actor.json # Actor config: name, version, env vars, runtime settings, input schema reference
├── input_schema.json # Input validation & Console form definition (referenced from actor.json via "input")
└── output_schema.json # Specifies where an Actor stores its output
src/
└── main.js # Actor entry point and orchestrator
Expand Down
5 changes: 3 additions & 2 deletions agent-bases/python.AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Important: Before you begin, fill in the `generatedBy` property in the meta sect
- implement retry strategies with exponential backoff for failed requests
- use proper concurrency settings (HTTP: 10-50, Browser: 1-5)
- set sensible defaults in `.actor/input_schema.json` for all optional fields
- explicitly reference the input schema from `.actor/actor.json` by adding `"input": "./input_schema.json"` — do not rely on auto-discovery, which is deprecated
- set up output schema in `.actor/output_schema.json`
- clean and validate data before pushing to dataset
- use semantic CSS selectors and fallback strategies for missing elements
Expand Down Expand Up @@ -189,8 +190,8 @@ Ask first:
## Project Structure

.actor/
├── actor.json # Actor config: name, version, env vars, runtime settings
├── input_schema.json # Input validation & Console form definition
├── actor.json # Actor config: name, version, env vars, runtime settings, input schema reference
├── input_schema.json # Input validation & Console form definition (referenced from actor.json via "input")
└── output_schema.json # Specifies where an Actor stores its output
src/
└── main.js # Actor entry point and orchestrator
Expand Down
5 changes: 3 additions & 2 deletions agent-bases/ts.AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Important: Before you begin, fill in the `generatedBy` property in the meta sect
- implement retry strategies with exponential backoff for failed requests
- use proper concurrency settings (HTTP: 10-50, Browser: 1-5)
- set sensible defaults in `.actor/input_schema.json` for all optional fields
- explicitly reference the input schema from `.actor/actor.json` by adding `"input": "./input_schema.json"` — do not rely on auto-discovery, which is deprecated
- set up output schema in `.actor/output_schema.json`
- clean and validate data before pushing to dataset
- use semantic CSS selectors and fallback strategies for missing elements
Expand Down Expand Up @@ -190,8 +191,8 @@ Ask first:
## Project Structure

.actor/
├── actor.json # Actor config: name, version, env vars, runtime settings
├── input_schema.json # Input validation & Console form definition
├── actor.json # Actor config: name, version, env vars, runtime settings, input schema reference
├── input_schema.json # Input validation & Console form definition (referenced from actor.json via "input")
└── output_schema.json # Specifies where an Actor stores its output
src/
└── main.js # Actor entry point and orchestrator
Expand Down
1 change: 1 addition & 0 deletions templates/js-empty/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"templateId": "js-empty",
"generatedBy": "<FILL-IN-MODEL>"
},
"input": "./input_schema.json",
"dockerfile": "../Dockerfile"
}
15 changes: 15 additions & 0 deletions templates/js-empty/.actor/input_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://apify.com/schemas/v1/input.ide.json",
"title": "Actor Input",
"type": "object",
"schemaVersion": 1,
"properties": {
"example": {
"title": "Example Field",
"type": "string",
"description": "Replace this with your actual input fields.",
"editor": "textfield"
}
},
"required": []
}
1 change: 1 addition & 0 deletions templates/python-empty/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"templateId": "python-empty",
"generatedBy": "<FILL-IN-MODEL>"
},
"input": "./input_schema.json",
"dockerfile": "../Dockerfile"
}
15 changes: 15 additions & 0 deletions templates/python-empty/.actor/input_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://apify.com/schemas/v1/input.ide.json",
"title": "Actor Input",
"type": "object",
"schemaVersion": 1,
"properties": {
"example": {
"title": "Example Field",
"type": "string",
"description": "Replace this with your actual input fields.",
"editor": "textfield"
}
},
"required": []
}
1 change: 1 addition & 0 deletions templates/ts-empty/.actor/actor.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"templateId": "ts-empty",
"generatedBy": "<FILL-IN-MODEL>"
},
"input": "./input_schema.json",
"dockerfile": "../Dockerfile"
}
15 changes: 15 additions & 0 deletions templates/ts-empty/.actor/input_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://apify.com/schemas/v1/input.ide.json",
"title": "Actor Input",
"type": "object",
"schemaVersion": 1,
"properties": {
"example": {
"title": "Example Field",
"type": "string",
"description": "Replace this with your actual input fields.",
"editor": "textfield"
}
},
"required": []
}
Loading