Skip to content

Commit

Permalink
Agent.handleTask requires config, even if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion committed Feb 10, 2024
1 parent 7446f5a commit f98f990
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run ci
# npm run ci
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"tailwindCSS.validate": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": ["javascript", "typescript"],
"debug.javascript.codelens.npmScripts": "never",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/js/examples/aws-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function taskHandler(taskInput: TaskInput | null): Promise<StepHandler> {
return stepHandler
}

const app = Agent.handleTask(taskHandler).build()
const app = Agent.handleTask(taskHandler, {}).build()
const server = awsServerlessExpress.createServer(app)

exports.handler = (event, context) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/js/examples/firebase-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ async function taskHandler(taskInput: TaskInput | null): Promise<StepHandler> {
return stepHandler
}

const app = Agent.handleTask(taskHandler).build()
const app = Agent.handleTask(taskHandler, {}).build()

export const agentprotocol = onRequest(app)
2 changes: 1 addition & 1 deletion packages/sdk/js/examples/google-cloud-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ async function taskHandler(taskInput: TaskInput | null): Promise<StepHandler> {
return stepHandler
}

const app = Agent.handleTask(taskHandler).build()
const app = Agent.handleTask(taskHandler, {}).build()
functions.http('agentprotocol', app)

0 comments on commit f98f990

Please sign in to comment.