Skip to content

fix(agent): fix client type hint on AsyncAgent #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/llama_stack_client/lib/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
from typing import Any, AsyncIterator, Callable, Iterator, List, Optional, Tuple, Union

from llama_stack_client import LlamaStackClient
from llama_stack_client import LlamaStackClient, AsyncLlamaStackClient
from llama_stack_client.types import ToolResponseMessage, ToolResponseParam, UserMessage
from llama_stack_client.types.agent_create_params import AgentConfig
from llama_stack_client.types.agents.turn import CompletionMessage, Turn
Expand Down Expand Up @@ -334,7 +334,7 @@ def _create_turn_streaming(
class AsyncAgent:
def __init__(
self,
client: LlamaStackClient,
client: AsyncLlamaStackClient,
# begin deprecated
agent_config: Optional[AgentConfig] = None,
client_tools: Tuple[ClientTool, ...] = (),
Expand All @@ -353,7 +353,7 @@ def __init__(
):
"""Construct an Agent with the given parameters.

:param client: The LlamaStackClient instance.
:param client: The AsyncLlamaStackClient instance.
:param agent_config: The AgentConfig instance.
::deprecated: use other parameters instead
:param client_tools: A tuple of ClientTool instances.
Expand Down