ઉદાહરણ
{
"requires": {
"interfaces": ["ledger", "mail"],
"plugins": [],
"tools": []
},
"skills": ["@example/skills/receipt-capture"],
"inputs": [
{
"key": "invoice_mailbox",
"label": "Mailbox that receives vendor invoices",
"type": "text",
"id": "finance.ap.invoice_mailbox",
"scope": "company",
"required": true,
"missing": "Ask the owner which mailbox to watch before processing invoices."
}
],
"memory": {
"mode": "separate",
"topics": [
{ "slug": "vendor", "description": "A supplier: terms, usual amounts, contacts, open disputes" }
]
},
"subscribes": ["finance.ap.*"],
"ceiling": { "ledger.bill.create": "approval" },
"workflows": {
"invoice-intake": {
"trigger": { "type": "watch", "plugin": "mail", "event": "email.new" },
"activities": [
{ "id": "record", "intent": "If the message in _watch_payload is a vendor invoice, record it as a bill." }
]
}
}
} ફીલ્ડ
| ફીલ્ડ | પ્રકાર | અર્થ |
|---|---|---|
requires.interfaces | સ્ટ્રિંગની યાદી | ભૂમિકાને જરૂરી ક્ષમતાઓ, જેમ કે mail અથવા ledger. નિયુક્તિ વખતે અપાય છે; મંજૂરી આધારિત દરેક કામગીરી મંજૂરીની આઇટમ જ રહે છે. ક્ષમતાઓ અને મંજૂરીઓ જુઓ. |
requires.plugins | સ્ટ્રિંગની યાદી | કર્મચારી સાથે ઇન્સ્ટૉલ થતાં પ્લગઇન. ભૂમિકા ખરેખર એક પ્લગઇન પર જ આધાર રાખતી હોય ત્યારે જ વાપરો; ક્ષમતાને પ્રાધાન્ય આપો. |
requires.tools | સ્ટ્રિંગની યાદી | પહેલા વારાથી કર્મચારીના સત્રમાં લોડ થતાં સાધનો. આ ક્યારેય મંજૂરીને બાયપાસ કરતું નથી. |
skills | સ્ટ્રિંગની યાદી | ઇન્સ્ટૉલ કરીને વાપરવાનાં માર્કેટપ્લેસ કૌશલ્યો: @org/skills/name, વૈકલ્પિક રીતે @version, અથવા SKIL- કોડ. પૅકેજના પોતાના skills/ ફોલ્ડરમાંનાં કૌશલ્યો માટે કોઈ એન્ટ્રીની જરૂર નથી. |
inputs | list | નિયુક્તિ વખતે માલિક જવાબ આપે તે પ્રશ્નો. ઇનપુટ જુઓ. |
memory | object | વાતચીત અને મેમરી કેવી રીતે રાખવામાં આવે છે. વ્યક્તિત્વ અને મેમરી જુઓ. |
subscribes | સ્ટ્રિંગની યાદી | કંપનીની માહિતીનાં ક્ષેત્રો જે બદલાય ત્યારે કર્મચારી ફરી વાંચે છે, જેમ કે finance.ar.*. |
ceiling | map | કામગીરીથી "approval". આ કર્મચારી માટે તે કામગીરી હંમેશાં માલિકને પૂછે છે. બીજું કોઈ મૂલ્ય સ્વીકારાતું નથી. |
workflows | map | વર્કફ્લોના નામથી વર્કફ્લો. વર્કફ્લો જુઓ. |
tools | list | ઍપના sidecar દ્વારા અપાતાં HTTP સાધનો. Sidecar સાધનો જુઓ. |
scopes | map | tools, skills અને plugins નાં નામવાળાં જૂથો. સ્કોપ સક્રિય હોય ત્યારે તેનાં plugins નું વર્ણન કર્મચારીને આપવામાં આવે છે. |
ઇનપુટ
ઇનપુટ એ એક પ્રશ્ન છે જેનો જવાબ માલિક નિયુક્તિ વખતે આપે છે. જવાબો કર્મચારીને "Configured Inputs" હેઠળ દેખાય છે અને વૉચ અને ફોલ્ડર ટ્રિગરમાં {{key}} પ્લેસહોલ્ડર ભરે છે.
{
"key": "close_day",
"label": "Business day to finish the close",
"type": "select",
"options": [
{ "value": "3", "label": "Third business day" },
{ "value": "5", "label": "Fifth business day" }
],
"default": "5",
"scope": "company",
"id": "finance.close.day"
} | ફીલ્ડ | ડિફૉલ્ટ | અર્થ |
|---|---|---|
key | જરૂરી | પ્લેસહોલ્ડરમાં વપરાતું નામ. ફૉલબૅક તરીકે name સ્વીકારાય છે. |
label | key માંથી | માલિકને બતાવાતો પ્રશ્ન. |
type | text | text, textarea, number, select, checkbox અથવા radio. |
required | false | પ્રશ્નને એવો ચિહ્નિત કરે છે જેનો જવાબ માલિકે આપવો જ પડે. |
default | કંઈ નહીં | પહેલેથી ભરેલો જવાબ. રકમના પ્રશ્ન પર માન્ય નથી. |
placeholder, description | કંઈ નહીં | મદદ લખાણ. |
options | કંઈ નહીં | select અને radio માટે: {value, label} ઑબ્જેક્ટ અથવા સાદી સ્ટ્રિંગ. |
id | કંઈ નહીં | માહિતી માટે સ્થિર, ડૉટવાળું નામ, જેમ કે finance.ap.invoice_mailbox, જેથી બીજા કર્મચારીઓ તેને શેર કરી શકે. |
scope | company | company: કંપનીની શેર કરેલી માહિતી. seat: ફક્ત આ નિયુક્તિ માટે. |
missing | કંઈ નહીં | પ્રશ્નનો જવાબ ન મળે ત્યાં સુધી કર્મચારી શું કરે છે. |
money | false | રકમને ચિહ્નિત કરે છે. રકમના પ્રશ્નનું ડિફૉલ્ટ હોઈ શકતું નથી. |
Sidecar સાધનો
sidecar વાળી ઍપ પોતાના કર્મચારીને HTTP એન્ડપૉઇન્ટ સાધનો તરીકે આપે છે. Nebo દરેક એન્ટ્રીને app__<app>__<name> તરીકે રજિસ્ટર કરે છે અને કૉલને sidecar પર method અને path પર મોકલે છે. App Sidecar જુઓ.
"tools": [
{
"name": "list_entries",
"description": "List journal entries for a date range.",
"method": "GET",
"path": "/entries",
"input_schema": { "type": "object", "properties": { "from": { "type": "string" } } }
}
] વર્કફ્લો
workflows હેઠળની દરેક કી એક વર્કફ્લોનું નામ આપે છે; નામ તેનો ઓળખકર્તા છે. સંપૂર્ણ ફૉર્મેટ વર્કફ્લો, ટ્રિગર અને પ્રવૃત્તિઓ પર છે.