Authorizations
Project Bearer token (e.g., "Bearer sk-ac-xxxx")
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Get all tool names
tools = client.tools.list()
for tool in tools:
print(f"{tool.name}: {tool.sop_count} SOPs"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": [
{
"name": "<string>",
"sop_count": 123
}
]
}Get all tool names within a project
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Get all tool names
tools = client.tools.list()
for tool in tools:
print(f"{tool.name}: {tool.sop_count} SOPs"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": [
{
"name": "<string>",
"sop_count": 123
}
]
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")