Skip to content

[Feature Request] Add sample demonstrating how to make liteLLM calls from a workflow #239

Description

@dandavison

Add a sample demonstrating how to make LLM calls from a workflow via an activity.
This should use https://github.com/BerriAI/litellm.
(It may make sense to add something like this to SDK contrib/ eventually.)

Activity

  1. changed the title [-][Feature Request] Add sample demonstrating how to make LLM calls from a workflow[/-] [+][Feature Request] Add sample demonstrating how to make liteLLM calls from a workflow[/+] on Sep 9, 2025
  2. jssmith commented on Sep 30, 2025

    @jssmith
    Contributor

    The AI Cookbook will contain this sample soon (and others). We could still put a version here, but it might not be necessary.

  3. Abhinav0905 commented on Jul 15, 2026

    @Abhinav0905
    Contributor

    Hi @dandavison and @jssmith — before I start, could you confirm whether a samples-python version is still wanted now that the AI Cookbook may cover this?

    I have hands-on experience combining Temporal, Python, and production LLM workflows. If the sample is still useful, I propose keeping it focused:

    • Call LiteLLM only from Temporal Activities, not Workflow code.
    • Demonstrate timeouts, retries, and workflow-safe inputs/results.
    • Add deterministic tests using mocked provider calls, with no live API dependency.
    • Include a README explaining why network I/O must remain outside Workflow code.

    If this scope is aligned with what you want, could you assign the issue to me?

  4. brianstrauch commented on Jul 29, 2026

    @brianstrauch
    Member

    Hi @Abhinav0905, feel free to open a PR. Tag me and I'll take a look when it's ready.

  5. Abhinav0905 commented on Aug 2, 2026

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions