mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-01-21 05:49:50 -05:00
19 lines
275 B
Python
19 lines
275 B
Python
from __future__ import annotations
|
|
import typing as t
|
|
|
|
import attr
|
|
|
|
@attr.define
|
|
class AgentRequest:
|
|
inputs: str
|
|
parameters: t.Dict[str, t.Any]
|
|
|
|
@attr.define
|
|
class AgentResponse:
|
|
generated_text: str
|
|
|
|
@attr.define
|
|
class HFErrorResponse:
|
|
error_code: int
|
|
message: str
|