Skip to content
Open
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
655 changes: 404 additions & 251 deletions command-snapshot.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion messages/agent.test.list.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ List the available agent tests in your org.

# description

The command outputs a table with the name (API name) of each test along with its unique ID and the date it was created in the org.
The command outputs a table with the name (API name) of each test along with its unique ID, type ('agentforce-studio' or 'testing-center'), and the date it was created in the org.

# examples

Expand Down
8 changes: 8 additions & 0 deletions messages/shared.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ When enabled, includes detailed generated data (such as invoked actions) in the

The generated data is in JSON format and includes the Apex classes or Flows that were invoked, the Salesforce objects that were touched, and so on. Use the JSON structure of this information to build the test case JSONPath expression when using custom evaluations.

# flags.test-runner.summary

Explicitly specify which test runner to use (agentforce-studio or testing-center).

# flags.test-runner.description

By default, the command automatically detects which test runner to use based on the test definition metadata type in your org. Use this flag to explicitly specify the runner type. 'agentforce-studio' uses AiTestingDefinition metadata. 'testing-center' uses AiEvaluationDefinition metadata.

# error.invalidAgentType

agentType must be either "customer" or "internal". Found: [%s]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@inquirer/prompts": "^7.10.1",
"@oclif/core": "^4",
"@oclif/multi-stage-output": "^0.8.36",
"@salesforce/agents": "^1.2.0",
"@salesforce/agents": "^1.4.0",
"@salesforce/core": "^8.28.3",
"@salesforce/kit": "^3.2.6",
"@salesforce/sf-plugins-core": "^12.2.6",
Expand Down
7 changes: 5 additions & 2 deletions schemas/agent-activate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "number"
}
},
"required": ["success", "version"],
"required": [
"success",
"version"
],
"additionalProperties": false
}
}
}
}
47 changes: 39 additions & 8 deletions schemas/agent-create.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
"type": "string"
}
},
"required": ["botId", "botVersionId", "plannerId"],
"required": [
"botId",
"botVersionId",
"plannerId"
],
"additionalProperties": false,
"description": "If the agent was created with saveAgent=true, these are the IDs that make up an agent; Bot, BotVersion, and GenAiPlanner metadata."
},
Expand Down Expand Up @@ -78,7 +82,11 @@
"type": "string"
}
},
"required": ["inputName", "inputDataType", "inputDescription"],
"required": [
"inputName",
"inputDataType",
"inputDescription"
],
"additionalProperties": false
},
"minItems": 1,
Expand All @@ -99,14 +107,24 @@
"type": "string"
}
},
"required": ["outputName", "outputDataType", "outputDescription"],
"required": [
"outputName",
"outputDataType",
"outputDescription"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 1
}
},
"required": ["actionName", "exampleOutput", "actionDescription", "inputs", "outputs"],
"required": [
"actionName",
"exampleOutput",
"actionDescription",
"inputs",
"outputs"
],
"additionalProperties": false
},
"minItems": 1,
Expand All @@ -122,7 +140,13 @@
"type": "string"
}
},
"required": ["scope", "topic", "actions", "instructions", "classificationDescription"],
"required": [
"scope",
"topic",
"actions",
"instructions",
"classificationDescription"
],
"additionalProperties": false
},
"minItems": 1,
Expand All @@ -135,11 +159,18 @@
}
}
},
"required": ["agentDescription", "topics", "sampleUtterances"],
"required": [
"agentDescription",
"topics",
"sampleUtterances"
],
"additionalProperties": false
}
},
"required": ["agentDefinition", "isSuccess"]
"required": [
"agentDefinition",
"isSuccess"
]
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-deactivate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "number"
}
},
"required": ["success", "version"],
"required": [
"success",
"version"
],
"additionalProperties": false
}
}
}
}
22 changes: 18 additions & 4 deletions schemas/agent-generate-agent__spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@
"type": "string"
}
},
"required": ["agentType", "companyDescription", "companyName", "isSuccess", "role", "topics"]
"required": [
"agentType",
"companyDescription",
"companyName",
"isSuccess",
"role",
"topics"
]
},
"DraftAgentTopics": {
"type": "array",
Expand All @@ -61,15 +68,22 @@
"type": "string"
}
},
"required": ["name", "description"],
"required": [
"name",
"description"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 1
},
"AgentType": {
"type": "string",
"enum": ["customer", "internal", "AGENT"]
"enum": [
"customer",
"internal",
"AGENT"
]
}
}
}
}
8 changes: 6 additions & 2 deletions schemas/agent-generate-authoring__bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
"type": "string"
}
},
"required": ["agentPath", "metaXmlPath", "outputDir"],
"required": [
"agentPath",
"metaXmlPath",
"outputDir"
],
"additionalProperties": false
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-generate-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "string"
}
},
"required": ["genAiPlannerBundlePath", "botTemplatePath"],
"required": [
"genAiPlannerBundlePath",
"botTemplatePath"
],
"additionalProperties": false
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-preview-end.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "string"
}
},
"required": ["sessionId", "tracesPath"],
"required": [
"sessionId",
"tracesPath"
],
"additionalProperties": false
}
}
}
}
8 changes: 6 additions & 2 deletions schemas/agent-preview-send.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@
"type": "string"
}
},
"required": ["messages", "agentApiName", "sessionId"],
"required": [
"messages",
"agentApiName",
"sessionId"
],
"additionalProperties": false
}
}
}
}
13 changes: 10 additions & 3 deletions schemas/agent-preview-sessions.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,20 @@
"$ref": "#/definitions/SessionType"
}
},
"required": ["agentId", "sessionId"],
"required": [
"agentId",
"sessionId"
],
"additionalProperties": false
}
},
"SessionType": {
"type": "string",
"enum": ["simulated", "live", "published"]
"enum": [
"simulated",
"live",
"published"
]
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-preview-start.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "string"
}
},
"required": ["sessionId", "agentApiName"],
"required": [
"sessionId",
"agentApiName"
],
"additionalProperties": false
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/agent-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"type": "null"
}
}
}
}
6 changes: 4 additions & 2 deletions schemas/agent-publish-authoring__bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
}
}
},
"required": ["success"],
"required": [
"success"
],
"additionalProperties": false
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-test-create.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"type": "string"
}
},
"required": ["path", "contents"],
"required": [
"path",
"contents"
],
"additionalProperties": false
}
}
}
}
2 changes: 1 addition & 1 deletion schemas/agent-test-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
"additionalProperties": false
}
}
}
}
Loading
Loading