Resources¶
- class giskard_hub.resources.ConversationsResource(client: SyncClient)[source]¶
Bases:
APIResource
- create(*, dataset_id: str, messages: List[ChatMessage], rules: List[str] = NOT_GIVEN, tags: List[str] = NOT_GIVEN, expected_output: str | None = NOT_GIVEN, demo_output: ChatMessage | None = NOT_GIVEN)[source]¶
- list(dataset_id: str) List[Conversation] [source]¶
- update(conversation_id: str, *, dataset_id: str = NOT_GIVEN, messages: List[ChatMessage] = NOT_GIVEN, rules: List[str] = NOT_GIVEN, tags: List[str] = NOT_GIVEN, expected_output: str | None = NOT_GIVEN, demo_output: ChatMessage | None = NOT_GIVEN) Conversation [source]¶
- class giskard_hub.resources.DatasetsResource(client: SyncClient)[source]¶
Bases:
APIResource
- class giskard_hub.resources.EvaluationsResource(client: SyncClient)[source]¶
Bases:
APIResource
- create(*, model_id: str, dataset_id: str, tags: List[str] = NOT_GIVEN, name: str = NOT_GIVEN)[source]¶
- create_local(*, model: Model, dataset_id: str, tags: List[str] = NOT_GIVEN, name: str = NOT_GIVEN)[source]¶
- update_entry(run_id: str, entry_id: str, *, model_output: ModelOutput = NOT_GIVEN, results: List[EvaluatorResult] = NOT_GIVEN)[source]¶
- class giskard_hub.resources.ModelsResource(client: SyncClient)[source]¶
Bases:
APIResource
- chat(model_id: str, messages: List[ChatMessage]) ModelOutput [source]¶
- class giskard_hub.resources.ProjectsResource(client: SyncClient)[source]¶
Bases:
APIResource