Skip to content

Add async version function and custom completion function support#163

Open
dhh1995 wants to merge 4 commits intosierra-research:mainfrom
dhh1995:dhh/async-and-custom-completion
Open

Add async version function and custom completion function support#163
dhh1995 wants to merge 4 commits intosierra-research:mainfrom
dhh1995:dhh/async-and-custom-completion

Conversation

@dhh1995
Copy link
Contributor

@dhh1995 dhh1995 commented Feb 12, 2026

The current tau2 agent, user, and orchestrator only support synced mode, which could be slow when waiting for an LLM completion when being used in an RL framework (e.g., this example).

This PR creates the async version of these synced functions via copy-pasting and changing necessary function calls.

Meanwhile, a custom completion_fn would be useful to override the fixed LiteLLM completion function to add custom changes.



def run_domain(config: RunConfig) -> Results:
def run_domain(config: RunConfig, **kwargs: Any) -> Results:
Copy link

@justinchiu justinchiu Feb 25, 2026

Choose a reason for hiding this comment

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

seems like this should be model_kwargs throughout. or even litellm_kwargs

@justinchiu
Copy link

i wonder if it make sense to completely remove the sync code and have it be async by default. sync is not great

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants