gitcode_api.llm.jiuwen
openJiuwen LocalFunction adapter for the GitCode LLM tool.
Functions
|
Create an openJiuwen |
- create_openjiuwen_gitcode_api_tool(name: str | None = None, description: str | None = None, *, client: GitCode | None = None, async_client: AsyncGitCode | None = None, api_key: str | None = None, base_url: str = 'https://api.gitcode.com/api/v5', timeout: float | None = None, decrypt: Callable[[...], Any] | None = None, owner: str | None = None, repo: str | None = None) LocalFunction
Create an openJiuwen
LocalFunctionfor the GitCode API tool.- Parameters:
name – Tool name on the
LocalFunctioncard; defaults togitcode_api_tool.description – Tool description on the card; defaults to the shared GitCode tool description.
client – Optional synchronous GitCode client.
async_client – Optional asynchronous GitCode client.
api_key – Personal access token when clients are not supplied.
base_url – Base URL for generated clients.
timeout – Request timeout for generated clients.
decrypt – Optional decryption function for encrypted access tokens.
owner – Default repository owner for generated clients.
repo – Default repository name for generated clients.
- Returns:
openJiuwen
LocalFunctionwith the standard parameter schema.