Namespaces

AI

ovok.ai gives access to Ovok's AI features: text translation, natural-language FHIR search and

  • Stable unknown
  • Release candidate since 0.1.0-rc.3
  • Development since 0.1.0-dev.21+c43ebba

ovok.ai gives access to Ovok's AI features: text translation, natural-language FHIR search and chat sessions.

Translate text

from ovok_sdk import Ovok

ovok = Ovok("https://api.sandbox.ovok.com", "your-tenant")
translation = ovok.ai.translate(
    {"sourceLanguage": "en", "targetLanguage": "de", "text": ["Take one tablet daily."]}
)

Search FHIR data in plain language

result = ovok.ai.fhir_search({"text": "patients with a blood pressure above 140 this week"})

Chat

Start a session with chat.sessions, then send and list its messages with chat.messages.

session = ovok.ai.chat.sessions.create({"title": "Care plan questions"})
reply = ovok.ai.chat.messages.send(session["id"], {"content": "Summarize today's vitals."})
history = ovok.ai.chat.messages.list(session["id"])

Request and response bodies are passed through as the API defines them.

API reference

See ovok_sdk.resources.ai for every method, parameter and error.

Last updated on

On this page