The words u201cagentu201d and u201csubjectu201d perform different functions. Linguists distinguish between two ways of looking at language: (1) you can look at the semantic role a word is performing, or (2) you can look at the grammatical relationship between words in a sentence.Semantic relationships are functions like agent, recipient, patient, and location.Grammatical relationships are things like subject, indirect object, direct object, and prepositional phrase.Letu2019s take the sentence: u201cAlex gave Robin a pineapple in London.Alex is the agent u2022 Alex is the one who is acting.Robin is the recipient u2022 Robin is the one who gets the pineapple.The pineapple is the patient u2022 the pineapple is the thing that is affected by the action of the verb.London is the location u2022 London is where the whole thing took place.Now, letu2019s try a few variants.Robin was given a pineapple by Alex in London.The pineapple was given to Robin by Alex in London.London is where Alex gave Robin the pineapple.In all of these sentences, Alex, Robin, the pineapple, and London have the same semantic roles. So they remain, respectively, the agent, the recipient, the patient, and the location.Moving forward, letu2019s look at the grammatical roles these words play, we will look at the superficial sentence structure.In the sentence, u201cRobin was given a pineapple . . .u201d Robin is the grammatical subject.In the sentence, u201cAlex gave Robin a pineapple . . .u201d Robin is the indirect object.In the sentence, u201cAlex gave a pineapple to Robin . . .u201d Robin is the object of a preposition.What does all of this have to do with your question?When youu2019re looking at the structure of a western Indo-European language, concepts like u201csubjectu201d and u201cdirect objectu201d make a lot of sense. Western Indo-European languages tend to have reasonably analogous surface structures.But when the language youu2019re looking at is non-Indo-European, sometimes it makes more sense to analyze sentences by looking at the semantic roles that words play in them, rather than trying to force concepts like u201cdirect objectu201d onto a language that may not have that particular surface structure. Basque is a non-Indo-European language, despite the fact that it is spoken in Europe.I donu2019t speak Basque, and I know very little about that language. My specialty area is American Sign Language (ASL), which is also a non-Indo-European language whose surface structures are very different from the ones that are common in most Indo-European languages. I use a semantic grammar all the time when I look at ASL, because I always feel like Iu2019m trying to force a square peg into a round hole with concepts like u201cdirect objectu201d and u201cindirect objectu201d that donu2019t make any sense for the language Iu2019m analyzing.