I was at my wit's end as to how to act.
Boku wa dōshite yoi ka tohō ni kureta.
I; me; you; manservant
topic marker particle; indicates contrast with another option (stated or unstated); adds emphasis
why?; for what reason; how; in what way; for what purpose; what for
good; excellent; fine; nice; pleasant; agreeable; sufficient (can be used to turn down an offer); ready; prepared; profitable (e.g. deal, business offer, etc.); beneficial; OK
indicates a question (sometimes rhetorical); or; whether or not; some- (e.g. something, someone); indicates doubt, uncertainty, etc.; emphatic prefix; suffix forming adjectives or adverbs; in that way
way; destination; reason
at (place, time); in; on; during; to (direction, state); toward; into; for (purpose); because of (reason); for; with; by; from; as (i.e. in the role of); per; in; for; a (e.g. "once a month"); and; in addition to; if; although
to get dark; to end; to come to an end; to close; to run out; to be sunk (e.g. in despair); to be lost