Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 0 additions & 143 deletions docs/api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1830,134 +1830,6 @@
} ]
}
},
"/space/{space_id}/semantic_glob" : {
"get" : {
"description" : "Retrieve the semantic glob (glob) search results for page/folder titles within a space by its ID",
"parameters" : [ {
"description" : "Space ID",
"in" : "path",
"name" : "space_id",
"required" : true,
"schema" : {
"format" : "uuid",
"type" : "string"
}
}, {
"description" : "Search query for page/folder titles",
"in" : "query",
"name" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"description" : "Maximum number of results to return (1-50, default 10)",
"in" : "query",
"name" : "limit",
"schema" : {
"type" : "integer"
}
}, {
"description" : "Cosine distance threshold (0=identical, 2=opposite)",
"in" : "query",
"name" : "threshold",
"schema" : {
"format" : "float64",
"type" : "number"
}
} ],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/_space__space_id__semantic_glob_get_200_response"
}
}
},
"description" : "OK"
}
},
"security" : [ {
"BearerAuth" : [ ]
} ],
"summary" : "Get semantic glob",
"tags" : [ "space" ],
"x-code-samples" : [ {
"label" : "Python",
"lang" : "python",
"source" : "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Semantic glob search\nresults = client.spaces.semantic_glob(\n space_id='space-uuid',\n query='authentication and authorization pages',\n limit=10,\n threshold=1.0\n)\nfor block in results:\n print(f\"{block.title} - {block.type}\")\n"
}, {
"label" : "JavaScript",
"lang" : "javascript",
"source" : "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Semantic glob search\nconst results = await client.spaces.semanticGlobal('space-uuid', {\n query: 'authentication and authorization pages',\n limit: 10,\n threshold: 1.0\n});\nfor (const block of results) {\n console.log(`${block.title} - ${block.type}`);\n}\n"
} ]
}
},
"/space/{space_id}/semantic_grep" : {
"get" : {
"description" : "Retrieve the semantic grep search results for content blocks within a space by its ID",
"parameters" : [ {
"description" : "Space ID",
"in" : "path",
"name" : "space_id",
"required" : true,
"schema" : {
"format" : "uuid",
"type" : "string"
}
}, {
"description" : "Search query for content blocks",
"in" : "query",
"name" : "query",
"required" : true,
"schema" : {
"type" : "string"
}
}, {
"description" : "Maximum number of results to return (1-50, default 10)",
"in" : "query",
"name" : "limit",
"schema" : {
"type" : "integer"
}
}, {
"description" : "Cosine distance threshold (0=identical, 2=opposite)",
"in" : "query",
"name" : "threshold",
"schema" : {
"format" : "float64",
"type" : "number"
}
} ],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/_space__space_id__semantic_glob_get_200_response"
}
}
},
"description" : "OK"
}
},
"security" : [ {
"BearerAuth" : [ ]
} ],
"summary" : "Get semantic grep",
"tags" : [ "space" ],
"x-code-samples" : [ {
"label" : "Python",
"lang" : "python",
"source" : "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Semantic grep search\nresults = client.spaces.semantic_grep(\n space_id='space-uuid',\n query='JWT token validation code examples',\n limit=15,\n threshold=0.7\n)\nfor block in results:\n print(f\"{block.title} - distance: {block.distance}\")\n"
}, {
"label" : "JavaScript",
"lang" : "javascript",
"source" : "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Semantic grep search\nconst results = await client.spaces.semanticGrep('space-uuid', {\n query: 'JWT token validation code examples',\n limit: 15,\n threshold: 0.7\n});\nfor (const block of results) {\n console.log(`${block.title} - distance: ${block.distance}`);\n}\n"
} ]
}
},
"/tool/name" : {
"get" : {
"description" : "Get all tool names within a project",
Expand Down Expand Up @@ -2992,21 +2864,6 @@
"type" : "object"
} ]
},
"_space__space_id__semantic_glob_get_200_response" : {
"allOf" : [ {
"$ref" : "#/components/schemas/serializer.Response"
}, {
"properties" : {
"data" : {
"items" : {
"$ref" : "#/components/schemas/httpclient.SearchResultBlockItem"
},
"type" : "array"
}
},
"type" : "object"
} ]
},
"_tool_name_get_200_response" : {
"allOf" : [ {
"$ref" : "#/components/schemas/serializer.Response"
Expand Down
172 changes: 0 additions & 172 deletions src/server/api/go/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2416,178 +2416,6 @@ const docTemplate = `{
]
}
},
"/space/{space_id}/semantic_glob": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieve the semantic glob (glob) search results for page/folder titles within a space by its ID",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"space"
],
"summary": "Get semantic glob",
"parameters": [
{
"type": "string",
"format": "uuid",
"example": "123e4567-e89b-12d3-a456-426614174000",
"description": "Space ID",
"name": "space_id",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Search query for page/folder titles",
"name": "query",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "Maximum number of results to return (1-50, default 10)",
"name": "limit",
"in": "query"
},
{
"type": "number",
"format": "float64",
"description": "Cosine distance threshold (0=identical, 2=opposite)",
"name": "threshold",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/serializer.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/httpclient.SearchResultBlockItem"
}
}
}
}
]
}
}
},
"x-code-samples": [
{
"label": "Python",
"lang": "python",
"source": "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Semantic glob search\nresults = client.spaces.semantic_glob(\n space_id='space-uuid',\n query='authentication and authorization pages',\n limit=10,\n threshold=1.0\n)\nfor block in results:\n print(f\"{block.title} - {block.type}\")\n"
},
{
"label": "JavaScript",
"lang": "javascript",
"source": "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Semantic glob search\nconst results = await client.spaces.semanticGlobal('space-uuid', {\n query: 'authentication and authorization pages',\n limit: 10,\n threshold: 1.0\n});\nfor (const block of results) {\n console.log(` + "`" + `${block.title} - ${block.type}` + "`" + `);\n}\n"
}
]
}
},
"/space/{space_id}/semantic_grep": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieve the semantic grep search results for content blocks within a space by its ID",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"space"
],
"summary": "Get semantic grep",
"parameters": [
{
"type": "string",
"format": "uuid",
"example": "123e4567-e89b-12d3-a456-426614174000",
"description": "Space ID",
"name": "space_id",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Search query for content blocks",
"name": "query",
"in": "query",
"required": true
},
{
"type": "integer",
"description": "Maximum number of results to return (1-50, default 10)",
"name": "limit",
"in": "query"
},
{
"type": "number",
"format": "float64",
"description": "Cosine distance threshold (0=identical, 2=opposite)",
"name": "threshold",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/serializer.Response"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/httpclient.SearchResultBlockItem"
}
}
}
}
]
}
}
},
"x-code-samples": [
{
"label": "Python",
"lang": "python",
"source": "from acontext import AcontextClient\n\nclient = AcontextClient(api_key='sk_project_token')\n\n# Semantic grep search\nresults = client.spaces.semantic_grep(\n space_id='space-uuid',\n query='JWT token validation code examples',\n limit=15,\n threshold=0.7\n)\nfor block in results:\n print(f\"{block.title} - distance: {block.distance}\")\n"
},
{
"label": "JavaScript",
"lang": "javascript",
"source": "import { AcontextClient } from '@acontext/acontext';\n\nconst client = new AcontextClient({ apiKey: 'sk_project_token' });\n\n// Semantic grep search\nconst results = await client.spaces.semanticGrep('space-uuid', {\n query: 'JWT token validation code examples',\n limit: 15,\n threshold: 0.7\n});\nfor (const block of results) {\n console.log(` + "`" + `${block.title} - distance: ${block.distance}` + "`" + `);\n}\n"
}
]
}
},
"/tool/name": {
"get": {
"security": [
Expand Down
Loading
Loading