POST
/
api
/
projects
/
{projectName}
/
skills
curl --request POST \
  --url http://127.0.0.1:47334/api/projects/{projectName}/skills \
  --header 'Content-Type: application/json' \
  --data '{
  "skill": {
    "name": "<string>",
    "type": "<string>",
    "source": "<string>",
    "database": "<string>",
    "tables": [
      "<string>"
    ],
    "description": "<string>"
  }
}'
{
  "name": "<string>",
  "type": "<string>",
  "source": "<string>",
  "database": "<string>",
  "tables": [
    "<string>"
  ],
  "description": "<string>"
}

Path Parameters

projectName
string
required

The name of the project where agent resides

Body

application/json
skill
object

Response

200
application/json
Created a skill
name
string
type
string

Type of skill (text2sql | knowledge_base).

source
string

Used to store a knowledge_base object when type is set to knowledge_base.

database
string

Used to store a data source connection when type is set to text2sql.

tables
string[]

Used to store table(s) names when type is set to text2sql.

description
string

Skill description is important for an agent to decide which skill to use.