Skip to content

How to use conversationId in Java client? #598

@TallesBrendoC

Description

@TallesBrendoC

Hi,

I’m trying to add this function in Java using conversationId, but I can’t find how to do this with the Java SDK.

Here’s an example in Python:

response = client.responses.create(
  model="gpt-4.1",
  input=[{"role": "user", "content": "Qual o meu nome  ??"}],
  conversation= "conv_68adfc5e53088194aebd7967a1ef546d067b0a9a08aaacb1",
  tools=[file_search_tool]
)

How can I achieve the same behavior in Java?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions