NeboAI
NeboAI
શરૂ કરો

agent.json સંદર્ભ

agent.json માં કર્મચારી વિશેનું ગદ્ય સિવાયનું બધું હોય છે: તેને જરૂરી ક્ષમતાઓ, તે માલિકને પૂછે તે પ્રશ્નો, તેની મેમરી કેવી રીતે રાખવામાં આવે છે, કઈ કામગીરીને હંમેશાં મંજૂરી જોઈએ, અને તે ચલાવે તે વર્કફ્લો. દરેક ફીલ્ડ વૈકલ્પિક છે.

ઉદાહરણ

{
  "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/ ફોલ્ડરમાંનાં કૌશલ્યો માટે કોઈ એન્ટ્રીની જરૂર નથી.
inputslistનિયુક્તિ વખતે માલિક જવાબ આપે તે પ્રશ્નો. ઇનપુટ જુઓ.
memoryobjectવાતચીત અને મેમરી કેવી રીતે રાખવામાં આવે છે. વ્યક્તિત્વ અને મેમરી જુઓ.
subscribesસ્ટ્રિંગની યાદીકંપનીની માહિતીનાં ક્ષેત્રો જે બદલાય ત્યારે કર્મચારી ફરી વાંચે છે, જેમ કે finance.ar.*.
ceilingmapકામગીરીથી "approval". આ કર્મચારી માટે તે કામગીરી હંમેશાં માલિકને પૂછે છે. બીજું કોઈ મૂલ્ય સ્વીકારાતું નથી.
workflowsmapવર્કફ્લોના નામથી વર્કફ્લો. વર્કફ્લો જુઓ.
toolslistઍપના sidecar દ્વારા અપાતાં HTTP સાધનો. Sidecar સાધનો જુઓ.
scopesmaptools, 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 સ્વીકારાય છે.
labelkey માંથીમાલિકને બતાવાતો પ્રશ્ન.
typetexttext, textarea, number, select, checkbox અથવા radio.
requiredfalseપ્રશ્નને એવો ચિહ્નિત કરે છે જેનો જવાબ માલિકે આપવો જ પડે.
defaultકંઈ નહીંપહેલેથી ભરેલો જવાબ. રકમના પ્રશ્ન પર માન્ય નથી.
placeholder, descriptionકંઈ નહીંમદદ લખાણ.
optionsકંઈ નહીંselect અને radio માટે: {value, label} ઑબ્જેક્ટ અથવા સાદી સ્ટ્રિંગ.
idકંઈ નહીંમાહિતી માટે સ્થિર, ડૉટવાળું નામ, જેમ કે finance.ap.invoice_mailbox, જેથી બીજા કર્મચારીઓ તેને શેર કરી શકે.
scopecompanycompany: કંપનીની શેર કરેલી માહિતી. seat: ફક્ત આ નિયુક્તિ માટે.
missingકંઈ નહીંપ્રશ્નનો જવાબ ન મળે ત્યાં સુધી કર્મચારી શું કરે છે.
moneyfalseરકમને ચિહ્નિત કરે છે. રકમના પ્રશ્નનું ડિફૉલ્ટ હોઈ શકતું નથી.

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 હેઠળની દરેક કી એક વર્કફ્લોનું નામ આપે છે; નામ તેનો ઓળખકર્તા છે. સંપૂર્ણ ફૉર્મેટ વર્કફ્લો, ટ્રિગર અને પ્રવૃત્તિઓ પર છે.