Skip to content

[Docs] Cross-Language Actions#714

Open
addu390 wants to merge 2 commits into
apache:mainfrom
addu390:docs/cross_language_actions
Open

[Docs] Cross-Language Actions#714
addu390 wants to merge 2 commits into
apache:mainfrom
addu390:docs/cross_language_actions

Conversation

@addu390
Copy link
Copy Markdown
Contributor

@addu390 addu390 commented May 29, 2026

Linked issue: follow-up to #709

Purpose of change

Doc-only follow-up to PR #709 (Cross Language Actions), which shipped without doc updates.

Tests

Docs-only, no tests.

API

No API changes.

Documentation

  • doc-included

@github-actions github-actions Bot added doc-included Your PR already contains the necessary documentation updates. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue. labels May 29, 2026
@addu390
Copy link
Copy Markdown
Contributor Author

addu390 commented May 29, 2026

@xintongsong Today, cross-language is mentioned in a few docs plus the FAQs (Q2/Q3), but there's no concept landing page as such.

Worth adding a dedicated docs/content/docs/development/cross_language.md to consolidate the what / how / limitations, with per-area sections linking to it? Happy to cover that in this PR if useful.

Copy link
Copy Markdown
Collaborator

@weiqingy weiqingy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for filling the doc gap from #709. One question inline.


### Cross-language Actions

An action declared in one language can dispatch its body to the other language by setting a `target` on the decorator/annotation. The decorated function or annotated method then acts as a stub — it should raise so direct calls outside the framework fail loud.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The three other cross-language sections — chat models (chat_models.md), embedding models, and vector stores — each carry the same caveat: "Cross-language resources are currently supported only when running in Flink, not in local development mode." The Java-from-Python action path documented here goes through the same Pemja bridge inside ActionExecutionOperator (CrossLanguageActionRuntimeTest exercises it via the Flink operator harness, not local mode). Does that same local-dev limitation apply to cross-language actions? If so, a matching one-line note here would save users a confusing local-mode failure — and there's no general caveat elsewhere in this page that already covers it.

@addu390 addu390 requested a review from weiqingy May 30, 2026 14:01
Copy link
Copy Markdown
Collaborator

@weiqingy weiqingy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround. The limitations block matches the wording in chat_models.md, embedding_models.md, and vector_stores.md line-for-line — including the run-in-flink ref, which resolves to the ## Run in Flink heading in deployment.md. That covers the local-mode caveat I raised. LGTM.

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

Labels

doc-included Your PR already contains the necessary documentation updates. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants