mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: refactor node spec and add mcp tools (#244)
* refactor: carve out extraction panel * refactor: create spec versions for node types * refactor: create a GenericNode and remove custom nodes * feat: add python and typescript sdk * add dograh sdk * fix: fetch draft workflow definition over published one * fix: fix routes of SDKs to use code gen * chore: remove doclink dependency to reduce image size * chore: format files * chore: bump pipecat * feat: let mcp fetch archived workflows on demand * chore: fix tests * feat: add sdk documentation * chore: change banner and add badge
This commit is contained in:
parent
0a61ef295f
commit
00a1a22b74
162 changed files with 14355 additions and 3554 deletions
|
|
@ -17,6 +17,7 @@ from api.schemas.knowledge_base import (
|
|||
DocumentUploadResponseSchema,
|
||||
ProcessDocumentRequestSchema,
|
||||
)
|
||||
from api.sdk_expose import sdk_expose
|
||||
from api.services.auth.depends import get_user
|
||||
from api.services.posthog_client import capture_event
|
||||
from api.services.storage import storage_fs
|
||||
|
|
@ -135,6 +136,7 @@ async def process_document(
|
|||
document.id,
|
||||
request.s3_key,
|
||||
user.selected_organization_id,
|
||||
str(user.provider_id),
|
||||
128, # max_tokens (default)
|
||||
request.retrieval_mode,
|
||||
)
|
||||
|
|
@ -190,6 +192,10 @@ async def process_document(
|
|||
"/documents",
|
||||
response_model=DocumentListResponseSchema,
|
||||
summary="List documents",
|
||||
**sdk_expose(
|
||||
method="list_documents",
|
||||
description="List knowledge base documents available to the authenticated organization.",
|
||||
),
|
||||
)
|
||||
async def list_documents(
|
||||
status: Annotated[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue