-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathentrypoint.yaml
More file actions
72 lines (72 loc) · 2.38 KB
/
entrypoint.yaml
File metadata and controls
72 lines (72 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
openapi: 3.0.0
info:
title: AgentForce BYOC Demo
description: API generated from Python function schema
version: 1.0.0
paths:
/dc_function:
post:
summary: Concatenate a list of strings from request input into one string
description: "Concatenate a list of strings from request input into one string.\n\
\nArgs:\n request: Dictionary containing:\n - input (List[str]):\
\ List of strings to concatenate.\n - separator (str, optional): String\
\ inserted between items.\n\nReturns:\n dict: A response dictionary with\
\ the concatenated string in `output`\n and processing status metadata\
\ in `status`."
operationId: dc_function
x-sfdc:
code-extension:
feature: BYOC
language: python
namespace: salesforceOrg
package: dataCloudPkg
name: dc_functionFn
prototype: 'dc_function(request: dict) -> dict'
requestSchema: 'dict(input: List[InputItem], separator: Optional[str])'
responseSchema: 'dict(output: str, status: StatusResponse)'
description: Will perform dc_function operation
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
input:
type: array
items:
type: object
properties:
text:
type: string
required:
- text
separator:
type: string
required:
- input
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
output:
type: string
status:
type: object
properties:
status_type:
type: string
status_message:
type: string
required:
- status_type
- status_message
required:
- output
- status
'400':
description: Invalid input