Skip to content

@W-21929529 SDK experience enhancement for function#92

Closed
ritaagarwala-sf wants to merge 23 commits intopredictfrom
run_with_json
Closed

@W-21929529 SDK experience enhancement for function#92
ritaagarwala-sf wants to merge 23 commits intopredictfrom
run_with_json

Conversation

@ritaagarwala-sf
Copy link
Copy Markdown
Collaborator

@ritaagarwala-sf ritaagarwala-sf commented Apr 29, 2026

  1. datacustomcode init --code-type function ( SearchIndexChunking is default use-in-feature )

Creates a function with below signature:

def function(request: SearchIndexChunkingV1Request, runtime: Runtime) -> SearchIndexChunkingV1Response:

And generates a test.json reading the signature of function. Sample test.json will look like below:

{
"input": [
{
"text": "sample_text",
"metadata": {}
}
],
"max_characters": 100,
"additional_params": {}
}

  1. Customer can test function with below command:
    datacustomcode run ./payload/entrypoint.py --test-with payload/tests/test.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants