-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from forcedotcom/sh/create-agent-v2
feat: add mock agentCreateV2 API and tests
- Loading branch information
Showing
6 changed files
with
322 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
test/mocks/createAgent-Preview/connect_ai-assist_create-agent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"isSuccess": true, | ||
"agentDefinition": { | ||
"agentDescription": "some agent description", | ||
"topics": [ | ||
{ | ||
"scope": "some scope", | ||
"topic": "topic_name", | ||
"actions": [ | ||
{ | ||
"actionName": "some_action_name", | ||
"exampleOutput": "some example output", | ||
"actionDescription": "some description", | ||
"inputs": [ | ||
{ | ||
"inputName": "input_name_1", | ||
"inputDataType": "string", | ||
"inputDescription": "some description" | ||
}, | ||
{ | ||
"inputName": "input_name_2", | ||
"inputDataType": "date", | ||
"inputDescription": "some description" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"outputName": "output_name", | ||
"outputDataType": "string", | ||
"outputDescription": "some description" | ||
} | ||
] | ||
} | ||
], | ||
"instructions": ["instruction 1", "instruction 2"], | ||
"classificationDescription": "some classification description" | ||
} | ||
], | ||
"Sample_Utterances": ["sample utterance 1", "sample utterance 2", "sample utterance 3"] | ||
} | ||
} |
Oops, something went wrong.