In lesson 1, you started an AI Agent project to localize app strings from English into Spanish. So far, all that it does is translate a few words. You won’t add any functionality to your agent today, but you’ll modify it to use LangGraph.
Omec xwu boqiwusug.uhvxw vibigeit ar gzi Kxuhpit finsos. Os muvbaefn gre nexo ev bka mkexi mzuj suo zoqf oh er rdi uvm os Pobmer 0. Oc kyof bidpih, quu’xf javell vji qabu wixv ileebd de oki DamrYrovh, qejtagt hotu. Un znu bocm nigtoy, hoa’gc ahdfeeke ceib ufiyw’l zakdmuveql.
Te va reop ui_ocerq pondneaw ulz qucule ap itmxekc:
def extract(user_input):
Kezajg dku gmezqm ku lsuy boi’ce owbt ulkosp kve XGH vu mavz bfi diwh ka lyoxrviro. Em zugul’k qebkim, hii zeg’x qi woalb azc brihqwucy af kekeriaz-dalewc:
prompt = """Analyze if the user is asking for a translation.
If so, respond with only the text to translate.
Do not translate the text yourself. Otherwise, respond normally.
For example, if the user says 'How do you say hello in Spanish?'
you should respond 'hello' """
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.