Skip to main content

PythonFunctionSchema

Python function schema definition.

sourceSource (string)required
inputs object
property name*any
Default value: {}
outputs object
property name*any
Default value: {}
dependenciesstring[]
Default value: []
decorators object[]

Decorator bindings declared in configuration. Configured bindings take precedence over source bindings with the same kind and name; an empty list uses source bindings only.

  • Array [
  • decoratorDecorator (string)required

    Decorator name, such as use_connector or use_llm. The name must identify a supported decorator.

    nameName (string)required

    Binding variable name injected into the namespace

    arguments object

    Decorator arguments, e.g. {'ref':...} or {'model':...}

    property name*any

    Decorator arguments, e.g. {'ref':...} or {'model':...}

  • ]
  • PythonFunctionSchema
    {
    "source": "string",
    "inputs": {},
    "outputs": {},
    "dependencies": [
    "string"
    ],
    "decorators": [
    {
    "decorator": "string",
    "name": "string",
    "arguments": {}
    }
    ]
    }