Skip to content
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

Fuse stream and direct run calls #296

Merged
merged 9 commits into from
Jan 22, 2025
Merged
Changes from 1 commit
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
3 changes: 1 addition & 2 deletions src/smolagents/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import tempfile
import uuid
from io import BytesIO
from typing import Union

import numpy as np
import requests
Expand Down Expand Up @@ -253,7 +252,7 @@ def handle_agent_input_types(*args, **kwargs):
return args, kwargs


def handle_agent_output_types(output, output_type=None) -> Union[str, AgentType]:
def handle_agent_output_types(output, output_type=None):
if output_type in _AGENT_TYPE_MAPPING:
# If the class has defined outputs, we can map directly according to the class definition
decoded_outputs = _AGENT_TYPE_MAPPING[output_type](output)
Expand Down
Loading