Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
File size: 760 Bytes
5fe810b 962191f 5fe810b 63e9959 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """
HF Agent - Main agent module
"""
import litellm
# Global LiteLLM behavior — set once at package import so both CLI and
# backend entries share the same config.
# drop_params: quietly drop unsupported params rather than raising
# suppress_debug_info: hide the noisy "Give Feedback" banner on errors
# modify_params: let LiteLLM patch Anthropic's tool-call requirements
# (synthesize a dummy tool spec when we call completion on a history
# that contains tool_calls but aren't passing `tools=` — happens
# during summarization / session seeding).
litellm.drop_params = True
litellm.suppress_debug_info = True
litellm.modify_params = True
from agent.core.agent_loop import submission_loop # noqa: E402
__all__ = ["submission_loop"]
|